Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8073843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:28:18+00:00 2026-06-05T14:28:18+00:00

in netbeans 7 and jdk 7 and everything is working fine without any changes

  • 0

in netbeans 7 and jdk 7 and everything is working fine without any changes i made in my environment the old tags are working fine of jstl ${class.get_name()}
${page.getTitle()}

the new once i introduce does not work, and i don’t know why ?

see this simple application example i created added jstl 1.2 into the libraries

and still it does not work?

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <% 
        String var1;
        var1 = "Welcome";
        %>
        normal : <%=var1%>
        <hr />
        dollar: ${var1}
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:28:22+00:00Added an answer on June 5, 2026 at 2:28 pm

    First of all, the above page doesn’t even use the JSTL. It uses the JSP EL.

    And I assume you expect to see dollar: "Welcome" printed, but that won’t happen, because the JSP EL doesn’t print values of local variables. It prints the value of attributes.

    Change your code to

    <% pageContext.setAttribute("var1", "Welcome"); %>
    

    or, better, to

    <c:set var="var1" value="Welcome"/>
    

    and you’ll see the expected output.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I install just OpenJDK without proprietary Sun JRE/JDK and use NetBeans and Eclipse
Environment : GlassFish 3.0.1, NetBeans 6.9, JDK 6u21 Problem : Unable to run app-client
Environment : GlassFish 3.0.1, NetBeans 6.9, JDK 6u21 Also tested with GlassFish 3.0.1, NetBeans
When I try to navigate in NetBeans to some JDK source code it only
I had a gui (swing) project developed using netbeans 7 and JDK 6. Then
I am using JDK 7 and Netbeans IDE 7.1.2. Going through Using string in
Java, ANTLR and Netbeans newbie here. I have installed a jdk and netbeans. I
I am using Netbeans 7.1 with Glassfish 3.1.1, and JDK 6. I built a
I am working on a desktop application which uses JavaDB. I am using NetBeans
The NetBeans people say that I need a Java Development Kit (JDK) 5 or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.