JSP Redirection to html

<%@ page import="java.sql.*,java.io.*" %>
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
Connection con = null;
Statement stmt = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:malldata");
String sql = "SELECT CUST_ID,USER_ID, PASSWORD FROM CUSTMASTER WHERE USER_ID=? and PASSWORD=?";
ps = con.prepareStatement(sql);
stmt = con.createStatement();
ps.setString(1,username);
ps.setString(2,password);
rs = ps.executeQuery();
if (rs.next()) {
out.println (rs.getObject(1).toString());
out.println (rs.getObject(2).toString());
out.println (rs.getObject(3).toString());
else %>
<jsp:forward page="login.html" />
} catch (SQLException e) {
throw new ServletException ("servlet could not display records . " + e);
catch (ClassNotFoundException e) {
throw new ServletException ("Jdbc driver not found " + e);
the forward page works always irresptive of whether the rows are returned or not. I know it returns rows as i checked it with knows values from the database. What is wrong here?

Try giving brackets for the else loop. like this.
if (rs.next()) {
out.println (rs.getObject(1).toString());
out.println (rs.getObject(2).toString());
out.println (rs.getObject(3).toString());
else { %>
<jsp:forward page="login.html" />
<%
} catch (SQLException e) {
throw new ServletException ("servlet could not display records . " + e);
catch (ClassNotFoundException e) {
throw new ServletException ("Jdbc driver not found " + e);
Hope this helps.

Similar Messages

  • How to bring Login.jsp under a html frame ?

    hi all.
    I have customized the Login.jsp and actually have lot of static content to be displayed in our proposed entry page.
    I decided to use Html frames - something like the one below.
    When i point on the frame to the Login.jsp ( i referred it as 'amserver/UI/Login') --> it loads all frames then redirects the page to the /amserevr/UI/Login -> the Login.jsp now occupies the entire screen and i c none of the html frames..
    any idea how to bring in the portal Login.jsp under a html frame ?
    Thanks
    Vee
    <html>
    <frameset noresize="noresize" frameborder=0 rows="25%,70%,5%">
    <frame frameborder=0 noresize="noresize" src="/amserver/UI/Login" name="banner_frame" scrolling=no>
    <frameset frameborder=0 noresize="noresize" cols="30%,70%">
    <frame frameborder=0 src="./images/menus.gif" name="menu_frame" scrolling=no>
    <frame frameborder=0 src="./images/content.gif" name="content_frame" scrolling=no>
    </frameset>
    <frame frameborder=0 src="./images/copyright.gif" name="copyright" scrolling=no>
    </frameset>
    </html>

    is it possible to write jsp code or javascript code inside this Login.jsp ?
    I got a bunch of content - menu driven to displayed additional to the identity server login module.
    veera

  • HELP: JSP + XML + XSLT = HTML?

    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation I had a JSP
    that contained XML tags... they were filled in at runtime and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer. SAXON checked
    for the inline XSL specified and then used that to transform the document
    into HTML.
    It worked well, but there were some other features missing/not documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library that comes with the
    distribution, but it seems to be very finicky. I followed the directions and
    I got it to do a sort of roundabout transformation. But it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly... that is, if I
    don't hard-code the XSL file in the x:xslt element in the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic specific
    elements/tags that I have to include in the XML file that Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't cause too much
    traffic.

    Craig,
    I've since discovered how to do it with the WL Taglibrary... and have
    moved on =)
    It has to do with the EXTREMELY BADLY documented x:xml tag that can
    appear within the x:xslt tag body...
    So the WL Tag Library allows something like the following.
    (Please note, angled brackets are omitted in this post to prevent html
    parsing)
    [x:xslt stylesheet="sheet.xsl"]
    [x:xml]
    Here is the XML to run the sheet on.
    This should have all relevant XML syntax: the PIs, the doctype,
    root elements etc...
    [x:xml]
    [x:xslt]
    And that DOES work. But not very well. WL, a little prematurely
    incorporated versions 1.2 of Xerces and Xalan in their product -- and
    these versions have some irritating bugs.
    Also -- There tag library doesn't copy the source XML across as UTF-8
    .. so a lot of the Japanese I have embedded there (from a DB) gets
    mangled somewhere in their code...
    AND -- If you hammer a little bit on an JSP/XML that uses the WL Tag
    Library (eg clicking refresh lots of times in IE)... I get huge
    amounts of irritating exceptions appearing in the log files.
    NullPointerExceptions
    XSL Parsing Exceptions
    XML Parsing Exceptions
    but completely unpredictably...
    In my eyes.. the WL XML/XSL Tag Library using the incorporated and
    untouchable Xalan and Xerces (v1.2) is virtually unusable.
    What a pain.
    BUT! Apache offers a similar OPEN SOURCE XSL Tag Library available
    here:
    http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
    And it uses the standard, non-weblogic-incorporated, Xerces and Xalan
    (which means you can provide whatever version you want).. and it works
    impressively well.
    It has almost identical performance as the WL Taglib, and without all
    of the bizarre exceptions being thrown.
    And it does proper passing of the character encoding type!
    If only the taglib did caching though =(
    The performance hit over pure JSP is huge. Almost two orders of
    magnitude. On my desktop box I can get around 500Requests/Sec if I am
    returning HTML direct from a JSP... while if I produce XML that gets
    processed by XSL into HTML the Requests/Sec drops to 5!!!!
    Caching. Caching. And more Caching. A lot of DiskIO is going on with
    the XML/XSL/XHTML chain of events.
    I hope this helps!
    I'd be curious as to what you find out as well.
    Dylan Parker
    On 5 Mar 2001 07:20:00 -0800, "Craig Macha"
    <[email protected]> wrote:
    >
    Yep, I feel Dylan's pain.
    I am trying to accomplish the same thing. A JSP page generating
    dynamic XML content and then utilizing an XSLT stylesheet to transform
    all the content into XHTML.
    Does anyone have some examples that show exactly how to accomplish
    this? Can I do this with WLS and the XML taglib that comes with
    it? Or do I have to move on to something like Cocoon to get this
    capability?
    Any insight would be greatly appreciated.
    Thanks,
    Craig Macha
    "Dylan Parker" <[email protected]> wrote:
    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the
    JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation
    I had a JSP
    that contained XML tags... they were filled in at runtime
    and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer.
    SAXON checked
    for the inline XSL specified and then used that to transform
    the document
    into HTML.
    It worked well, but there were some other features missing/not
    documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library
    that comes with the
    distribution, but it seems to be very finicky. I followed
    the directions and
    I got it to do a sort of roundabout transformation. But
    it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp
    (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly...
    that is, if I
    don't hard-code the XSL file in the x:xslt element in
    the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys
    (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and
    transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic
    specific
    elements/tags that I have to include in the XML file that
    Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would
    much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't
    cause too much
    traffic.

  • Capturing the output of a JSP page as HTML

    Hi,
    Can anyone tell me if this is possible. I have a JSP page that contains
    information about an order that was just entered (Essentially a
    confirmation page). What I want to do is somehow intercept the output
    stream inside the JSP page and write it to a file, as plain html, which
    I
    will later attach to an email and send to someone.
    Thanks,
    Jordi
    Jordi Pinyol Essi Projects
    Ingeniero de Desarrollo
    [email protected] t +34 977 221 182
    http://www.essiprojects.com f +34 977 230 170

    You won't be able to "intercept" the output since it is the JSP page itself that is doing the writing.
    Will the file that you write the output to reside on the client side or the server side? It sounds like you want to receive the HTML output not as something to view on the browser, but a file you can save and send and use later. If this is the case, one technique that might work is to take advantage of the servlet name mapping feature that is available for registered JSP pages.
    Assuming your JSP pages are registered, you would map your JSP page like:
    <servlet>
    <servlet-name>confirmation</servlet-name>
    <jsp-file>confirmation.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>confirmation</servlet-name>
    <url-pattern>/confirmation.out</url-pattern>
    </servlet-mapping>
    What happens is that a request for the URL /NASApp/myapp/confirmation.out gets mapped to the confirmation.jsp JSP page. If you set your MIME type correctly in the JSP page, the HTML output from the JSP page is not properly recognized by the browser causing it to prompt you to save the file.
    I have used this technique to generated CSV files from a JSP page. The browser is completely fooled.
    JC
    Jordi Pi?ol wrote:
    >
    Hi,
    Can anyone tell me if this is possible. I have a JSP page that contains
    information about an order that was just entered (Essentially a
    confirmation page). What I want to do is somehow intercept the output
    stream inside the JSP page and write it to a file, as plain html, which
    I
    will later attach to an email and send to someone.
    Thanks,
    Jordi
    Jordi Pinyol Essi Projects
    Ingeniero de Desarrollo
    [email protected] t +34 977 221 182
    http://www.essiprojects.com f +34 977 230 170

  • Including the results of a jsp into an HTML page

    Hey everyone,
    I am trying to include the results of a jsp inside an HTML page (HTML served by Apache, JSP served by Tomcat).
    Is there any straight way of doing this - say using Ajax or some javascript? I have been experimenting with ajaxinclude from DynamicDrive.
    Appreciate the help,
    Ankush

    Well, u can do one thing, may not be a proper method...
    one way is to call the jsp page using ajax and the output of the jsp page can be converted to an xml and this xml can be read by the ajax program.

  • Jsp:include of html file not working

              Hi
              I wrote:
              <jsp:include page="include.html" />
              <% pageContext.include("include.html"); %>
              in my jsp, but there is no output and no error message.
              What could be the problem?
              If I include include.jsp it works.
              Does jsp:include only work with jsp, not with html???
              I am wondering whether our servlet registrations could be responsible. We have:
              weblogic.httpd.defaultServlet=*.jsp
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.register.*.htm=weblogic.servlet.FileServlet
              weblogic.httpd.register.*.html=weblogic.servlet.FileServlet
              so that the default servlet is the JSPServlet, not the ServletServlet. We don't
              want to use the ServletServlet because it can deliver source code.
              What we want to do is a dynamic including of a file, like so:
              <% String s = ...; %>
              <jsp:include page="<%= s %>" />
              Thanks for any help.
              Alex
              

              By changing the weblogic servlets that are registered, I can get it to work. The
              combination that works is:
              weblogic.httpd.defaultServlet=file
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.register.file=weblogic.servlet.FileServlet
              I am surprised that it doesn't work if *.html is mapped explicitly to the FileServlet
              (which would leave the defaultServlet unused). Why is that?
              And why can't I map defaultServlet to "weblogic.servlet.FileServlet" directly,
              without the intervening virtual name "file"?
              What are the security implications of having FileServlet as the default servlet?
              Thanks
              Alex
              

  • How to send information from HTML page to JSP without reloading HTML page?

    Hello,
    Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
    Thanks.
    Oleg.

    Yes, you can do this with framesets and a hidden frame.
    You need a bit of JavaScritp in the "visible" frame that
    sets the location of the hidden frame to the JSP.
    Add the user's choice as a parameter to the JSP URL.

  • WAR or JSP to serve HTML in JAR file?

    Hi,
    I want to keep a few hundred static help files in a JAR when I install my appliation on the server to ease installation and management. But what is the best way to serve them up? What litle I know about WARs seems to imply I can have HTML files in one and, with the server set up correctly, redirect a URI to find HTML files in there. Is that so? Is there an exmple out there?!
    cheers,
    Chuck

    Hi,
    Thanks, but to be clear, I want to ONLY have HTML files in this WAR. The rest of the appliation's servlets will not be part of this.
    I am simply looking for an easy way to access the HTML files if I JAR them up. Using a WAR, there is no servlet/jsp required to redirect a URL request to an HTML file in the archive, right? What would the web.xml look like, or is it even needed, when there is no JSP associated with the WAR?
    thanks,
    Chuck

  • JSP Redirecting

    Hey ppl. Im here asking weather JSP can redirect to a different page if some certain conditions are met. My code is:
    process.jsp
    <%
    String fname = request.getParameter("fname");
    String lname = request.getParameter("lname");
    if(((fname).equals("")) || ((lname).equals("")))
    %>
    <jsp:forward page="display.php" />
    <% } else { %>
    All variables have values
    <% } %>
    <html>
    This scriptlet checks variables for empty values. If one or all variables are empty, you get redirected to a different page. Now this is the problem, ive noticed that jsp:forward doesnt actually redirect you, it include the src code of the redirect page to the process.jsp page. If im redirecting to a PHP page with PHP code, the php page wont parse becuase the process.jsp page is ending with .jsp. Get what I mean? How can I PROPERLY redirect to a page? without using <meta refresh>? Is there a different jsp action which redirects you to a different page completly? rather than jsp:forward? thx.

    try this
    response.sendRedirect("/newJSP");
    return;

  • JSP redirect

    Hello All,
    Im trying to figure out how to redirect a JSP paget to another page after displaying some HTML. The redirect should be time delayed though.
    response.flushBuffer();
    Thread.sleep(5000);
    response.sendRedirect("Login.jsp?uname=" + userID);
    I tried something like the above - but it did not like the call to flushbuffer. I do have some HTML I want printed before the timedelay kicks in and the page redirects. All this should be server side if possible.
    Thanks,
    Girish

    Ugh!! No, that's not it at all. One thing at a time here....
    First, your idea of response.flushBuffer()/sleep will not work because once the response buffer flushes, the first thing that happens is that the response headers are sent to the browser. Once that happens, you can't change the headers. sendRedirect uses a Location header to tell the browser to go elsewhere. So that's the problem with what you wrote, it shouldn't work.
    Second, the <script ... run at server> thing, I don't know what server you are using, but that only works if the server supports server-side Javascript, and that's not many. I am also making an educated guess (I've never done server-side JS) that it wouldn't work anyway for this redirection for the same reasons as mentioned above.
    So, how to do it? Well, the problem is you can't really do it from the server side. There are 2 client-side alternatives.
    Javascript:
    <head>
    <script language="JavaScript">
    // I use a separate function cuz defining the location in the onload function
    // itself creates some quote issues...
    function doRedirect() {
       document.location = 'Login.jsp?uname=<%= userId %>';
    </script>
    </head>
    <body ... onload="setTimeout('doRedirect();', 5000);">
    ...Or META tags:
    <head>
    <meta http-equiv="Refresh" content="5000; URL=Login.jsp?uname=<%= userId %>">
    ...However, you could put the Javascript script tags in the lower body of the response and then do the same sleep thing before writing it, but it's better not to sleep the thread that is serving the page.

  • JSP redirection

    I have setup a jsp file for user verification, making sure that the user has properly logged in to view a page. This JSP is included on each secure area page. If the user is not verified, I want to redirect them to another page, but I'm getting a servlet exception while doing it. Here's the code I'm using:
    <jsp:useBean id="isValid" class="userValid" scope="session" />
    <%
    boolean userStatus= false;
    userStatus = isValid.getIsvalid();
    if(userStatus==false){
    response.sendRedirect("./index.html");
    else{
    response.sendRedirect("./empIndex.jsp");
    %>
    As said before, this page is simply included in other pages, which I assume is what's causing the problem.

    Location: /empPartOrderView.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Included servlet threw exception
         at org.apache.tomcat.facade.RequestDispatcherImpl.wrapException(RequestDispatcherImpl.java:552)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:437)
         at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:189)
         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:413)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:450)
         at empPartOrderView_5._jspService(empPartOrderView_5.java:189)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:479)
    Root cause:
    java.lang.ClassNotFoundException: TOMCAT/JSP/error.jsp
         at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java:186)
         at org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java:92)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java:90)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:343)
         at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)
         at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:402)
         at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:189)
         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:413)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:450)
         at empViewAppt_9._jspService(empViewAppt_9.java:222)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:479)

  • WAR or JSP to serve HTML in a JAR?

    Hi,
    I want to keep a few hundred static help files in a JAR when I install my appliation on the server to ease installation and management. But what is the best way to serve them up? What litle I know about WARs seems to imply I can have HTML files in one and, with the server set up correctly, redirect a URI to find HTML files in there. Is that so? Is there an exmple out there?!
    cheers,
    Chuck

    Hi,
    Thanks, but to be clear, I want to ONLY have HTML files in this WAR. The rest of the appliation's servlets will not be part of this.
    I am simply looking for an easy way to access the HTML files if I JAR them up. Using a WAR, there is no servlet/jsp required to redirect a URL request to an HTML file in the archive, right? What would the web.xml look like, or is it even needed, when there is no JSP associated with the WAR?
    thanks,
    Chuck

  • Calling a JSP Report From HTML parameter form

    Hi,
    I m trying to run a JSP Report from a HTML parameter Form. The JSP reports requires a parameter named userid in the URL with a valid value for database connection.
    eg. URL "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?userid=sysapps/system@trt1". We have created a variable on the server named "parmformjsp" with a value "sysapps/system@trt1". Now i use this variable in the URL as follows, eg. "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?parmformjsp".
    When i use this URL to call another JSP report from a JSP report it works fine, but the same does not work when calling a JSP report from a HTML form.
    the code for HTML parameter form calling a report is as follows,
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Parameter Form</title>
    </head>
    <body>
    <p>Parameter Form</p>
    <form name="form1" method="GET"
    action="http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_custrns.jsp?parmformjsp">
    <p>From Date<input type="text" name="p_fmdate" size="20"></p>
    <p>To Date<input type="text" name="p_todate" size="20"></p>
    <p> </p>
    <p><input type="submit" ><input type="reset" value="Reset" name="B2"></p>
    </form>
    <p> </p>
    </body>
    </html>
    If i create an input parameter named "userid" with a valid database connection value, remove the ?parmformjsp part from the action URL then it works fine. How can i call the JSP report using the parmformjsp variable name instead of using the "userid" clause in the URL.Can anyone suggest any workaround....
    Thanks & Best Regards,
    Unmesh

    do it like this...
    DECLARE
    pl_id ParamList := Get_Parameter_List('tmpdata');
    BEGIN
    IF NOT Id_Null(pl_id) THEN
      Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'ROUTE_CARD_CONTROL', TEXT_PARAMETER, :ROUTE_CARD.ROUTE_CARD_CONTROL);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Run_Product(REPORTS, 'D:\STL_FINAL\CHPREPORTS_FINAL\ROUTE_CARD.REP', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END; what exactly happens when you call the report. if its showing the blank page... may be you are not passing the right parameter name. cross-check that your parameter name in the report is 'ROUTE_CARD_CONTROL'.

  • How can I send email from an JSP page  with HTML format either using jsp

    hi,
    I have an jsp page with online application form,after compleating the form if i select submit it will send all the compleated data to the mail id we mentioned in the form tag,for this i am using javascript,but instead of receiving the data in the format of strings,my client want to receive the data in the same format as he's filling in the jsp page(html format) through e-mail.any help would be appreciated.the fallowing is the code right now i am using for email application.
    <code>
    function send()
    if(validatePersonalInfo(document.theform))
         document.theform.submit()
         location.href=location.reload()
    function validatePersonalInfo(form)
         var tmpStr ="";
         if (form.Name.value == "") {
              tmpStr = "Name";
              document.all.dName.style.visibility="visible";
              document.theform.Name.focus();
         else{
              document.all.dName.style.visibility="hidden";
         if (form.SSN.value == "") {
              tmpStr = tmpStr + ", Social Security Number";
         document.all.dSSN.style.visibility="visible";
         if(form.Name.value != "")
              {document.theform.SSN.focus();}
         else{
              document.all.dSSN.style.visibility="hidden";
    if (tmpStr == "") {
              return true;
         } else {
              alert("Please Fill the Following Fields: " + tmpStr);
              return false;
    <FORM NAME="theform" METHOD="post"
    ACTION="mailto:[email protected]?subject=Online Application Form for MinorityDealer." ENCTYPE="text/plain">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="10" NOF="LY">
    <TH>
    <P>
         <FONT SIZE="3" FACE="Arial,Helvetica,Univers,Zurich BT">Online�Application</font></TH><BR>
    </TABLE>
    <table width="718" border="1" cellspacing="0" cellpadding="3" bgcolor="#CCCCFF" align="center">
         <tr>
    <td colspan="2"><font class="captionText">Name*�</font><br><input type="text" size="25" name="Name" class="bodyText">
    <div id="dName" name="dName" style="position:absolute;visibility:hidden"><font color="red">Name is Mandatory*</font></div>
    </td>
              <td colspan="2"><font class="captionText">Social Security Number*�</font><br><input type="text" size="9" name="SSN" class="bodyText">
              <div id="dSSN" name="dSSN" style="position:absolute;visibility:hidden"><font color="red">SSN is Mandatory*</font></div></td>
    </tr>
    <tr>
    <td colspan="2"><font class="captionText">Total Personal Assets</font><br><input type="text" size="10" name="TotPersAss3" class="bodyText"></td>
              <td colspan="2"><font class="captionText">Total Personal Liabilities & NetWorth</font><br><input type="text" size="10" name="TotPerLiab3" class="bodyText"></td>
    </tr>
         </tr>
    </TABLE>
    <IMG Valign="middle" name="imgSubmit" src="images/buttons/Submit.gif" width="66" height="29" border="0" alt="Submit">
    </code>

    Can any one do some help to solve this problem.
    Regards.

  • JSP xml to html

    I keep getting this error when I try to transform an xml file into html.
    org.apache.jasper.JasperException: Unable to open taglibrary http://jakarta.apache.org/taglibs/xsl-1.0 : null
    Here is the jsp file
    <%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"
    prefix="xsltlib" %>
    <html>
    <head>
    <title>Book Inventory</title>
    </head>
    <body bgcolor="white">
    <center>
    Welcome
    <font color="red">
    On Sale Today ...
    </font>
    <p></p>
    <xsltlib:apply xml="cdcatalog.xml" xsl="cdcatalog.xsl"/>
    </center>
    </body>
    </html>

    org.apache.jasper.JasperException: Unable to open
    taglibrary http://jakarta.apache.org/taglibs/xsl-1.0 :
    nullWell, like the first answer to your post, it's like the error message says:
    The file ist not there! Try to open it with your browser and you'll get an error message.
    I think, it's not a good idea to reference remote URLs, because not everyone got a dedicated line. So download the xsl-taglib from
    http://jakarta.apache.org/builds/jakarta-taglibs/nightly/projects/xsl/
    The documentation and all other stuff is located at
    http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
    Hope this helps.

Maybe you are looking for