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

Similar Messages

  • 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.

  • Viewing document (blob) in JSP doesn't work

    I am currently supporting an application which talks to an Oracle 11gR1 database using several application servers. Our application is working on the following application servers:
    - Apache Tomcat 5 and 6
    - Oracle Application Server 10gR3
    - WebLogic (configuration 1)
    We have an second server which has WebLogic (configuration 2); however, we cannot get the JSP to display on that server. The same WAR file has been deployed to all four application servers, yet only the WebLogic Server configuration 2 doesn't work.
    WebLogic Server (configuration 2) appears to work (doesn't give an error message); however, the web-page tries to show a document (which appears to be a copy/representation of the existing HTML web page - i.e. a form filter screen). Any insight into the possible problem?
    The code we are using is shown below:
    public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response) throws Exception {
    String fileIdString = request.getParameter("fileIdString");
    try {
    // Get the File to send to the client
    int fileId = Integer.parseInt(fileIdString);
    CustomFile file = fileService.loadFileById(fileId);
    if (file == null) {
    log.error("The fileId (" + fileId + ") could not be found - DNE.");
    int lastDot = file.getFilename().lastIndexOf('.');
    String fileExtension = (lastDot!=-1 ? file.getFilename().substring(lastDot) : "" );
    FileType fileType = fileService.loadByFileExtension(fileExtension);
    if (fileType == null) {
    log.error("The system could not find the file extension (" + fileExtension + ").");
    // Setup the response header so a file can be streamed to the client
    response.setHeader("Content-disposition", "attachment; filename=" + file.getFilename());
    response.setContentLength((int) file.getFile().length());
    response.setContentType(fileType.getWebContent());
    // Break the file down into its bytes so it can be streamed
    ServletOutputStream outputStream = response.getOutputStream();
    InputStream inputStream = file.getFile().getBinaryStream();
    byte[] buffer = new byte[2048];
    int bytesRead = inputStream.read(buffer);
    while (bytesRead >= 0) {
    if (bytesRead > 0) {
    outputStream.write(buffer, 0, bytesRead);
    bytesRead = inputStream.read(buffer);
    // Garbage collection
    outputStream.flush();
    outputStream.close();
    inputStream.close();
    return null;
    } catch (Exception exception) {
    log.error(exception.getMessage());
    return mapping.findForward("failure");
    We had a siimilar issue with some displaying RTF documents and the solution was to remove ALL whitespace characters in the JSP (which seemed to work). I don't see how we can remove the whitespace in the above ActionServlet code.
    Thanks in advance for the help!

    Hi Peter,
    Sorry i am not able to understand what u want to say.If u give some more details it will be useful.
    If i understand u correctly u want the button to be hidden initially and visible after some contidion becomes true right?
    If yes call a javascript function as soon as ur condition becomes true and inside that function make the span visible by writting the following code.
    document.getElementById('id of span').style.visibility='visible';
    Dont forget to give an id to span. it is necessary.
    U can use span itself no need of going for div
    If my view is wrong tell me detaily what is ur ultimate aim?
    Regards,
    Tamil K
    Message was edited by:
            Tamil Venthan

  • Why passing string from applet to jsp doesn't work?

    Hi,all:
    I have a application requires applet to get client side info, then pass this "info"--string to the JSP.
    Applet code:
    try{
         URL url = new URL(getCodeBase(),"test.jsp?
    java.version=1.2.2&java.vendor=Sun);
         URLConnection conn = url.openConnection();
         conn.setDoOutput(true);
         conn.setUseCaches(false);
         conn.setRequestProperty("Content-Type", "application/octet-stream");
         conn.connect();
    } catch (Exception e) {
         System.out.println("The error is at URL:"+e.getMessage());
    My jsp code is:
    <%
    String java_version=request.getParameter("java.version");
    String java_vendor=request.getParameter("java.vendor");
    %>
    However, it doesn't work. Could anybody help me figure out?
    Thanks in advance.
    Paul

    Request Jsp with
    test.jsp?URLEncoder.encode("java.version")=URLEncoder.encode("java.version.value")&URLEncoder.encode("java.vendor")=
    URLEncoder.encode("java.vendor.value")

  • Hidden button in jsp doesn't work

    Hi SDN.
    In jsp (jspdynpage) I would like to get to the server after showing a "Confirm" dialog box.
    I have tried with a hidden button like this:
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
    <%
         String setShowFlag = null;
    %>
    <SPAN STYLE="visibility: hidden">
         <hbj:button id='showFlag'
               text=""
               onClick="setShowFlagFalse"
               jsObjectNeeded="true">
               <% setShowFlag = myContext.getParamIdForComponent(showFlag); %>
         </hbj:button>     
    </SPAN>
    <Script language="JavaScript">
         var agree=confirm("Move to incoming");
         if (agree) {
              do something     }
            else {
              document.all.<%=setShowFlag%>.click();
    </Script>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Do anyone know why this doesn't work?
    Thanks in advance
    Peter

    Hi Peter,
    Sorry i am not able to understand what u want to say.If u give some more details it will be useful.
    If i understand u correctly u want the button to be hidden initially and visible after some contidion becomes true right?
    If yes call a javascript function as soon as ur condition becomes true and inside that function make the span visible by writting the following code.
    document.getElementById('id of span').style.visibility='visible';
    Dont forget to give an id to span. it is necessary.
    U can use span itself no need of going for div
    If my view is wrong tell me detaily what is ur ultimate aim?
    Regards,
    Tamil K
    Message was edited by:
            Tamil Venthan

  • My simple jsp doesn't work: hhhelp

    hello i'm new to java.
    I'm testing a simple jsp with a javabean: Fruit.class
    When i test it , it seems there is a problem of package (but i really need help on this)...
    Here's the error i get:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:44: cannot resolve symbol
    symbol : class Fruit
    location: class org.apache.jsp.confirm_jsp
    Fruit commandeFruit = null;
    ^
    here's the full error report
    Etat HTTP 500 -
    type Rapport d'exception
    message
    description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te.
    exception
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
        [javac] Compiling 1 source file
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:44: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          Fruit commandeFruit = null;
          ^
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:46: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
            commandeFruit = (Fruit) _jspx_page_context.getAttribute("commandeFruit", PageContext.PAGE_SCOPE);
                             ^
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:48: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
              commandeFruit = new Fruit();
                                  ^
    Une erreur s'est produite � la ligne: 16 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:71: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getNomFruit())));
                                                                            ^
    Une erreur s'est produite � la ligne: 17 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:74: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getCouleur())));
                                                                            ^
    Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:77: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getPrix())));
                                                                            ^
    Une erreur s'est produite � la ligne: 19 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:80: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getPoids())));
                                                                            ^
    7 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note La trace compl�te de la cause m�re de cette erreur est disponible dans les fichiers journaux de Tomcat.
    --------------------------------------------------------------------------------

    hello i tried what you told me but it steel seems i've
    got 2 errors
    here's the error
    exception
    org.apache.jasper.JasperException: Impossible de
    compiler la classe pour la JSP
    Une erreur s'est produite � la ligne: 5 dans le
    fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    [javac] Compiling 1 source file
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\
    pache\jsp\confirm_jsp.java:6: <identifier> expected
    import full.package.name.Fruit;
    ^
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\
    pache\jsp\confirm_jsp.java:47: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
    Fruit commandeFruit = null;
    ^--------------------------------------
    here's my jsp:
    <%-- confirm.jsp --%>
    <%@ page import="full.package.name.Fruit" %>
    <jsp:useBean id="commandeFruit" class="Fruit" />
    <jsp:setProperty name="commandeFruit"
    property="nomFruit" value="Mangue" />
    <jsp:setProperty name="commandeFruit"
    property="couleur" value="Orange" />
    <jsp:setProperty name="commandeFruit" property="prix"
    value="5.95" />
    <jsp:setProperty name="commandeFruit" property="poids"
    param="saisie_poids" />
    <HTML>
    <body>
    <h1>Votre commande de fruit (confirm.jsp)</h1>
    <br>
    Fruit : <jsp:getProperty name="commandeFruit"
    property="nomFruit"/><br>
    Couleur : <jsp:getProperty name="commandeFruit"
    property="couleur" /><br>
    Prix au kg : <jsp:getProperty name="commandeFruit"
    property="prix" /> Euros<br>
    Quantit� : <jsp:getProperty name="commandeFruit"
    property="poids" /><br>
    Total
    :�<%=commandeFruit.getPrix()*commandeFruit.getPoid
    () %> Euros<p></p>
    Revenir � la commande pour
    la modifier
    </body>
    </html>
    First error is becoz you are using word package which is a standard identifier. So you have to change ur folder name to smething else other than package.
    Second error is becoz of the first error. If the forst error is fixed second error will not occur.
    Thanks
    KM

  • Intermedia webAgent doesn't work with Apache 1.3.12 on SuSE Linux 6.4

    I've used runInstaller script on the Oracle Enterprise edition 8i release 2 and installed Intermedia WebAgent for Linux. After installation, the README file says Apache needs to be recompiled with the intermedia support added as a module. After compiling apache, http://webserver/intermedia says no document is available.

    Have you tried
    http://webserver/intermedia/~test
    http://webserver/intermedia/DB_agent/~test
    to see whether your web agent and database agent are working?
    Also, check the log files in your Apache directory.
    null

  • Not Yet Documented Array Example as JSP doesn't work.

    Example:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    Steve, in the Not yet documented examples, you have an Array of String Domain Example. We tried to modify this to create a simple struts flow that sets up the view with some parameters and then shows a datapage of the results.
    When run in batch mode, you get:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-28302: Piggyback write error
    oracle.sql.CharacterSet1Byte
    JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-25063: Operation getCurrentRowSlot cannot be performed because the working set object is not bound.
    JBO-25063: Operation getCurrentRowSlot cannot be performed because the working set object is not bound.
    the 28302 and 25063 errors are undocumented.
    If you switch to Immediate mode, it works.
    Similarly, we tried to use a numeric Array in our current project to filter a view of records to a specific client list (client and his associations). The view renders OK the first time, but when you click a setCurrentRowWithKey hyperlink, the view ends up getting "refreshed" so that our JSTL expressions that point back to this "master page" bindings, i.e. ${data.MasterPageUIModel.ViewPfRptsDueView1} show incorrect data.
    Normally, if you drop a view object on the page, and have a setCurrentRowWithKey, then navigate to a detail set, it RETAINS the row selected when you return to this view. Without changing ANYTHING else, other than the where clause to read: client_id in (' || my_client_list ||')', it worked perfectly. It also worked perfectly if we switched our sync mode to: Immediate instead of batch.
    Can you/anyone elaborate why it works in one mode and not in another?

    Repost.
    Here's a section of the batch mode bc4j.log:
    [221] Array.getInternalArray(281) Warning:No element type set on this array. Assuming java.lang.Object.
    [222] RuntimeViewRowSetIteratorInfo.rangeRefreshed(1266) [RangeRefreshEvent: EmpArrayView1 start=0 count=3]
    [223] Diagnostic.printStackTrace(405) java.io.NotSerializableException: oracle.sql.CharacterSet1Byte
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    =====> at oracle.jbo.domain.Array.writeObject(Array.java:748)
    ... [ much removed ] ...
    NOTE [221] and [223].
    It appears to work in batch mode, if you make a call to the array method: useElementType, i.e.
    arr = new Array(descriptor,conn,names);
    arr.useElementType( java.lang.String.class);
    However, this method appears to be written incorrectly. IF I just change the array.java useElementType method to read:
    public void useElementType( Class claz )
    if ( mElemType == null )
    mElemType = claz;
    instead of:
    public void useElementType(Class claz)
    if (mElemType != null)
    mElemType = claz;
    it works.
    I'm just trying to get some closure on this.

  • 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.

  • Webflow:setProperty doesn't work after migrated to sp2

     

    You should post this to weblogic.developer.interest.personalization. I have
    done so with this post.
    Cheers
    mbg
    "Harry" <[email protected]> wrote in message
    news:3e54f369$[email protected]..
    >
    Dear experts:
    We started to migrate from WLP7.0 to 7.02(Service Pack 2).
    After that, the following code in JSP doesn't work anymore. It did workbefore
    we do migration.
    <webflow:setProperty property="CHANNEL_ID" value="CHANNEL_NAME"scope="session"
    namespace="main"/>
    It genrate the exception like this:
    javax.servlet.jsp.JspException: Invalid argument to pipeline sessionsetter method
    atcom.bea.p13n.appflow.webflow.servlets.jsp.taglib.SetPropertyTag.doStartTag(S
    etPropertyTag.java:68)
    at jsp_servlet.__splash._jspService(splash.jsp:180)
    We did replace all the jars within our Enterprise App, and all the jsptags within
    our web application. But we could not figure out what's happenning here.
    Any help would be great appreciated.
    Harry

  • Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

    Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.
    e.g.
    In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.
    /content/myproject/-/
    So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.
    But the problem is there in following scenario.
    I have an anchor tag as follows.
    <a href="#" id="test"> click here </a>
    And I am assigning the href to anchor through JQUERY.
    <script>
    $("#test").attr("href","/content/myproject/en.html");
    </script>
    Ideally this should have been mapped to "/en.html".
    But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".
    How to resolve this.
    Thanks,
    Sai

    In a servlet you have access to the resourceResolver so if you know which attributes contain links then it's relatively easy to apply resourceResolver.map to those links.
    Your challenge is clearly how do you know which attributes are links and which aren't. Its is the same challenge that makes parsing the response and rewriting it on the way out difficult - the JSON doesn't have any semantic meaning so how do identify which attributes require rewriting. There really is no good answer ot that question in my experience - all the options have down sides.
    Create some convention - all attributes matching this pattern X get mapped before being converted to JSON (could be attributes whose name ends in link, or it could a convention applied to the value of the attribute - if the attribute is a string that starts with /content apply the resource resolver mapping. In this case you have train your developers to follow this convention which is the down side.
    Create some configurable list of attribute names that require mapping. This is brittle, requires training and is easy to break.
    Implement a client side version of the resource resolver mapping. It wouldn't be as full proof as server side mapping (because that takes into account but you could make it work for simple logic like stripping of /content/site/en. If ou are just trying to solve the simple version of this issue - stripping off the top of the repository path this might be your best option.
    Not worry about it and set up Apache 301 redirects that catch any long URLs and redirect them to short URLs (so configure apache to look for any URL matching /content/site/en and strip off /content/site/en and do a 301 redirect to the shortened URL. You end up with a lot of extra HTTP request because of all the 301s but it would work (I wouldn't recommend this option - but it is possible).

  • JSP referencinc taglib.tld in JAR file doesn't work.

    I have some custom tags which work fine under Weblogic 5.1 when I do a
              normal deployment of files, including the taglib.tld. However, when I
              try to reference the taglib.tld located in a JAR file, then weblogic
              throws an error saying that it cannot resolve into a valid tag library.
              I am only doing this because I am testing the same site agains both
              iPlanet Web Server and Weblogic. iPlanet will only find the taglib.tld
              when it is in a JAR file.
              Can anyone shed some light on referencing the taglib.tld in a JAR file.
              This should work, as it is covered in the JSP 1.1 specification.
              FYI - the jar file is in the same location as the JSP which references
              it. The URI to the JAR file (in the JSP) is from the root of the site.
              Thanks for any help.
              -Scott Edwards
              

    Welcome to the Sun forums.
    Subject: My Applet Jar file doesn't work !! .
    1) Note that one '!' denotes exclamation, whereas 2 or more often denotes a dweeb.
    2) Since you are on your first post, I will point out that applets are an advanced topic, and should not be attempted by newbies.
    3) "doesn't work" is very vague. It is likely to produce a reply like "maybe the applet is lazy - try flogging it".
    Amera wrote:
    ..I have written this java applet :When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags help retain the formatting and indentation of the sample. To use the code tags, select the sample and click the CODE button.
    Also note that the most preferred form of code is an SSCCE *(<- link).* In an SSCCE, your would remove all but one button (if the actionPerformed fails with 6 or 7 buttons, trim it down to fail with just one or two.
    i made a jar file :So does the applet work before you make the Jar file? Your post so far suggests the Jar file is the problem.
    i created a file and named it MANIFEST.MF .i wrote inside it :
    Main-Class: test
    Then i placed it in a folder with the test.class .I created jar file using command line.
    I entered the test.class path and then wrote this command :
    jar cvfm myjar.jar MANIFEST.MF *.class
    Then the jar file "myjar.jar" is created .
    it's executed but this function "public void actionPerformed(ActionEvent e) " won't wrok.
    i keep pressing the buttons but nothing is happening !!So you get 'no output in the console & no effect in the applet'?
    What is the URL where I can see your applet failing?
    As an aside, since Sun does not guarantee that applet clients will act on the showDocument command, even if it does not work, it would not be a 'bug'.
    Edited by: AndrewThompson64 on Dec 28, 2009 11:18 AM

  • Apache Plug-In: PathPrepend doesn't work?

    Hello All,
    I've run into a problem at a customer site with the WLS 5.1 Apache Plug-In
    with Apache 1.3.12 on Solaris 6: the PathTrim parameter does not work.
    Could somebody look at my httpd.conf file and tell me what I'm doing wrong:
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    WebLogicHost ism-app
    WebLogicPort 7010
    PathTrim weblogic
    DebugConfigInfo ON
    That's as basic as it gets, but it doesn't work! The url
    /weblogic/index.html should get sent to wls as /index.html; instead, it's
    sent verbatim.
    I've tried the plug-in from service pack versions 3, 4, 6, and 8, and tried
    the PathPrepend parameter inside the Location tag as well as outside. I
    can't imagine that this does not work for any plug-in in any service pack;
    if this is a bug in all these service packs, we really need to take a
    serious look at QA.
    Vijay Garla
    Consultant, BEA Systems
    [httpd.conf]

    Hi,
    the "apex.widget.initPageItem" will not help you in your case, it's used to register callbacks for $s, $v, show, hide, ... if you have a more advanced item type. You can have a look at the "Star Rating" plug-in which implements several of these callbacks.
    For adding cascading LOV support, please have a look at our own select list implementation in /i/javascript/uncompressed/apex_widget_4_0.js
    Search for
    apex.widget.selectList = function(pSelector, pOptions) {to get a blue print implementation for all the steps you have to add to your widget to add cascading LOV support.
    If you need further help, please let me know.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Help~~Apache doesn't work!!

    I've just installed Oracle9i application server 1.0.2.2.2a with Oracle 8.1.7 on win2000.
    But Appache doesn't work.
    The error message is following...
    No such file or directory: Config file wdbsvr.app inaccessible thru env var WV_GATEWAY_CFG
    Because I'm a beginner I have no idea why it doesn't work.
    Please help me....
    Thanks in advance...
    Brad

    It is exactly what the error message says:
    No such file or directory: Config file wdbsvr.app inaccessible thru env var WV_GATEWAY_CFG
    this is how to fix:
    1. Right click on 'My computer' > Properties > click on the 'Advanced' tab > click on 'Environmental Variables'.
    2. Under System Variables, go to the last line 'WV_GATEWAY_CFG'
    3. Your variable Value should be C:\ORACLE\iSuites\Apache\modplsql\cfg\wdbsvr.app
    Make sure your drive letter and installation path are correct.
    4. Restart your computer. Apache should work.
    Good Luck.
    I've just installed Oracle9i application server 1.0.2.2.2a with Oracle 8.1.7 on win2000.
    But Appache doesn't work.
    The error message is following...
    No such file or directory: Config file wdbsvr.app inaccessible thru env var WV_GATEWAY_CFG
    Because I'm a beginner I have no idea why it doesn't work.
    Please help me....
    Thanks in advance...
    Brad

  • Upload file jsp code doesn't work? How can I debug

    Hi Everyone,
    I have the following jsp code that simply adds a new product to the backend database when 'Continue' button is pressed.
    if( "Continue".equals(fp.getParameter("Submit")) ) {
         fp.setParameters(prodForm);
         prodForm.setCreateBy(currentUser.getUserID());
         prodForm.save();
         String filename = fp.getFilename("file");
              if( filename != null ) {
              // a file was uploaded
              // set the path to save it
              fp.setFilePath(PHYSICAL_PATH + "uploads\\");
              // we will change the filename to make sure it is unique
              // need to keep the file type
              String fileType = "";
              try { fileType = filename.substring( filename.lastIndexOf(".") ).toLowerCase(); }
              catch( Exception e ) { fileType = ""; }
              fp.saveFile("file", "POS_" + prodForm.getProductID() + fileType);
              prodForm.setSketch("POS_" + prodForm.getProductID() + fileType);
              prodForm.save();
         db.close();
         response.sendRedirect("index.jsp");
         return;
    }The code works fine but the upload doesn't work. This is the upload part of the above code:
    String filename = fp.getFilename("file");
              if( filename != null ) {
              // a file was uploaded
              // set the path to save it
              fp.setFilePath(PHYSICAL_PATH + "uploads\\");
              // we will change the filename to make sure it is unique
              // need to keep the file type
              String fileType = "";
              try { fileType = filename.substring( filename.lastIndexOf(".") ).toLowerCase(); }
              catch( Exception e ) { fileType = ""; }
              fp.saveFile("file", "POS_" + prodForm.getProductID() + fileType);
              prodForm.setSketch("POS_" + prodForm.getProductID() + fileType);
              prodForm.save();
         db.close();
         response.sendRedirect("index.jsp");So if the file browser, <input type="file" name="file">, has a file, then it saves the file in the upload folder and saves the filename in the database. But it doesn't work, it doesn't save the file in the upload folder nor it saves the filename in the database. I am new to java and jsp so could you tell me what error checking or deguging I can do in jsp to spot the problem.
    Thanks,
    Zub

    where u write the code to upload the file
    to server end?

Maybe you are looking for

  • Create View table with multiple table

    I want to create View table with relation with multiple tables. for ex table 1 mrnno mrnqty table 2 mrnno issqty table 3 mrnno retqty want to create view table where i can see the sum (mrnqty), sum(issqty),sum(retqty) group by mrnno sandy

  • Can't edit with Photoshop

    I'm having an issue trying to edit my images.  When I right click on an image and go to "edit with - photoshop CS4" nothing happens.  I've tried several times with several images and nothing.  The other day when I was editing it suddenly started open

  • How get the phone number of my hotspot so I can get a My Verizon account

    I have a Samsung SCH-LC11.  I do not have any Verizon cell phones.  I want/need my hotspot's cell phone number so I can sign up for My Verizon and monitor data usage of my hotspot.

  • Adobe x form issues

    In some forms when I write i.e. fish adobe turns that into bird, or if I write 82525 adobe makes it to 1636941 its only in some fields. These fields shows a list of previous saved items that was written in that field. That is totally ok, but when I w

  • How do I convert to Word

    How do I convert files to Word?  I have paid for it and uploaded three files but what do I do now?