Why the code on JSP doesn't work?

I have a set of code to retrieve a session data. In the servlet, the code is the following:
Shop shop = shopService.getShop();
if (shop == null)
     throw new ServletException("shop not found in session");
request.getSession().setAttribute("subCategoryList", shop.getSubCategories());where the shopService is an application scope data while the shop is a session scope data.
I mvoe the above code to a JSP file with JSTL as
<c:set value="${applicationScope['shopService']}" var="ss" />
<c:set value="${ss.shop.subCategories}" var="subCategoryList" />
<c:forEach var="subCat" items="${subCategoryList}">
     <li><a href="<c:url value="/shop/admin/item/category/${subCat.id}/new"/>"><c:out value="${subCat.name}"/></a></li>          
</c:forEach>
...and no data is shown. I can't figure out the reason.
Can anyone help me out of this problem?
Thanks

"no data is shown". Do you get an exception in the server log perhaps? This can happen when the response has already been flushed to the browser, it will not display the stacktrace in the page anymore.

Similar Messages

  • The code from "help" doesn't work?\

    Hi
    I'm trying to change the color of the font of the TextArea
    component to white. I use this code which I copy and paste directly
    from "help":
    import mx.styles.CSSStyleDeclaration;
    if (_global.styles.TextArea == undefined) {
    _global.styles.TextArea = new CSSStyleDeclaration();
    _global.styles.TextArea.setStyle("color", 0xFFFFFF);
    Doesn't work...
    I try this one, again from the "help":
    myTextAreaComponent.setStyle("color", 0xFFFFFF)
    Again doesn't work...
    Any clue????
    Also, if a movie with a TextArea component is under a mask
    the text isn't seen. What can I do about it? But this is a less
    significant problem, the color of the text is what concerns me
    most.

    Yes, kglad I tried this in a new document, and it works.
    Don't know why it didn't work for the old one. Maybe I've mistaken
    something...somewhere... who knows... Anyway, I don't need the text
    white anymore, because I redesigned everything and I think it looks
    better now, so it's not a problem.
    Can you advize me something on the mask issue? It's not so
    important but I'm curious. It could turn to be a problem if you
    have a fullscreen flash movie and have content out of the stage.
    Thanks!
    Btw, just saw the spyrograph on your website. Looks
    absolutely amazing !! :)

  • Why the server for registration doesn't work now ?

    i try to register my iphone 4s and after 3 minutes when tryies to make the activation says your iphone coudn't be activated because the server for activation is temporary stoped. :|

    we're users here.  We have no way of knowing why the activation servers are temporarily unavailable.

  • Why the next button seems doesn't work in the video player?

    When I play a video on my Itouch and wanna to watch the next one, can't I just simply click the next button like what I what I do when I play songs? It seems that the next and previous button can only speed or fast-back a video, but cannot change to any other video. Is that the way a touch works or is there any thing wrong with my touch?

    It's a bug, and it has been reported. Please report it yourself, the more reports the better. It's no good asking Adobe in this forum to fix something.
    Peter

  • Why the html textarea tag doesn't work in Netscape 4.76 running SunOS5.5.1? I can get focus into it but can't type anything.

     

    This is an iPlanet Application Server forum. Please ask this question in a newsgroup or forum for Netscape and/or broswer questions.
    David

  • Why the code doesn't work???

    addWindowListener(new WindowAdapter(){public void windowClosing(){System.exit(0);}});
    when I press the x button ,it doesn't work as expected!!

    What are you expecting it to do? I should close the window and then exit the application. This is the code I use for all my applications and it does exactally that. Are you using it with a JFrame? or a JDialog?
    JFrame test = new JFrame();
    test.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent evt) {
                    System.exit(0);

  • How can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc?

    how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you

    No. Get it fix by making an appointment with the Apple genius bar.

  • HT201343 My Mac book pro all of a sudden doesn't have the airplay icon and doesn't work with my Apple TV . Why  ?

    My Mac book pro all of a sudden doesn't have the airplay icon and doesn't work with my Apple TV . Why  ?

    The Airplay icon will not display if the OS is unable to locate any Airplay devices.
    I would check that both devices are connected to the same network and maybe even power cycle the network devices - eg router etc
    Maybe even try to connect both devices to another network like an iPhone personal Hotspot and see if that helps to isolate the problem

  • The onDeactivate event handler doesn't work in InDesign CC. Why?

    Hi guys.
    I’m working on a script in Javascript for InDesign CC.
    The big problem is that the onDeactivate event handler doesn’t work.
    Here’s an example that works in InDesign CSx but not in InDesign CC:
    #target indesign
    var w = new Window ("dialog", "Test onDeactivate");
    var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
    var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
    var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
    et_1.onDeactivate = et_2.onDeactivate = function(){
         st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
    var b_ok = w.add("button", undefined, "OK");
    w.show();
    The script shows a dialog window with 2 edit text fields: when a field loses the focus (clicking on the other one), the «CONSOLE» shows the text of the old field.
    Adobe, please, fix this issue as soon as possible.
    Thanks.
    Giorgio

    It's a bug, and it has been reported. Please report it yourself, the more reports the better. It's no good asking Adobe in this forum to fix something.
    Peter

  • Parsing in Weblogic/jsp doesn't work; application-mode (command-line) works

    Hello-
    Parsing my XML file in Weblogic/jsp doesn't work, whereas it works
    in application-mode... (albeit on two different machines)
    Here are the parameters:
    server1:
    weblogic 6.0
    win2k server
    jre1.3
    my personal machine:
    ***no weblogic***
    win2k server
    jre1.3
    When I run my code as an application (command-line style) on my machine,
    parsing in my xml file works fine, and I can do a root.toString() and it
    dumps out the entire xml file, as desired.
    However, running my code inside weblogic (on server1) in JSP, parsing in
    my file and doing a root.toString() results in the following: [dmui: null]
    (where dmui is my root)
    (even though i'm running it on two different machines, i'm positive its the
    same code (the servers share a mapped drive)...
    So, I think its probably because I'm using a different parser, as
    specified by weblogic? There are no exceptions being thrown. Here's my
    (abbreviated) code, which is called either command line style or in a JSP:
    // Imports
    import org.w3c.dom.*;
    import org.w3c.dom.Document;
    import javax.xml.parsers.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    DocumentBuilderFactory docBuilderFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    mDocument = docBuilder.parse (inFile);
    myRoot.toString()
    -END
    Doing a System.getProperty("javax.xml.parsers.DocumentBuilderFactory")
    results in:
    server1 (weblogic/jsp):
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    my machine (application-mode):
    null
    Does anyone have any ideas about how to get this work? Do I try to set it
    up so that they both use the same parser? Do I change the Weblogic parser?
    If so, to what? And how?
    Am I even close?
    Any help would be appreciated..
    Thanks, Clint
    "[email protected]" <[email protected]> wrote in message
    news:[email protected]...
    No problem, glad you got it worked out :)
    ~Ryan U.
    Jennifer wrote in message <[email protected]>...
    I completely missed setting the property(:-o), foolish mistake. That wasit. Thanks.
    "j.upton" <[email protected]> wrote:
    Jennifer,
    Personally I would get rid of import com.sun.xml.parser.* and use xerces
    which comes with WLS 6.0 now, unless like I said earlier you have a need
    to
    use the sun parser :) Try something like this with your code --I've put
    things to watch for as comments in the code.
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    public class BasicDOM {
    public BasicDOM (String xmlFile) {
    try{
    FileInputStream inStream;
    Document document;
    /*You must specify a parser for jaxp. You can in a simple view
    think
    of this as being analogous to a driver used by JDBC or JNDI. If you are
    using this in the context of a servlet or JSP and have set an XML
    registry
    with the console this happens automatically. You can also invoke it in
    the
    context of an application on the command line using the -D switch. */
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
    >>>
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    // create a document factory
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    // specify validating or non-validating parser
    dbf.setValidating(true);
    // obtain a factory
    DocumentBuilder db = dbf.newDocumentBuilder();
    // create a document from the factory
    inStream = new FileInputStream(xmlFile);
    document = db.parse(inStream);
    }//try
    catch (Exception e)
    System.out.println("Unexpected exception reading document!"
    +e);
    System.exit (0);
    }//catch
    }//BasicDom
    // Main Method
    public static void main (String[] args) {
    if (args.length < 1)
    System.exit(1); file://or you can be more verbose
    new BasicDOM(args[0]);
    }//class
    =============================================
    That will give you a basic DOM you can manipulate and parse it fromthere.
    BTW this code
    compiled and ran on WLS 6.0 under Windows 2000.
    Let me know if this helped or you still are having trouble.
    ~Ryan U.
    "Jennifer" <[email protected]> wrote in message
    news:[email protected]...
    Actually I included com.sun.xml.parser.* as one last febble attempt toget
    it working.
    And as for source code, I included the code. If I just put that oneline
    of code
    in, including the imports, it fails giving me an error listed above inthe
    subject
    line. Here is the code again:
    package examples.xml.http;
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.*;
    import java.util.*;
    import java.net.*;
    import org.xml.sax.*;
    import java.io.*;
    public class BasicDOM {
    static Document document;
    public BasicDOM (String xmlFile) {
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    } catch (FactoryConfigurationError e){
    System.err.println(e.getException());
    e.printStackTrace();
    // Main Method
    public static void main (String[] args) {
    BasicDOM basicDOM = new BasicDOM (args[0]);

    Hi, Rob
    Does it work in WL9.2?
    It seems I do it exactly as the explained at http://edocs.bea.com/wls/docs81/programming/classloading.html - and it fails :o(.
    I try to run my app.ear with WL9.2 There are 2 components in it: webapp and mdb. The webapp/WEB-INF contains weblogic.xml:
    <weblogic-web-app>
    <container-descriptor>     
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    Mdb is expected to run in the same mode, i.e. to prefer the webapp/WEB-INF/*.jar over the parent Weblogic classloader. To do so I add the weblogic-application.xml to the app.ear!/META-INF:
    <weblogic-application>
    <classloader-structure>
    <module-ref>
    <!-- reminder: this webapp contains
    prefer-web-inf-classes -->
    <module-uri>webapp</module-uri>
    </module-ref>
    <classloader-structure>
    <module-ref>
    <module-uri>mdb.jar</module-uri>
    </module-ref>
    </classloader-structure>
    </classloader-structure>
    </weblogic-application>
    Now, when classloader-structure specified, both webabb and mdb prefer the weblogic root loader as if prefer-web-inf-classes not defined at all.

  • Why tethering with USB cable doesn't work after IOS6.0 update?

    why tethering with USB cable doesn't work after IOS 6.0 update?

    Try updating the carrier settings, if that doesn't do it try following along with this Apple doc -> iOS: Troubleshooting Personal Hotspot

  • HT1338 I'm trying to print a document fro safari and the print command is at the bottom of the page and not visible.  I can't move it up and the print command shortcut doesn't work.  How do I print this document.

    I'm trying to print a document from safari and the print command is at the bottom of the page and I can't move it up.  The print command shortcut doesn't work and I would like to know how I can print this document.

    Why do we have to install 2 add ins for something that should be built in? Please add this to the next version or an update to this one even. We should see the full path of a bookmark when we search for it. Show Parent Folder alone isn't enough if you have sub folders, so I installed Go Parent Folder as well in case of sub folders.

  • JSP Doesn't work on Apache

    I installed Oracle Portal Early Adoptor edition to Windows 2000. I noticed that the Oracle HTTP server has Apache/Jserv. The servlet sample works, however the JSP doesn't work. There aren't any documentation about JSP. Do I have to install a 3rd party JSP web server such as JRUN to run JSP? Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sir Gawin:
    I installed Oracle Portal Early Adoptor edition to Windows 2000. I noticed that the Oracle HTTP server has Apache/Jserv. The servlet sample works, however the JSP doesn't work. There aren't any documentation about JSP. Do I have to install a 3rd party JSP web server such as JRUN to run JSP? Thanks.<HR></BLOCKQUOTE>
    I would also be interested in this answer.I had test site running on a win2000 server with Apache/Jserv until I installed WebDB. Now I can connect via a web browser to the default WebDB site but the Apache HTTP sevices refuse to start up giving an error message 1069( or something like that). WebDB is configired to a different port( not 80)than Apache http
    null

  • Where should I change the adapter? It doesn't work from the start.

    where should I change the adapter? It doesn't work from the start. But there is no apple store in our city.

    The phone does not charge when linking with adaptor. But it is OK when linking PC using USB instead. I do not know why, but I am just sure there is something wrong with the adaptor.

  • Why some eMac DVD SuperDrive doesn't work?

    Why some eMac DVD SuperDrive doesn't work?
    They have a limited hours life, or some DVD or CD can damage them?
    Thank you

    Hopefully some day I will find the answer for this question.

Maybe you are looking for

  • What is the different between old and new succession planning?

    Hi I have worked a lot on succession planning in 4.6c. In ECC 6.0, the succession planning has shifted to e-recruitment section. 1. What is the difference between succession planning in 4.6C and ECC 6.0 2. Can I still use the old succession planning

  • Suggestions Pls | Web Service Requirement

    Hi, We have a requirement that C4C Standard BO - Standard Inbound Web Service to be called from External Non SAP System say X. Now before the Web Service post anything to Cloud directly, we want to involve Custom logic/code to determine certain infor

  • Help Please - Activity Report

    Creating an Activity Report for a few sub-teams that role into one team. The issue is that the Activity Report allows me to select fields that I can filter on (like Reports to and etc) but I need to filter on the Opportunity Owner's Managers. Basical

  • Tutor 14 - publisher error

    I've recently moved from Tutor 11i to Tutor 14, however I am not able to publish in Tutor 14. I can open Publisher with no problems but when I select File > Publish, the whole application shuts down! I've done the following checks: - ensured there we

  • RDB Odbc drivers and Visual Express 2005 !!!

    hi, i'm having troubles with MS Web Developper Express 2005 and RDB database ODBC driver 3102. When i try to declare a link to a dsn previously delared in ODBC manager (win xp sp2), i click the "test connection" then it's succesfull, but when i want