JSTL c:out and PageContext: need help!!!!!!!!!!!!!

hi, i'm finding problems using core tag libraries, and i can't understand how to solve but expecially WHY i'm getting all those compilation errors....
first, i post my jsp's scriptlets section for evaluating errors, but please, firstly go to the end of scriptlet's section to understand what i'm asking.
################# JSP'S SCRIPTLETS SECTION ##############
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page session="true"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="services.sessionservice.*"%>
<%@page import="util.*"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<jsp:useBean id="loginManagement" class="bflows.LoginManagement" scope="session"/>
<jsp:setProperty name="loginManagement" property="nickName" param="nickName"/>
<jsp:setProperty name="loginManagement" property="password" param="password"/>
<jsp:setProperty name="loginManagement" property="loggedOn" value="false"/>
<%
    Cookie[] cookies = request.getCookies();
    String message = null;
    // SETTO UN ATTRIBUTO CON SCOPE PAGE PER L'UTILIZZO CON LE TAGLIBS PER L'OUTPUT IN XML
    // LO UTILIZZO COME SE FOSSE UNA VARIABILE PER POI EFFETTUARE IL GIUSTO OUTPUT.
    // ######################## ENGLISH FOR JAVA.SUN FORUM #####################
    // "OUTPUT" AND "MESSAGE" ARE ATTRIBUTES SETTED TO CHOOSE WHICH XML NODE I WANT TO SELECT
    // FOR OUPUT.
    pageContext.setAttribute("output","login");
    pageContext.setAttribute("message",null);
    String output = "login";
    String action = request.getParameter("action");
    // Controllo che (1� if) esista il cookie NICKNAME e che contenga dei valori; poi controllo che (2� if)
    // I valori contenuti corrispondano a quelli della sessione corrente.
    if(cookies != null) {
        if(Session.getValue(cookies,"NICKNAME",0) != null && Session.getValue(cookies,"NICKNAME",1) != null){
            if(Session.getValue(cookies,"NICKNAME",0).equals(loginManagement.getNickName())
            && Session.getValue(cookies,"NICKNAME",1).equals(loginManagement.getSessionID())) {
                loginManagement.setLoggedOn(true);
    if(action != null){
        if(action.equals("login")){
            loginManagement.logon();
            if(loginManagement.getCookies() != null){
                for(int i=0;i<loginManagement.getCookies().length;i++){
                    response.addCookie(loginManagement.getCookies(i));
                    cookies=loginManagement.getCookies();                   
                loginManagement.setLoggedOn(true);
        if(action.equals("logout")){
            loginManagement.setCookies(cookies);
            loginManagement.logout();
            // Rispedisce i cookie al client con MaxAge = 0, cos� questi verranno cancellati.
            for(int i=0;i<loginManagement.getCookies().length;i++){
                response.addCookie(loginManagement.getCookies(i));
            loginManagement.setLoggedOn(false);
    if(loginManagement.getLoggedOn()){
        // MOSTRA IL MESSAGGIO DI BENVENUTO (SHOWS THE WELCOME MESSAGE)
        pageContext.setAttribute("output","welcome");
        output = "welcome";
    else {
        if(action != null && action.equals("logout")){
            // TORNA ALL'INIZIO (SHOWS THE LOGIN FORM)
            pageContext.setAttribute("output","login");
            output = "login";
        else {
            if(loginManagement.getResult() == -1){
                throw new Exception("Errore nell'applicazione: consultare i log");       
            if(loginManagement.getResult() == -2){
                // STAMPA IL MESSAGGIO DI ERRORE (PRINTS THE ERROR MESSAGE)
                pageContext.setAttribute("message",loginManagement.getErrorCode());
%>############# END OF SCRIPTLETS' SECTION ###########
now i'll paste 2 short taglibs sections which will be appended after the code i pasted above: the first working, the second not compiling:
################## FIRST TAGLIB SECTION #############
<c:set var="xmlDocument" scope="page">
    <ROOT>
    <%if(output.equals("welcome")){%>
        <WELCOME>
            <NOME><%=loginManagement.getNome()%></NOME>
            <COGNOME><%=loginManagement.getCognome()%></COGNOME>
            <CREDITI><%=loginManagement.getCrediti()%></CREDITI>
        </WELCOME>
    <%}%>
    <%if(output.equals("login")){%>
        <LOGIN></LOGIN>
    <%}%>
    <%if(output.equals("error")){%>
        <ERROR><%=loginManagement.getErrorCode()%></ERROR>
    <%}%>
    </ROOT>
</c:set>
<x:parse xml="${xmlDocument}" var="xml"/>
<c:set var="xslUrl"><%="/XSL/Login.xsl"%></c:set>
<c:import var="xslDocument" url="${xslUrl}" scope="page"></c:import>
<x:parse var="xsl" xml="${xslDocument}"/>
<x:transform xml="${xml}" xslt="${xsl}"/>###################### END #########################
################## SECOND TAGLIB SECTION ###########
<c:set var="xmlDocument" scope="page">
    <ROOT>
    <c:if test="${pageScope.output == 'welcome'}">
        <WELCOME>
            <NOME><c:out value="${loginManagement.nome}"></c:out></NOME>
            <COGNOME><c:out value="${loginManagement.cognome}"></c:out></COGNOME>
            <CREDITI><c:out value="${loginManagement.crediti}"></c:out></CREDITI>
        </WELCOME>
    </c:if>
    <c:if test="${pageScope.output == 'login'}">
        <LOGIN></LOGIN>
    </c:if>
    <c:if test="${pageScope.message != null }">
        <ERROR><c:out value="${loginManagement.errorCode}"></c:out></ERROR>
    </c:if>
    </ROOT>
</c:set>
<x:parse xml="${xmlDocument}" var="xml"/>
<c:set var="xslUrl"><%="/XSL/Login.xsl"%></c:set>
<c:import var="xslDocument" url="${xslUrl}" scope="page"></c:import>
<x:parse var="xsl" xml="${xslDocument}"/>
<x:transform xml="${xml}" xslt="${xsl}"/>###################### END #########################
can u help me to understand why the second section doesn't works? if i'll be ogliged to use the first one, i won't be able to completely write code using taglibs, and so my code will be horrible! a mix of scriptlets syntax and taglibs' xml one.
Compiling jsp with netbeans 4.0 the error is:
Compiling 1 source file to /home/ghido/WebProjects/WebDocumentationXML/build/generated/classes
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:252: jspxmeth_c_if_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.SetTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_if_0(_jspx_th_c_set_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:256: jspxmeth_c_if_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.SetTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_if_1(_jspx_th_c_set_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:260: jspxmeth_c_if_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.SetTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_if_2(_jspx_th_c_set_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:292: jspxmeth_c_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.IfTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_out_0(_jspx_th_c_if_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:296: jspxmeth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.IfTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_out_1(_jspx_th_c_if_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:300: jspxmeth_c_out_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.IfTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_out_2(_jspx_th_c_if_0, jspxpage_context))
^
/home/ghido/WebProjects/WebDocumentationXML/build/generated/src/org/apache/jsp/Login_jsp.java:404: jspxmeth_c_out_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.Login_jsp cannot be applied to (org.apache.taglibs.standard.tag.el.core.IfTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_c_out_3(_jspx_th_c_if_2, jspxpage_context))
^
7 errors
Can you help me??
And also, is the "pageContext.setAttribute()" method the correct way to select output as i did, or do u know a better one?
Thanks a lot, bye.

Use the brace notation.
${sessionScope['org.apache.struts.action.LOCALE']}

Similar Messages

  • In testing 9 and X, "Compare Docs" we have a critical issue and really need help!

    For years we have used Acrobat 7 to do PDF compares and we love it!  However, the company recently advised we must upgrade to 9 and then eventually to X.  In testing 9 and X, Compare Docs we have a critical issue and really need help.  Our PDFs are produced by IT in a batch process and one of our main, critical functions is to compare previous PDFs to current PDFs;  however, in using 9 the Compare screen automatically sets the Doc Description for our PDFs to "Scanned Doc" and does not produce any differences! If you try to change the setting to Reports --it totally shuts down both documents without running!  Version 7 runs the compare of the same PDFs  beautifully, pointing out all the differences, as usual!  Has this every happen to anyone?  Do you know what we can do to our PDFs to allow version 9 to do the compare and produce results?  Why is 9 treating these non-scanned PDF docs as such?  Thanks so much for any help or insight you can give me on this issue! 

    (Moved the discussion to the correct forum)

  • Why when i am downloading pictures from my iphone 4s to my mac it kicked me out and i need to start again the sync ?

    why when i am dowmloading pictures from my iphone 4s to my mac it kicked me out and i need to start over and over again i dont know what its going on ?

    plz guys help me...

  • When I try to install iTunes 10.5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    After reading all these posts, one by one did not resolve my problem until I got the very end.  Regardless of what step would resolve your problem, these are the steps I would recomment to everyone for a what seems to be a safe and fool-proof upgrade to iTunes 10.5.
    1. Stand alone upgrade to the latest Quicktime version
    2. Go to control panel and "change" then select repair to the following applications in the order specified by the post on Oct 27. (Notice I skipped Quicktime because it had been upgrade manually,and Bonjour did not have a "repair" option)
    iTunes; Apple Software Update: Mobile Device Support; Apple Applications Support
    Some of these applications may not appear if they do not apply to your configuration (no iPhone, or no iPad, or other apple devices).
    Once all updated, I did not need to restart nor launch any applications, I simply went straight into the 10.5 upgrade, and where it normally got stuck, this time the installation continued for a while longer until it completed successfully.
    Great work everyone who contributed!  Thank you very much!

  • My daughters IPod was stolen and I need help trying to locate it?

    And I dont know how to do this and really need help

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    Check this thread where people have already given their suggestion on learning SSIS
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f2cc1cf3-204d-454a-a189-47df87a3aa23/i-want-to-learn-ssis?forum=sqlintegrationservices
    I would suggest to go for You tube videos (type learn SSIS or begin SSIS step by step) you will get lot of good tutorials to start with.
    Happy Learning!!
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • My ipad has just faded out and i need it for highschool what do i do

    my ipad has just faded out and i need it for highschool .
    ITS JUST WENT BLANK
    WHAT DO I DO

    Hold the power and home button down till u see the apple logo. Do you have ur stuff saved into iCloud?

  • I have a PC and a need help to configure my external hard disk on my network. Thanks

    I have a PC and a need help to configure my external hard disk on my network. Thanks

    If you mean you wish to plug a USB drive into the Airport Extreme router (or TC not express) that is easy..
    The disk must be formatted FAT32.. as if.. stay away from FAT .. or HFS+ ie Mac OS extended Journaled.
    Format the disk on a Mac is best.. and even use GUID partition scheme not MBR.
    The PC has no issue writing and reading files because this is a network drive.. The PC does not write to the drive.. it writes files to the Airport OS which writes and reads the disk and passes the info using standard windows SMB.. To the windows computer it will be a Windows NT server.. FAT32 setup.
    If your setup is different.. to my hugely guessed assumptions.. give details.. always helps to have.. make and model.
    Make and model of disk.. make and model of router.. how the setup will be done.. what windows OS you run.. etc etc.
    As it stands your question could have nothing to do with apple at all.. other than you posted in a forum so I guess there is something apple in there somewhere.

  • I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!

    Yea I am. I deleted Logic Pro 9 and moved the App to the Trashcan like normal. Then when I go to install it, it says its already Installed. When I do this with other apps; it works fine, the install thing comes back up like it should once you have deleted the app

  • My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    Sure, you can get around it if you don't need the newest version of iTunes. I still use version 7.5 because the newer versions didn't strike me as offering anything I needed.
    If you do need a version 10-something then you will have to upgrade your operating system to Leopard (fi your computer will support it) at least.  If you need 10.5 for some reason then there's no getting around it, you will have to buy a new computer.

  • This morning i tried to restore my ipod and it said:"the ipod "ipod cannot be restored at this time because the ipod software update server could not be contacted or is temporarily unavalible." i have no idea what to do and i need help

    this morning i tried to restore my ipod and it said:"the ipod "ipod cannot be restored at this time because the ipod software update server could not be contacted or is temporarily unavalible." i have no idea what to do and i need help.

    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem

  • My grandma is a new apple user and she needs help making an apple account.

    my grandma is a new apple user and she needs help making an apple account.

    She should call Apple support or visit the Genius Bar at an Apple store (make an appointment first at http://apple.com/retail). They will walk her through the process.

  • I am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to

    i am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to turn off the computer and there was no case

    i am john and I need your help yesterday bought a program called DJAY when I finish the download and got an error opened and I saw him there was no case to install and thank you for your help anyway

  • I want officially unlock my phone second bought in senegal since more than three months but after buying it i realize it is locking by orange france and i need help

    hello want help without paying money cause now i'm in senegal and not sure to transfer money     
    i want to officially unlock my iphone 4 second hand bought here in senegal in west africa since more than 3 months but after this i realize that it is simlocked to oarange france so i cannot use it and i need help near apple to begin use legaly my iphone thanx

    You will need to contact Orange France. They are the only ones who can officially unlock a phone locked to their network.

  • Is there anyway to export the iPod metadata from my iPhone 4? I don't need the music, I have that on an external hard drive, but my backup got wiped out and I need the metadata.

    Is there anyway to export the iPod metadata from my iPhone 4? I don't need the music, I have that on an external hard drive, but my backup got wiped out and I need the metadata.

    Okay, so I had to re-install iTunes. My iTunes library is currently empty. I can make a new back up and the location of the songs not having changed, these will be available in my library?

Maybe you are looking for

  • [ANN] - Get the latest JDeveloper News Directly in the IDE

    Get the RSS News Feed Reader Extension for Oracle JDeveloper 10g from here: http://otn.oracle.com/products/jdev/htdocs/partners/addins/exchange/RSS/index.html And you'll get the latest news about JDeveloper first. Updates on new tips, papers, demos,

  • PDF's from the Web

    I am having trouble opening some PDF's on the web... My computer has Windows Vista with Acrobat 5 & Adobe Reader 9 installed. Adobe Reader is set as the default program to open PDF's. The following link opens successfully in Adobe Reader http://earth

  • Control break in sql report

    hello all how to have a control break in sql report? Thanks tauceef

  • Printing problem, please help :~~~

    Hi, i am new to java =[ I am trying to print a text using awt.print in a applet, but I have a problem the printer doesn't have pages, but one big paper, it is a fiscal printer... when I send the text to the printer, the printer not only print the tex

  • Custom Run-Time Menu Not Found in User.lib

    Our Instrument Run-Time Menus are getting lost. This is because we have some computers that are 32 bit and the code is located at C:\Program Files\National Instruments\LabVIEW 2011\user.lib\InstrumentDrivers Other computers are 64 bit and the code is