jsp:forward ... tag in servlet doesn't work in 7.0

          I have a problem with <jsp:forward ... > command.
          I found a post in the newsgroups that this is a bug traced by
          CR078071 and I am stucked because of this problem. Please, send me a patch.
          

          I have a problem with <jsp:forward ... > command.
          I found a post in the newsgroups that this is a bug traced by
          CR078071 and I am stucked because of this problem. Please, send me a patch.
          

Similar Messages

  • Mapping paths to servlets doesn't work anymore in SP5 ??

    Hello,
              see subject.
              I have a small web application which is contained in a WAR-file named
              "httpdump.war". Its deployment descriptor (web.xml) maps the servlet
              httpdump.HttpDumpServlet to the path /servletpath/* with the following
              XML statements:
              <servlet>
              <servlet-name>HttpDumpServlet</servlet-name>
              <display-name>The HTTP Dump Servlet</display-name>
              <servlet-class>httpdump.HttpDumpServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>HttpDumpServlet</servlet-name>
              <url-pattern>/servletpath/*</url-pattern>
              </servlet-mapping>
              In weblogic.properties, I have:
              weblogic.httpd.webApp.httpdump=httpdump.war
              The WAR-file is structured as follows:
              $ jar tf httpdump.war
              META-INF/
              META-INF/MANIFEST.MF
              WEB-INF/classes/httpdump/HttpDumpServlet.class
              WEB-INF/web.xml
              dummy.jsp
              $
              Now a request like http://host:port/httpdump/servletpath/xyz should be
              directed to my servlet, right?
              This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
              Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Error loading servlet: httpdump.HttpDumpServlet
              java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
                   at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:355)
                   at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
                   at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericClassLoader.java:503)
                   at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java:366)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:182)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:156)
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:371)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Servlet failed with ServletException
              javax.servlet.ServletException: Servlet class: httpdump.HttpDumpServlet could not be loaded - the requested class wasn't found in the classpath
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:379)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              So, it seems the WLS has interpreted the <servlet-mapping> tag in the
              DD correctly, but is then looking for the servlet class in the wrong
              places..?
              My system configuration:
              $ java weblogic.Admin t3://localhost:7001 VERSION
              WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
              $ uname -a
              Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000 i686 unknown
              $ java -version
              java version "1.2.2"
              Classic VM (build 1.2.2-L, green threads, nojit)
              $
              Any hints?
              Thanks,
              Olaf
              Olaf Klischat | TU Berlin computer science
              Oberfeldstrasse 132 |
              12683 Berlin, Germany |
              phone: +49 30 54986231 | eMail: [email protected]
              

    Hi,
              we jared our servlets up and placed them in /WEB-INF/lib/....jar. The
              mapping is working without any problems.
              Daniel Hoppe
              -----Original Message-----
              From: Kumar Allamraju [mailto:[email protected]]
              Posted At: Saturday, August 26, 2000 7:57 PM
              Posted To: servlet
              Conversation: mapping paths to servlets doesn't work anymore in SP5 ??
              Subject: Re: mapping paths to servlets doesn't work anymore in SP5 ??
              Yes, this is already a known problem in SP5.
              Fix will be available in the upcoming service packs.
              I guess the workaround is to put servlet classes in servlet classpath.
              Sorry about the regression.
              Kumar
              Olaf Klischat wrote:
              > Hello,
              >
              > see subject.
              >
              > I have a small web application which is contained in a WAR-file named
              > "httpdump.war". Its deployment descriptor (web.xml) maps the servlet
              > httpdump.HttpDumpServlet to the path /servletpath/* with the following
              > XML statements:
              >
              > <servlet>
              > <servlet-name>HttpDumpServlet</servlet-name>
              > <display-name>The HTTP Dump Servlet</display-name>
              > <servlet-class>httpdump.HttpDumpServlet</servlet-class>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>HttpDumpServlet</servlet-name>
              > <url-pattern>/servletpath/*</url-pattern>
              > </servlet-mapping>
              >
              > In weblogic.properties, I have:
              >
              > weblogic.httpd.webApp.httpdump=httpdump.war
              >
              > The WAR-file is structured as follows:
              >
              > $ jar tf httpdump.war
              > META-INF/
              > META-INF/MANIFEST.MF
              > WEB-INF/classes/httpdump/HttpDumpServlet.class
              > WEB-INF/web.xml
              > dummy.jsp
              > $
              >
              > Now a request like http://host:port/httpdump/servletpath/xyz should be
              > directed to my servlet, right?
              >
              > This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
              >
              > Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
              Error loading servlet: httpdump.HttpDumpServlet
              > java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
              > at
              weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:35
              5)
              > at
              weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
              > at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
              > at
              weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericCl
              assLoader.java:503)
              > at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericCl
              assLoader.java:366)
              > at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
              der.java:182)
              > at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
              der.java:156)
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
              .java:371)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
              a:187)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
              java:118)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:760)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:707)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
              textManager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
              69)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              >
              > Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
              Servlet failed with ServletException
              > javax.servlet.ServletException: Servlet class:
              httpdump.HttpDumpServlet could not be loaded - the requested class
              wasn't found in the classpath
              >
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
              .java:379)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
              a:187)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
              java:118)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:760)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
              tImpl.java:707)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
              textManager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
              69)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              >
              > So, it seems the WLS has interpreted the <servlet-mapping> tag in the
              > DD correctly, but is then looking for the servlet class in the wrong
              > places..?
              >
              > My system configuration:
              >
              > $ java weblogic.Admin t3://localhost:7001 VERSION
              > WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
              >
              > $ uname -a
              > Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000
              i686 unknown
              >
              > $ java -version
              > java version "1.2.2"
              > Classic VM (build 1.2.2-L, green threads, nojit)
              > $
              >
              > Any hints?
              >
              > Thanks,
              > Olaf
              > --
              > Olaf Klischat | TU Berlin computer science
              > Oberfeldstrasse 132 |
              > 12683 Berlin, Germany |
              > phone: +49 30 54986231 | eMail: [email protected]
              

  • Difference between jsp forward tag and sendRedirect

    I would like to know the difference between jsp forward tag and sendRedirect.
    Please explain with a suitable example if possible ...
    glenn

    See: http://java.oreilly.com/news/jsptips_1100.html (number 4)

  • Is the jsp forward tag fails in iplanet application server sp2?

    11/Feb/2002 17:55:41:2] error: Exception: SERVLET-compile_failed: Failed in compiling template: /EinsWebTool/QueryScreen.jsp, Parse error in JSP parser. Missing endtag: /jsp:forward
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jsp:forward
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parseReqDisp(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Compiled Code)
    at com.netscape.jsp.JSP.parseNext(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Compiled Code)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.jsp.PageContextImpl.forward(Unknown Source)
    at jsp.APPS.EinsWebTool.Login._jspService(Compiled Code)
    at jsp.APPS.EinsWebTool.Login.service(Login.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)

    Hi,
    Yes, I was able to code this sucessfully and got it working. Here is the code I used...
    <%
    String fortune = (String) request.getAttribute("fortune_string");
    %>
    <HTML>
    <HEAD><TITLE>Fortune Sample Application</TITLE></HEAD>
    <BODY BGCOLOR=#FFFFFF>
    <H2>The Oracular Servlet greets you!</H2>
    <p>
    Your fortune is...
    <%= fortune%>
    <p>
    <p>
    <hr size=0>
    <p>
    <FONT SIZE=2>Sample Applications
    <jsp:forward page="/ias-samples/index.html">
    </jsp:forward>
    </BODY>
    </HTML>
    and I got it working. I believe the code is missing some tag, which I tried, but got error in KJS like...
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    [15/Feb/2002 11:23:49:7] info: jsp.APPS.fortune.fortune: init
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    Null text data??
    2002-02-15 11:24:16 - error-the file '\fortune.jsp' generated the following pars
    e exception: org.apache.jasper.compiler.ParseException: C:\iplanet\ias6\ias\APPS
    \fortune\fortune\fortune.jsp(17,0) Expected "param" tag with "name" and "value"
    attributes after the "params" tag.
    In your case, I suspect, either the parser is not able to convert the .jsp file appropriately, or some inappropriate tag. If this doesn't help please send me your code & I can help you on this regard.
    Regards
    Raj
    [email protected]

  • File download via servlet doesn't work with IE via https

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

  • Servlet doesn't work in the Web app after deployed to weblogic 7.0

    Hi,
    I'm new to weblogic.
    I recently developed a web application. It runs perfectly in
    Jdeveloper Embeded server on my local machine. The app was talking to
    a orable 9i database.
    However after I deployed it to weblogic 7.0 server. All servlets don't
    work any more. Some give me 404 error which I figured it might have
    something to do with my web.xml. I didn't have enough servlet-mapping
    definition. I corrected and now I've got new 500 error. I'm wondering
    if I need to do some oralce configure thing in the admin console. But
    it does work in Jdevlopera. All connection statment and sql statements
    were in the servlet code. Is here anything I miss? please help. I've
    been stuggle with this for 3 days. Any tip will be highly appreciated.
    Thanks again.
    When I run a servlet by calling a URL. It gives me the following
    error. What could this go wrong?
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from
    fulfilling the request.

    Make sure to have the right servlet mapping:
    For example:
    <servlet-mapping>
    <servlet-name>Servlet1</servlet-name>
    <url-pattern>/Servlet1_Url</url-pattern>
    </servlet-mapping>
    Then call the servlet as
    http://Hostname:7001/contex_root/Servlet1_Url
    Since your servlet is talking to the Oracle9i database, If you come across any database connecting problems
    make sure classes12.jar is in the classpath before startting WebLogic7.0
    Make sure the WL_home/weblogic700/server/lib/classe12.zip is not loaded by moving it into a different folder.

  • How do i pass a url with query string using the jsp:forward tag

    This snippet of code gives a 403 error
    <jsp:forward page="testpage.jsp?test=1" />
    How do i rectify it?

    Well better way to go about for the job is to use
    setAttribute("name","value");method in the first page
    and then in next page use method
    String s=getAttribute("name");to retreive the value.
    Url rewritting or using Query String has some disadvantages ,which are handled by above mentioned approach.
    Ashish

  • ACL on servlet doesn't work?

    When we put an ACL to require authentication on a servlet directory, it works as expected when the client posts to the servlet from a form. But an URL like this
    http://hostname/servlet/OurServlet?param=xxx
    is not affected (the default ACL applies instead). Is this expected? The ACL is below.
    Zeke
    acl "path=C:/iPlanet/Servers/docs/servlet/";
    authenticate (user,group) {
         database = "default";
         method = "basic";
    deny (all)
    (user = "anyone");
    allow absolute (read,execute)
    (group = "Servlet Users");

    I don't know if this is what's cuasing the problem, but it may have something to do with your path mapping. Try using the uri= instead.

  • The walkthrough of building DB servlet doesn't work for me?

    I download JDeveloper2.0 a few days ago and tried to build
    servlet following the instruction from this web site. But the
    sun web server complaint not being able to find the file I
    specified. It seems the servlet's .class file need to be copied
    to the c:JavaWebServer1.1.3/servlet directory. But even after I
    did that nothing improves. Can anyone help?
    by the way, I tried the building DB applet by using
    JDeveloper1.1. The example i used is on Oracle Press's
    JDeveloper book(pg384). After I deploy it on the web using
    OAS4.0, if I call it using Netscape, it says query failed. If I
    call it using IE, sometimes it works fine, and other times not
    (applet doesn't show up). I am a bit of disappointed about the
    product,since I was thinking about using it to develope our
    database's web interface.
    Steve
    null

    Steve,
    I would recommend using the instructions in the online help for
    deploying the servlet. The online demos are not really intended
    to be step by step tutorials, and are also not as up to date as
    the online docs, which are much more detailed.
    In the online help system, expand the Developing Web Applications
    node, then Deploying Java Servlets, then Deploying a Database
    Servlet.
    L
    Steve Chen (guest) wrote:
    : I download JDeveloper2.0 a few days ago and tried to build
    : servlet following the instruction from this web site. But the
    : sun web server complaint not being able to find the file I
    : specified. It seems the servlet's .class file need to be copied
    : to the c:JavaWebServer1.1.3/servlet directory. But even after I
    : did that nothing improves. Can anyone help?
    : by the way, I tried the building DB applet by using
    : JDeveloper1.1. The example i used is on Oracle Press's
    : JDeveloper book(pg384). After I deploy it on the web using
    : OAS4.0, if I call it using Netscape, it says query failed. If I
    : call it using IE, sometimes it works fine, and other times not
    : (applet doesn't show up). I am a bit of disappointed about the
    : product,since I was thinking about using it to develope our
    : database's web interface.
    : Steve
    null

  • SimpleFormSelect Tag Property 'Size' Doesn't Work!

    Hello, I have created a JSP that uses the SimpleFormSelect Tag, and I have a problem with the size property of it:
    <SimpleForm name="testForm" target="xxx.jsp" method="post">
    <SimpleFormSelect name="testSelect" displaymode="list" size="10">
    <SimpleFormOption value="1">number 1</SimpleFormOption>
    <SimpleFormOption value="2">number 2</SimpleFormOption>
    <SimpleFormOption value="3">number 3</SimpleFormOption>
    </SimpleFormSelect>
    </SimpleForm>
    This should display a list box that is 10 items high, but the height remains at 1. What am I doing wrong?

    Try using multiple="true". Look at the following example: http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/wireless.902/a90485/xml4.htm#1033402
    Kalle

  • Forwarding email with attachments doesn't work

    In Mail.app, why when I forward an email with any kind of attachment does the email only contain a text description of said attachment and not the actual attachment itself?
    I then have to down the attachment to my desktop and re-attach it to the email I'm forwarding. Not a big deal, but I don't see why I need to take these extra steps and cannot find a relevant preference in the Mail.App client prefs.
    Thanks!

    BD,
    That was totally it. This has been plaguing my Mom and frustrating her for a year now. For some reason, I wasn't notified of your response many moons ago.
    Thanks so much,
    Josh
    ps. lol, I guess in looking at the time stamp it's been 4 years - jeez. Thanks again!
    Message was edited by: Joshua Nelson2

  • Struts tag html:link doesn´t work in Safari

    *Very important question for our company!*
    I´m trying to optimize our web application( www.seb.de) for Safari browser.
    The problem is that Safari don´t display Struts <html:link> on the page. On the page should be a button "delete" at the right side.
    Button Code:
    <html:link>
    href="DeleteMail"
    newFlow="true"
    styleClass="a_delete"
    bundle="<%=SebMailBoxConstants.BUNDLESEBMAIL%>"
    titleKey="Delete"
    </html:link>
    There is a styleClass "a_delete", which this button uses:
    a.a_delete
    background-image: url('icon/icon_delete.gif');
    background-repeat: no-repeat;
    width: 12px;
    padding-right: 12px;
    margin-top: 2px
    Please help me to solve this problem.
    Best regards,
    Sergei.
    SEB Group.

    same thing here, I've talked to apple twice and no resolution
    if you move the screen up you can usually get the links to work
    also when I do Google searches I can get to the second page of results and then I can go no further

  • Fast Forward & Rewind doesn't work for long audio files

    I have loaded several mp3 files into the Pre via USB.  Some are 2+ hours long, some are a few minutes.  Fast forwarding thru the track doesn't work on the long files.  Holding down the fast-forward arrows will cause the audio to stutter in the same place, sometimes go BACKWARDS instead of forwards, and eventually it will go silent.  Pressing Pause, Play, whatever won't bring it back and ytou have to start the audio file over.
    Help, Palm!
    Post relates to: Pre p100eww (Sprint)

    Yea, the fast forward is way lame and pretty much...
    You get the idea.
    mark

  • Difference between jsp forward action tag and response.forward()

    hi guys
    i have just started programming using j2ee technology.
    could anyone please tell me what is the difference between the jsp forward action tag and froward method using the response object?

    There really isn't one. The JSP forward tag is a convenience tag for JSP, that uses the response method.

  • Jsp:forward won't forward to the correct URL

    I'm using JSP with an Apache2 + Tomcat4 + OpenSSL server. I have configured the web server to rewrite URLs for hyperlinks (eg. <a href="dest_page.jsp:SSL> ... </a>) to Fully Qualified URL for the purpose of facilitating SSL for the applicable links. Thus dest_page.jsp:SSL should transform into https://www.mysite.com/nirvana/dest_page.jsp.  This works fine for the links, but the page is also forwarded to by a controller JSP.
    The <jsp:forward> tag in my controller doesn't seem to except a FQDN. The orginial code follows:
    <%
       String op = (String) request.getParameter(operation");
    if( op.equals("buyitem") )
    if( !userObj.LoggedIn() )
    %>
    <jsp:forward page="register.jsp"
    <%
    else ....
    The desired affect is to transform the page param from "register.jsp" to "https://www.mysite.com/nirvana/register.jsp". The URL rewriting has no effect on the forward tag "register.jsp:SSL" results in "/nirvana/register.jsp:SSL" where "/nirvana" is an alias configed in the webserver that forms a relative path to the URL. Needless to say this won't work.
    If I try to use the FQDN ("https://www.mysite.com/nirvana/register.jsp") in the page param then I get "/nirvana/https://www.mysite.com/nirvana/register.jsp" which is also wrong.
    To sum it up, rewrite doesn't work for forwarding. So I tried a FQDN, but the forward tag always prepends an alias. What do I need to do?
    Thanks,
    Osensei

    jsp:forward is only relative, IE you can't forward to https://...
    page="{relativeURL | <%= expression %>}" A String or an expression representing the relative URL of the file to which you are forwarding the request. The file can be another JSP file, a servlet, or any other dynamic file that can handle a request object.
    You can try using this guys custom tag for sendRedirect:
    http://coldjava.hypermart.net/servlets/redirtag.htm
    or use response.sendRedirect(); which sends a HTTP 301 back to the browser with the new URL.

Maybe you are looking for