JSp in 100%http

Hi Gurus there,
I'm new in JSP, I heard we can implement Web application with JSP using only http protocole (ie: without JDBC bridge).
The RDBMS is Oracle 8i,
Can you help me with this,
Thanks in advance.

BTW, my laptop is win2000 professional, sp4. mem is 512mb. thanks

Similar Messages

  • How to send the payload to a jsp using receiver Http adapter?

    Hi experts,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • How do I remove "printinvoicesRedirect.jsp and the https file from printed invoices

    I am printing invoices and a line of test appears on top and bottom of sheet. Top left reads "printinvoicesRedirect.jsp" - Top right reads "https:// (then adds the website I'm printing from.
    The bottom of the sheet prints "1 of xx" and date and time. How do I remove these from my customers invoices?

    I'm guessing the page is a PDF, and it is being displayed in the new Firefox 19 PDF Viewer? Unfortunately, there is currently no way to suppress headers and footers in the PDF Viewer without changing Page Setup globally. More information in this thread: [https://support.mozilla.org/en-US/questions/951147 Print from the PDF viewer without page information].
    To switch to the Acrobat plugin, or an external application, see this article: [[How to disable the built-in PDF viewer and use another viewer]].

  • JSP loading issue: HTTP 404 error

    I have a JSP page that stopped loading up.
    It gives me the Apache HTTP 404 error that it can not find the JSP page.
    There are no servlet classes associated with the JSP page.
    Simply, it is an HTML page calling a JSP page.
    This issue appeared after we(IT team) incorporated servlets on the machine.
    Directory structure changed, but it shouldn't have effected our JSP pages.
    Directory structure
    ../wwwroot/Finance/Labor.html goes to ../wwwroot/Finance/Labor.jsp

    And how does the HTML page invoke the JSP page?
    Are you doing it via a <form> or are you linking to it through an <a href>?
    You really didn't provide very much information. There are a lot of things that could go wrong. For example, Tomcat generally likes its JSPs to be in a specific place which is NOT the default Apache document root. You'd explicitly have to configure Tomcat to use the same Apache document root though.
    Similarly, application specific Servlets are usually in a sub-directory of the one containing JSP files for that application. In other words, you don't really put JSPs in c:/JSPs on one machine, HTML in /home/rycherX/www on another machine and Servlets in \\rycherX\workspace\Servlets on a third.
    The first place to start is to tell us what Servlet Engine you just installed. Tomcat? JBoss? WebSphere?

  • Jsp call success, http 500 servlet not display

    in the project, i have a HelloServlet in application sources
    SayHello.jsp in Web content in JDeveloper, i successfully run them
    result is sayhello pass parameter through get in form action called HelloServlet
    But, After deployed to OC4J standalone
    http://computer_name:8888/Helloworld-Exercise-root/SayHello.jsp
    can successfully call, i type the name in field box
    it appear http 500 when change to
    http://computer_name:8888/Helloworld-Exercise-root/SayHello?person=baby
    What's wrong with this? how to fix it?

    I can successfully run in embedded oc4j and display the parameter i passed through text field, but error in standalone oc4j
    http://192.168.0.1:8988/Helloworld-Exercise-root/SayHello.jsp
    http://192.168.0.1:8988/Helloworld-Exercise-root/SayHello?person=mandy
    The servlet has received a GET. This is the reply.
    Hello, mandy!

  • Allow JSP to use HTTPS

    Hello,
    I have an application built up using 20-25 JSP pages. I have no beans, its just a very basic and simple application using only JSPs.
    Out of these JSPs, I want 2 JSPs to be called over the HTTPS protocol in place of HTTP.
    Can anybody tell me how to do that. All my JSPs are in the same directory on the webserver and to call a JSP, on the click of SUBMIT, I am just specifying the name of JSP to be called. In other words, I am not hard coding the URL, PORT and the Context-root anywhere.
    Please post your valuable inputs.
    Thanks

    Hello again,
    I found one more solution to the HTTPS problem.
    Seems like now we can do it in two ways, first way is described in this forum, and the second way is to add this to the web.xml:
    <security-constraint>
         <web-resource-collection>
              <web-resource-name>Automatic SSL Forwarding</web-resource-name>
              <url-pattern>name of jsp</url-pattern>
         </web-resource-collection>
         <user-data-constraint>
              <transport-guarantee>
                   CONFIDENTIAL
              </transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    I used this technique, the URL is formed correct now (the URL contains https in place of http), but when I try to go the page, it gives me:
    Method Not Allowed
    An error has occurred
    Anybody here have any idea why i am getting this?? I tried to switch the methods also: post/get and viceversa, the problem still exists.
    Pls post ur feedback
    thanks

  • HTTP POST using JSP

    Is it possible to submit a data using HTTP POST from a JSP. In a JSP I am generating a XML. For example JSP URL is http://www.test/xml.jsp
    In the xml.jsp:-
    <test>
    <test1>
    Testing 1
    </test1>
    <test2>
    Testing 2
    </test2>
    </test>
    When I call http://www.test/xml.jsp, I should receive the content in the xml.jsp as a HTTP POST. Is this possible using JSP or do I have to use only servlet?
    Thanks

    Hi,
    yes, it's possible to submit data from JSP using POST method.
    It is even possible to do it from HTML. Set <form method="post"...>, that's all. You can't submit data using POST by typing any specific address etc. in Your browser, only GET parameters can be sent in such a way.
    Regards, M

  • JSP requests hang in HTTPs

    Hi, friends, I need an ergent help !
    We are using Weblogic 6.0 without service pack, and using some third-party tag
    library in our JSPs. Without HTTPs, everything works fine. After we install SSL
    with Weblogic demo certificates, some JSPs hang when tag library is used. It looks
    like tag library does its job, but never returns. The JSP returns only when we
    close the browser.
    I believe when the request reaches inside a JSP, it is nothing to do with SSL
    anymore, am I right ?
    Any help would be appreciated !
    Thanks
    John

    Thanks, Jerry,
    I think the problem is because of request.getParameterNames() doesn't work correctly
    for SSL in Weblogic 6.0, do you know if sp2 will fix that problem ?
    By the way, I posted another question for specific title.
    Thanks
    John
    Jerry <[email protected]> wrote:
    >
    Hi John
    I believe when the request reaches inside a JSP, it is nothing to dowith SSL
    anymore, am I right ?
    Yes, that's right, to the best of my knowledge
    I strongly recommend putting SP2 on WLS 6.0 -- a ton of kinks were
    worked out in the
    first 2 service packs.
    See if you're still having this problem, and post again --
    Cheers
    Joe Jerry

  • Issue in applying SSL selectively to Login JSP Page--Session getting lost.

    Hi,
    I am facing some issues with SSL configuration on my web site running on tomcat 5.5. I am using jdk 1.5 and form based authentication with JAAS framework.
    The SSL configuration is working perfectly when applied to complete web site, but starts giving problem when applied selectively to some JSP pages. At present I am trying to apply SSL just on the login page.
    When the login screen loads up, the URL in the browser has a protocol "*https*", as expected, but it doesn't gets changed to "*http*" once the user has successfully logged in. Why is the automatic change from https to http not ocurring?
    Also I want to know which is the default page, tomcat will direct the logged in user to, once successfully authenticated using form based login; Is there any way to change this default page to some other page. It looks like that tomcat automatically directs to index.html , once the user has been successfully authenticated, but I am not so sure. My index.html page is having 4 frames; the source of these frames are different JSP pages, which are not under SSL.
    My aim is to apply SSL just on login.jsp so that password doesn't travel in clear text. Once the user is authenticated he should see index.html and the address bar's URL should change it's protocol from https to http.
    Please, find below the code in my web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CWA Application</web-resource-name>
    <url-pattern>/about.jsp</url-pattern>
    <url-pattern>/admin_listds.jsp</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*login.jsp*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>CWA Application</realm-name>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?error=true</form-error-page>
    </form-login-config>
    </login-config>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    My login. jsp has below code:
    <form name="login" method="POST" action='<%= response.encodeURL(*"j_security_check*") %>' >
    <tr>
    <td width="100%">
    <table width="260" border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td align="left" valign="top" rowspan="4"><img src="images/space.gif" width="15" height="5"></td>
    <td align="right" class="login-user" nowrap ><p>User name: </p></td>
    <td align="left" valign="top"><input maxLength="64" name="j_username" size="20"></td>
    </tr>
    <tr>
    <td align="right" nowrap class="login-user"><p>Password: </p>
    </td>
    <td align="left" valign="top">
    <input maxLength=\"64\" tabindex="2" type="password" name="j_password" size="20">
    </td>
    </tr>
    </form>
    The entries in my server.xml are following:
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="${java.home}\lib\security\cacerts" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS" />
    I have gone through the http://forums.sun.com/thread.jspa?threadID=197150 and tried implementing it; The filter as explained in the thread does gets called but the session values are still lost.
    Please note I am using javascript to go from secure "https" to "http" once the user has successfully logged in The javascript code is as below:
    top.location.href="http://localhost:8080/qtv/index.html." ;
    If I use response.sendRedirect("http://localhost:8080/qtv/index.html") for going to non-secure mode, the index.html page does not gets loaded properly. (Please note that my index.html is made of *4 frames*, as explained earlier. This is a legacy code and frames can't be removed).
    The reason for index.html not getting loaded properly is that the Address bar URL does NOT change its URL and protocol from https (https://localhost:8443/qtv/index.html ) to "*http*" (http://localhost:8080/qtv/index.html) when esponse.sendRedirect() is used ;this is the default behaviour of response.sendRedirect(). And because the protocol in address bar is https, index.html is not able to load the other JSP's in it's frames because of cross-frame-scripting security issues (The other JSP's to be loaded in frames are are NOT secure as discussed earlier).
    Please let know if any way out.
    Thanks,
    Masaai

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

  • I have setup JSP & MySQL but how can i Connect it to eche other ?

    I feel sory by asking this qustion but i tried very enough
    100 mile start from 1 mile ^_^
    I have tested JSP files by http://localhost:8080/test.jsp
    and it works very will
    also i have already installd MySQL and i can create databases and tables by http://localhost/phpMyAdmin
    so what i have to do else to connect JSP to MySQL ? , ( if nothing )
    how can i test that MySQL Connected with JSP, so that i can display data from database ?
    Best Regards
    JMalik

    create a java bean, which is just similar to a java class and put the database connection there so you wouldn't have to include that code in all you jsps everytime you connect to the database
    this is for DbConnection.java
    package connection;
    import java.sql.*;
    import java.io.*;
    public class DBConnection
         private Connection con;
         public DBConnection()
              try
                  Class.forName("com.mysql.jdbc.Driver");
                  con = DriverManager.getConnection("jdbc:mysql://localhost/yourfolder?user=yourusername&password=yourpassword");
            catch (Exception e)
                 e.printStackTrace();
         public Connection getConnection()
              return con;
         public void close()
              try
                   con.close();
              catch(Exception e)
                   e.printStackTrace();
    }in another bean/class which connects to your database,
    say for example this is SelectUsers.java
    public String[] selectActiveUsers(int id) throws Exception, SQLException
         try
                   con = new DBConnection().getConnection();
                   Statement stmt = con.createStatement();
                   String ins = "<your select statement>";     
                            stmt.executeUpdate(ins);
                            con.close();
                   stmt.close();
             catch (SQLException se)
                    System.out.println("SQL Exception: " + se.getMessage() + "not connected");
                    se.printStackTrace(System.out);
         }and in your jsp, instantiate the class
    users.jsp
    SelectUsers su = new SelectUsers();
    String[] users = su.selectActiveUsers(1);got it?
    Message was edited by:
    shuini

  • Import CLASSPATH in JSP

    Hi all,
    I am following a guide to install an JSP application on Tomcat.
    The third point is:
    Confirm JAR Files are Included in CLASSPATH
    Please ensure that the .jar files in the WEB-INF/lib/ directory of your web
    application are included in the CLASSPATH for your application.But I don't know how to do it (I'm not an expert of JSP).
    Someone can help me to add the code line(s) in a such way that I can include the WEB-INF/lib/ in the CLASSPATH of my application.
    Thanks
    Enrico

    I've understood now. The google's code,
    <td>
             <iframe name="identity_provider" src="./ProcessResponseServlet"
              width="100%" height="100%" frameborder="1"></iframe>
    </td>is wrong. I've just replaced this with:
    <td>
              <iframe name="identity_provider" src="./identity_provider.jsp"
              width="100%" height="100%" frameborder="1"></iframe>
          </td>But now the problem is always the same because inside this file there is:
    <form name="ServiceProviderForm" action="./CreateRequestServlet" method="post">
      <input type="hidden" name="action" value="Generate SAML Request">
      <input type="hidden" name="returnPage" value="service_provider.jsp">
      <p><center><input type="submit" value="Generate SAML Request"></center></form>
    <%
          String error = (String) request.getAttribute("error");
           String authnRequest = (String) request.getAttribute("authnRequest");
          String redirectURL = (String) request.getAttribute("redirectURL");
          if (error != null) {
          %>
            <p><center><font color="red"><b><%= error %></b></font></center><p>
          <%
          } else {
            if (authnRequest != null && redirectURL != null) {          
          %>
            <p><div style="padding:6px 0px;border-top:solid 1px #3366cc;border-bottom:solid 1px #3366cc"><b>Step 3: Submitting the SAML Request</b></div></p>
            <p>You can now review the generated SAML request before submitting it to the identity provider.</p>
            <p>As noted in the <b>Pre-Transaction Details</b>, when you install this application, it will send SAML authentication requests to the <b>ProcessResponseServlet</b>, which is included in the sample code package.</p>
            <b>Generated SAML XML</b><p>
            <input type="hidden" name="redirectURL" value="<%=redirectURL%>"/>
            <div class="codediv"><%=RequestUtil.htmlEncode(authnRequest)%></div>
            <p><center>
            <input type="button" value="Submit AuthnRequest"
                   onclick="javascript:parent.frames['identity_provider'].location = '<%=redirectURL%>';return true;">
            </center>
         <%
         %>And there is the file "CreateRequestServlet.class" in the "WEB-INF/classes/servlets" and the web.xml maps also this file.
    But when i press the button "Generate SAML Request", I have the usual error:
    HTTP Status 404 - /CreateRequestServlet/CreateRequestServlet
    type Status report
    message /CreateRequestServlet/CreateRequestServlet
    description The requested resource (/CreateRequestServlet/CreateRequestServlet) is not available.
    Sun-Java-System/Web-Services-Pack-1.4Edited by: springbok06 on Jul 29, 2010 4:06 PM

  • jsp:include in JSF

    Hello all,
    I am having a problem including a jsp page into another jsp where both are using the JSF framework.
    If I used the <f:view> and bring up just that page by itself (not included in another page), it works fine. And if I include it in a page with no <f:view> tags, it works fine. But when I include it in a page with <f:view> tags and <f:subview> tags in the included page, it's like it pulls the JSF components out of the section of code it was in. I don't know if this is a bug or just something I'm doing incorrectly, but I don't understand why JSF needed to make page includes so difficult.
    My current setup is like this.
    A.jsp
    <taglibs>
    <html>
    <body>
    <table>
    <f:view>
    <h utputText />
    .........more code......
    </f:view>
    <jsp:include page="B.jsp" flush="false" />
    </table>
    </body>
    </html>
    B.jsp
    <taglibs>
    <% scriptlet %>
    <f:subview>
    <h:form>
    <table>
    ...Some table stuff...
    <tr>
    <td>
    <h:commandLink /> (this is what is not working)
    </td>
    </tr>
    </table>
    </h:form>
    </f:subview>
    Hopefully someone can look at this and give me some advice on how to structure the <jsp:include>, I've tried all sorts of things. I've tried subview in different ways to no avail. Thanks for the help.
    Patrick

    here is a sample JSP
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <f:verbatim>
    <html>
    <body>
    <table width="100%" cellspacing="0" cellpadding="0">
         <tbody>
         <tr>
              <td>
                   </f:verbatim>
                   <f:subview id="header">
                        <jsp:include page="<%=(String) request.getAttribute("header")%>"/>
                   </f:subview>
                   <f:verbatim>
              </td>
         </tr>
         </tbody>
    </table>
    </body>
    </html>
    </f:verbatim>
    </f:view>

  • Jsf problem go from jsp page to another jsp in new window

    I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
    attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
    the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
    and here the related lines of code
    <faces-config >
    <managed-bean>
    <managed-bean-name>attendReportBean</managed-bean-name>
    <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.attendReport}</from-action>
    <from-outcome>attendReport</from-outcome>
    <to-view-id>/attend/attendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.printAttendReportAction}</from-action>
    <from-outcome>printAttendReportAction</from-outcome>
    <to-view-id>/attend/printAttendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config> // here is managed bean code
    public class AttendReportBean {
    // data , getters and setters
    init();
    //Preload in initialization block.
    public void init() {
    // initialize data
    public String attendReport() {
    // code to get attend data to go to view page(same page) it is ok
    return "attendReport"; // Navigation case.
    public static String getRequestParameter(String name) {
    return (String) FacesContext.getCurrentInstance().getExternalContext()
    .getRequestParameterMap().get(name);
    public void printAttendReportListener(ActionEvent event) {
    String fromYearStr = getRequestParameter("fromYearAtt");
    System.out.println("fromYearStr = "+fromYearStr);
    // try to get inputs through ActionListener but it gives me null
    public String printAttendReportAction() {
    // code to get attend data to go to print page(another page in new //window) but inputs come in default values
    return "printAttendReportAction"; // Navigation case.
    }attendReport.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    //title . styles and validations //
    </head>
    <body>
    <h:form id="attendReportForm">/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
    i.e. it always submit to attendReport.jsp page
    / some inputs and outputs /
    <h:commandButton onclick="return check();" id="view" action="#{attendReportBean.attendReport}" value="" styleClass="linksNumBlue" />//it works good/
    // some outputs to view data /
    <h:commandLink immediate="true" id="printLink" value="" action="#{attendReportBean.printAttendReportAction}" actionListener="#{attendReportBean.printAttendReportListener}" target="_blank" styleClass="linksNumBlue">
        <f:attribute  name="fromYearAtt" value="2009" />
        <f:attribute  name="fromMonth" value="01" />
       <f:attribute  name="toYear" value="2010" />
       <f:attribute  name="toMonth" value="06" />
    </h:commandLink>//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
    //2)does not get the inputs but return the default values only /
    </h:form></body></html></f:view>I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
    I’m sorry for the prolongation, please help me if you can
    Edited by: alynoor on Jul 8, 2010 1:51 AM
    Edited by: alynoor on Jul 8, 2010 1:55 AM

    my problem solved 1- i use 2 managed bean , one of request scope (used in attendReport.jsp ) and the other with session scope (used in printAttendReport.jsp)
    2 - add new jsp contains the h:commandLink of the print (attendReportPrintAction.jsp)
    3 - divide the view of attendReport.jsp to two subviews (each subview has its own form) one contains inputs and outputs of attend and the other contains include to (attendReportPrintAction.jsp)
    <%@ include file="attendReportPrintAction.jsp" %>
    4 - send and get parameters using two methods
                public static Object getSessionMapValue(String key) {
                   return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(key);
                public static void setSessionMapValue(String key, Object value) {
                   FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);
                }faces-config.xml
       <managed-bean>
          <managed-bean-name>attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <managed-bean>
          <managed-bean-name>print_attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>  
        <display-name>viewReport</display-name>  
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-action>#{AttendReportBean.attendReport}</from-action>
            <from-outcome>attendReport</from-outcome>  
            <to-view-id>/attend/attendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>
    <navigation-rule>  
        <display-name>printReport</display-name>
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-outcome>printAttendReportAction</from-outcome>  
            <to-view-id>/attend/printAttendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>attendReportPrintAction.jsp
    <f:subview id="printAttendReportSubView" >
    <h:form id="printAttendReportForm" onsubmit="return check222();" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="11%">
                                    <table width="70" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="7" height="28"><img src="../images/B-left.gif" width="7" height="28" /></td>
                                          <td align="center" background="../images/B-bg.gif">
                                            <!--a href="printAttendReport.jsp" class="linksNumBlue" target="_blank" >&#1591;&#1576;&#1575;&#1593;&#1577;</a-->
    <h:commandLink id="printLink" value="&#1591;&#1576;&#1575;&#1593;&#1577;" title="&#1591;&#1576;&#1575;&#1593;&#1577;"  action="#{print_attendReportBean.printAttendReportAction}"   target="_blank"  styleClass="linksNumBlue">
                                        </h:commandLink>
                                            </td>
                                          <td width="7" height="28"><img src="../images/B-right.gif" width="7" height="28" /></td>
                                        </tr>
                                      </table>
                                      </td>
                                    <td align="right"> </td>
                                  </tr>
                                </table>
    </h:form>
    </f:subview>i hope this helps someone

  • No redirection to different url upon http connections limit exceeded

    Hi,
    As of Standalone OC4j 10.1.2, if you want messages to be redirected to a different URL when the maximum connections limit is reached, you would include the HTTP redirect URL to max-http-connections tag inside server.xml.
    <max-http-connections max-connections-queue-timeout="120" socket-backlog="50"
    value="100">http://optional.redirect.url/page.jsp</max-http-connections>
    I have a standalone OC4j 10.1.3, and would like to be able to redirect to different URL when maximum connections limit is reached but the above max-http-connections does not work and I am not redirected to different URL when maximum connectionns limit is reached. I read user guide of OC4j 10.1.3 and there is no mentioning of max-http-connections at all. In there, they talk about limiting concurrency via http thread pool but there is no discussion as to the mechanism of redirecting users to a different URL where I can display a user friendly message to say "Server is busy, please try again later..." instead of browser display a message "Page cannot be displayed"..
    Please advice,
    Thanks

    Any thoughts on above issue ? please help.
    thanks
    Sam

  • How to import jsp files into other jsp files ?

    hi i have the following code mymainpage.jsp
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;" >
    <title>Sagem Module</title>
    </head>
    <body>
    <f:view>
    <rich:modalPanel id="panel" width="350" height="100">
            <f:facet name="header">
                <h:panelGroup>
                    <h:outputText value="Modal Panel"></h:outputText>
                </h:panelGroup>
            </f:facet>
            <f:facet name="controls">
                <h:panelGroup>
                    <h:graphicImage value="/images/modal/close.png" styleClass="hidelink" id="hidelink"/>
                    <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
                </h:panelGroup>
            </f:facet>
            <h:outputText value="This panel is called using Component Control Component"></h:outputText>
            <br/>
            <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
        </rich:modalPanel>
    <h:form>
        <h:outputLink value="#" id="link">
            Show Modal Panel
            <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
        </h:outputLink>
    </h:form>
    <f:view>
    </body>
    </html>can i put the model panel into another file for example modalpanel.jsp and then include it into my page mymainpage.jsp such
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;" >
    <title>Sagem Module</title>
    </head>
    <body>
    <f:view>
    //**** import modalpanel.jsp
    <h:form>
        <h:outputLink value="#" id="link">
            Show Modal Panel
            <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
        </h:outputLink>
    </h:form>
    <f:view>
    </body>
    </html>

    Use jsp:include.
    parent.jsp
    <f:view>
        <h1>Parent</h1>
        <jsp:include page="child.jsp" />
    </f:view>child.jsp
    <f:subview id="child">
        <h2>Child</h2>
    </f:subview>(note the f:subview!)

Maybe you are looking for

  • Enable TRIM on Samsung SSD 840, is it necessary?

    This type of question has been asked a lot of times, I know, but I would like to receive some advice from experts. Few weeks ago I installed my Samsung SSD 840. People say that it's not necessary to enable TRIM for such type of SSD. Others say that i

  • Do I need to have it set to Game Mode for Alchemy to wo

    I have the dreaded cracking/popping right now and for whatever reason this goes away when I put my X-Fi into either Entertainment or Audio Creation mode. Can I keep the settings in Entertainment mode and still have ALchemy give me EAX when I run Alch

  • One Application deployed OK;  my app always gets error "404 Not Found"...

    I am trying deploying my application from within JDeveloper 10.1.3.4 to the standalone oc4j on the localhost, before deploying it on an application server. I am a newbie and I am doing this by following a tutorial. The tutorial application is deploye

  • Unzip the freeware file

    I downloaded all the files of Oracle 9i for the Sun Solaris 8 machine Intel Plateform. I can't somehow unzip the files. I can't run cpio utility if it is not unzipped. I tried every thing such as gunzip -d, gzip, zcat, and uncompress. It gives me tha

  • Need to resequence the pages whle Printing

    I have a PDF with 4 pages but while printing, I want to print them in the order of pages as 3, 4, 1 and 2. This is just an example. I even have a PDFs with 100 pages which has to print in the order of pages as 99, 100, 97, 98 and so on.