Post messages on the jsp page

This is my jsf(jsp) page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!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; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h1 align="center">File Selection Page</h1>
<h:panelGroup>
<form id="uploadForm" method="post" action="Multipart.do" enctype="multipart/form-data">
    Specify your name:<br />
    <input type="text" name="name"><br /><br />
    Specify your files: <br />
    <input type="file" name="file1"><br /><br />
     <input type="file" name="file2"><br /><br />
     <input type="file" name="file3"><br /><br />
    <input type="file" name="file4"><br /><br />
<br><br>
<center>
<input type="submit" name="Submit" value="Submit Your Files">
</center>
</form>
</f:view>
</body>
</html>I am using apache commons multipart file upload. How do I post success or failure messages to this page?
As you see I am using a servlet(not shown - which uses Faces Context to populate the messages). Not sure how to get these out in the jsp page.
Thanks,
Sonia
Edited by: sun_sonia on Nov 23, 2009 2:42 PM

You're using plain HTML <input type="file"> elements. Use Tomahawk's <t:inputFileUpload> components instead of you want to make use of JSF's validation and messaging capabilities.
If you insist in using a servlet instead of a bean for this, then just do all the usual JSP/Servlet way. My suggestion would be to hold a Map<String, String> which contains the fieldname-message pairs which you store in the request scope and then use the usual JSP/EL way to display them.

Similar Messages

  • Error in parsing the taglib tag in the JSP page

    Hi
    We are trying to deploy and run a Web Application in CE 7.1 SP01. We are successful in deploying and running servlet based web pages, but when it comes to JSP's the taglibs are not parsed and we get the following error message
    Runtime error in processing of the JSP file E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\main.jsp.
    The error is: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [webwork]. Possible reason - validation failed. Check if your TLD is valid against its scheme.02004C4F4F5000190000004E000013400191D308B45
    Processing HTTP request to servlet [jsp] finished with error.
    The error is: java.io.FileNotFoundException: E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\webwork (The system cannot find the file specified)02004C4F4F50001900000051000013400191D308B45AF1AB
    We followed the below weblog to correct the TLD's in JAVA EE 5 @ SAP but it did not work for us.
    /people/community.user/blog/2006/10/13/porting-the-java-blueprint-solutions-catalogue-applications-to-sap-netweaver-application-server-java-ee-5-edition
    Any immediate help will be rewarded with full points
    Thanks in advance
    Lakshmi
    Edited by: lakshmi N Munnungi on May 5, 2008 11:36 PM
    Edited by: lakshmi N Munnungi on May 5, 2008 11:39 PM

    Hi Lakshmi,
    I have also the same problem. If you have found the solution please post it thanks,
    Thanks,
    Tariq

  • Could not invoke the service() method when the JSP page is loaded

    I am new to servlets/jsp so excuse if I am doing something silly here:
    I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
    Any help is much appreciated:
    Here is my JSP:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
    <% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
    <HTML>
    <BODY>
    <Form name=listTable action="InsSer" method="post">
    <TABLE border="1">
         <TBODY>
              <TR>
                   <TD width="258" align="center"><B>Policy Id</B></TD>
                   <TD width="187" align="center"><B>Customer Name</B></TD>
                   <TD width="160" align="center"><B>Agent Name</B></TD>
                   <TD width="134" align="center"><B>Status</B></TD>
              </TR>
              <TR>
    <%
    for (int index=0; index < VTable.size();index++) {
    PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
    %>
         <TR bgcolor="#99CCFF">
    <TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
    <TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
    <TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
    <TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
    </TR>
         <% } %>
         </TBODY>
    </TABLE>
    <P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
    </BODY>
    </HTML>
    Here is my servlet:
    package insurance;
    import java.io.IOException;
    import java.util.Vector;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.Servlet;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class InsSer extends HttpServlet implements Servlet {
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InsSer() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              doPost(req,resp);
              // TODO Auto-generated method stub
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              //PolicyObj[] policyTable = new PolicyObj[3];
              HttpSession session = req.getSession(false);
              //if (session == null) {
                   //resp.sendRedirect("http://localhost:9080/Insurance/error.html");
              //Vector buylist = (Vector) session.getAttribute("PolicyList");
              Vector policyList = null;
              policyList.addElement(new PolicyObj());
              ((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
              ((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
              ((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
              ((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
              session.setAttribute("policyTable",policyList);
              ServletContext sc = getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
              rd.forward(req,resp);
    Message was edited by:
    sfz1
    Message was edited by:
    sfz1

    I am new to servlets/jsp so excuse if I am doing something silly here:
    I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
    Any help is much appreciated:
    Here is my JSP:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
    <% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
    <HTML>
    <BODY>
    <Form name=listTable action="InsSer" method="post">
    <TABLE border="1">
         <TBODY>
              <TR>
                   <TD width="258" align="center"><B>Policy Id</B></TD>
                   <TD width="187" align="center"><B>Customer Name</B></TD>
                   <TD width="160" align="center"><B>Agent Name</B></TD>
                   <TD width="134" align="center"><B>Status</B></TD>
              </TR>
              <TR>
    <%
    for (int index=0; index < VTable.size();index++) {
    PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
    %>
         <TR bgcolor="#99CCFF">
    <TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
    <TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
    <TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
    <TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
    </TR>
         <% } %>
         </TBODY>
    </TABLE>
    <P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
    </BODY>
    </HTML>
    Here is my servlet:
    package insurance;
    import java.io.IOException;
    import java.util.Vector;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.Servlet;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class InsSer extends HttpServlet implements Servlet {
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InsSer() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              doPost(req,resp);
              // TODO Auto-generated method stub
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              //PolicyObj[] policyTable = new PolicyObj[3];
              HttpSession session = req.getSession(false);
              //if (session == null) {
                   //resp.sendRedirect("http://localhost:9080/Insurance/error.html");
              //Vector buylist = (Vector) session.getAttribute("PolicyList");
              Vector policyList = null;
              policyList.addElement(new PolicyObj());
              ((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
              ((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
              ((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
              ((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
              session.setAttribute("policyTable",policyList);
              ServletContext sc = getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
              rd.forward(req,resp);
    Message was edited by:
    sfz1
    Message was edited by:
    sfz1

  • Help needed urgently to get the values from the jsp page.

    hi,
    I am badly stuck into this problem.Please help me and find a solution.
    I am using ms-access and jsp.
    my database structure is as given below:
    m_emp_no | from_date | to_date | approver| status |
    1002 | 22/9/2008 | 23/9/2008|1003 |pending
    1004 | 29/9/2008 | 30/9/2008|1003 |pending
    2044 | 15/9/2008 | 16/9/2008|3076 |pending
    now this is exactly a leave apply scenario where a page is displayed and the user has to fill in the details to apply leave.then the approver has to approve that leaves so even, he should get the details in his account.
    for example here 1003 has to approve leaves for 1002 & 1004.i am able to fetch data from database for the particular approver here is the coding:
    <html>
    <body>
    <h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
    Approval Requests</font></span></b></u></h2>
    <form method="POST" name="f1" action="update.jsp">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
    PreparedStatement p=null;
    p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
    ResultSet r=p.executeQuery();
    while(r.next())
    %>  <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
        <tr>
          <td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
        </tr>
      </table>
      <table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
        <tr>
          <td width="100%" height="165" valign="top">
            <p align="left"><b>User ID</b>        :
    <input type="text" name="id" value="<%=r.getString(1)%>"  size="4   
         <b>status</b>:<%=r.getString(5)%</p>
    <p><b>Leave From</b> : <%=r.getString(2)%></p>
    <p><b>Leave From</b> : <%=r.getString(3)%></p>
    <p><b>Approve</b> : <select  size="1" name="approved">
            <option value="Approved">Approved</option>
            <option value="Cancelled">Cancelled</option>        </select></p>
    <%
    con.close();
    %>
      <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
              <tr>
                <td width="100%" bgcolor="#999966">
                  <p align="center"><input type="reset" value="Clear" name="B1"> 
                  <input type="submit" value="Submit" name="B2"></td>
              </tr>
            </table>
            </td>
        </tr>
      </table>
    </form>
    </body>
    </html>{code}
    this will display both the rows but when i try to retrieve the values into update.jsp using the code given below it gives me only one value which is the first 1002.
    {code}approved=(String)request.getParameter("approved");
    id=(String)request.getParameter("id");{code}
    but i need both the values to be inserted into the update.jsp only then the approver will be able to approve the leaves individually with respect to the m_emp_no.
    please help me out.
    thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    My comments below are all between (((((( and ))))))
    <html>
    <body>
    <h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
    Approval Requests</font></span></b></u></h2>
    <form method="POST" name="f1" action="update.jsp">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
    PreparedStatement p=null;
    p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
    ResultSet r=p.executeQuery();
    while(r.next())
    %> <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
    <tr>
    <td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
    </tr>
    </table>
    <table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
    <tr>
    <td width="100%" height="165" valign="top">
    <p align="left"><b>User ID</b> :
    <input type="text" name="id" value="<%=r.getString(1)%>" size="4   
    ((((((( in the statement above, name="id" should be changed to something like name="id"<%=ii%>
    Where ii is a counter that tells you how many times you have gone through the loop so far.
    The reason for this is that each textfield you generate must have a unique name rather than all have the same name
    such as 'id'. This change will give them names such as id0, id1, id2. Then when you submit the page, you can uniquely
    identify each input textfield.))))))
    <b>status</b>:<%=r.getString(5)%</p>
    <p><b>Leave From</b> : <%=r.getString(2)%></p>
    <p><b>Leave From</b> : <%=r.getString(3)%></p>
    <p><b>Approve</b> : <select size="1" name="approved">
    (((( the above select also has to have a unique name for each time through the loop. Change it to name="approved"<%=ii%>
    <option value="Approved">Approved</option>
    <option value="Cancelled">Cancelled</option> </select></p>
    <%
    con.close();
    %>
    <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
    <tr>
    <td width="100%" bgcolor="#999966">
    <p align="center"><input type="reset" value="Clear" name="B1">
    <input type="submit" value="Submit" name="B2"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    (((((((note you would be better off long term to put your business logic in a servlet and dispatch to the JSP page which will only have the responsiblity to display the data.
    Also, connection pooling is better than the above.

  • Junk characters like" � � "displayed in the jsp page please help.

    Hi,
    I am getting junk characters like � � displayed in the jsp page.
    In the JSP page i used javascript "& nbsp" for appending spaces to a string "CCR" to get "CCR " .
    Now the Resultant string "CCR " has three spaces appended to its right.
    This String is set in session in that JSP page.
    In the next JSP page i am getting that string from session.
    After getting the string the "substring" function is performed to get only the first 5 charcters of the string. Now the result is displayed as " CCR� � " with has last 2 characters as junk values � � insteed of displaying as "CCR ". Please help me in solving this issue.
    Please note that initially the sting "CCR" is got from the Oracle database in Solaris Machine.
    Regards,
    Vijay

    have you tried:
    strenuously inspecting the string that is coming from the db? do an actual loop over the string, character by character, dumping to System.out to make sure the characters are EXACT coming out of the db.
    note you have to append " " not just "& nbsp"
    post the code that is doing the output. the relevant bean code, the jsp, everything relevant - WITH COMMENTS discussing where things are happening.
    Also, is it "weird characters" in the browser only? have you done a view source on the actual html source that the browser is rendering (right click in IE and click view source). browsers can act odd if you don't feed then exactly what they want, and it looks like you're feeding it escaped characters that it is rendering as something else.

  • Please help me with the jsp page

    Hi,
    I have a parent jsp page. I have a button in that page. If I click the button in the parent page, a child page will be opened which consists of huge data. I have set an option such that if I click the jsp page it asks to open directly or save so as to edit the data in MSWORD format. The child page has a print button at the end of the page which prints all the data. But since the data is very vast I want page breaks at certain places so that when I edit the data and click print button it prints the data with page breaks at certain points. I know that in MSWORD we have page breaks. But I should not do it manually as there would be thousands and thousands of pages to be printed.
    ANY IDEA OR HELP IN THIS MATTER IS GREATLY APPRECIATED. I HAVE BEEN TRYING TO SOLVE THIS MATTER AND POSTED IN MANY SITES. BUT NOBODY RESPONDED. ATLEAST PLEASE LET ME KNOW IF THE IDEA WHICH I MENTIONED IS WORNG OR NOT.
    THANKYOU
    MOUNTAINEER

    use java report?

  • Capturing the Message on the Login Page (Invalid user/password expired etc.

    Hi, I have a requirment for capturing the error message on the Login page if the User's Account is expired or Account is Disabled or Invalid credentials, Password Lockout etc.
    I am using the attached login page. Can any one please help me out on this.
    <html><head><title>AARPLogin Page</title>
    <script type="text/javascript" language="JavaScript" xml:space="preserve">
    // This function automatically gets called for broswer detection
    var isNav4 = false;
    var isIE4 = false;
    var isNS6 = false;
    function obDetectBrowser()
    if ( navigator.appVersion.charAt( 0 ) == "4" )
    if ( navigator.appName == "Netscape" )
    isNav4 = true;
    } else {
    isIE4 = true;
    else
    if ( navigator.appVersion.charAt( 0 ) >= 5 )
    if ( navigator.appName == "Netscape" )
    isNS6 = true;
    obDetectBrowser ();
    var HOSTNAME =
    var COOKIE_OBREQUESTEDURL = "OBREQUESTEDURL";
    var COOKIE_OBFORMLOGINCOOKIE = "ObFormLoginCookie";
    var NCID_LANDING_PAGE_URL = "/landing/";
    var QS_REDIR = "ReDir";
    var keyChooser;
    function checkPasswordEnterKey( event )
    var form = document.forms[0];
    if (isNav4 || isNS6) {
    keyChooser = event.which ;
    } else if (isIE4) {
    keyChooser = window.event.keyCode;
    if (keyChooser == 13) {
    if (
    form.userid.value
    && form.userid.value != ""
    && form.password
    && form.password.value != ""
    form.submit();
    return true;
    else
    alert('Please enter a UserId and Password');
    return false;
    function showHidePanel( panelID, displayValue )
    var panelElement = document.getElementById( panelID );
    if ( displayValue == 'show' )
    panelElement.style.display = 'block';
    else
    panelElement.style.display = 'none';
    function getQueryVariable( variable )
    var query = window.location.search.substring( 1 );
    var vars = query.split( "&" );
    for ( var i=0; i < vars.length; i++)
    var pair = vars[ i ].split( "=" );
    if ( pair[ 0 ] == variable )
    return unescape( pair[ 1 ] );
    return "";
    function Get_Cookie( name )
    var nameEQ = name + "=";
    var ca = document.cookie.split( ';' );
    for( var i=0; i < ca.length; i++ )
    var c = ca[ i ];
    while ( c.charAt( 0 )==' ' )
    c = c.substring( 1, c.length );
    if ( c.indexOf( nameEQ ) == 0 )
    return c.substring( nameEQ.length, c.length );
    return null;
    function Set_Cookie( name, value, expires, path, domain, secure)
    document.cookie = name + "=" + escape( value ) +
    ( ( expires ) ? ";expires=" + expires.toGMTString() : "" ) +
    ( ( path ) ? ";path=" + path : "" ) +
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ( ( secure ) ? ";secure" : "" );
    function Delete_Cookie( name, path, domain )
    if ( Get_Cookie( name ) )
    document.cookie = name + "=" +
    ( (path) ? ";path=" + path : "" ) +
    ( (domain) ? ";domain=" + domain : "" ) +
    ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
    function lostPassword()
    var CurrentLogin = document.forms[0].userid.value;
    if ( CurrentLogin == "" ) {
    alert ( "Please enter your eMail Address." );
    document.forms[0].userid.focus();
    else {
    Set_Cookie( COOKIE_OBFORMLOGINCOOKIE, "done", 0, "/" );
    var LOST_PWD_PAGE = "/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=passwordChallengeResponse&login="+CurrentLogin+"&backUrl=http://oradev2.na.aarp.int/login/login.html&target=top";
    window.location = LOST_PWD_PAGE;
    function emailPassword()
    document.passform.submit();
    function onLoad()
    if (getQueryVariable( "MSG" ) == 'LOGIN_FAILED' )
    alert ("Login Failed, Please try again");
    else if (getQueryVariable( "MSG" ) == 'PWD_EXP' )
    alert ("Your Password Is About to Expire. Please Change it at your earliest convenience.");
    var pwdExpUID = getQueryVariable( "login" );
    var hostTarget = getQueryVariable( "hostTarget" );
    var resURL = getQueryVariable( "resURL" );
    var PWD_EXP_PAGE = "/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=redirectforchangepwd&login="+pwdExpUID+"&backURL="+hostTarget+resURL+"&target=top";
    window.location = PWD_EXP_PAGE;
    else if (getQueryVariable( "MSG" ) == 'CHGPWD' )
    alert ("You are required to change your password.");
    var chgPwdUID = getQueryVariable( "login" );
    var hostTarget = getQueryVariable( "hostTarget" );
    var resURL = getQueryVariable( "resURL" );
    var CHG_PWD_PAGE = "http://"+HOSTNAME+"/identity/oblix/apps/lost_pwd_mgmt/bin/lost_pwd_mgmt.cgi?program=redirectforchangepwd&login="+chgPwdUID+"&backURL="+hostTarget+resURL+"&target=top";
    window.location = CHG_PWD_PAGE;
    </script></head><body onload="onLoad();document.login.userid.focus();" alink="blue" bgcolor="#ffffff" link="blue" vlink="blue">
    <p align="center">
    <img alt="AARP Header Logo" src="login_files/aarpLogo.gif" border="0" height="91" width="219">
    <br>
    </p><form name="login" method="post" action="/access/oblix/apps/webgate/bin/webgate.so">
    <div class="boldText" align="center">
    <h2>Login</h2>
    <div class="boldText" align="left">
    <div id="LoginFailed" style="display: none;">
    <table align="center" bgcolor="#ff0000" border="0" cellpadding="2" cellspacing="0" width="500">
    <tbody><tr>
    <td>
    <table bgcolor="#e5e5e5" border="0" cellpadding="5" cellspacing="0" width="100%">
    <tbody><tr bgcolor="#ffffff">
    <td rowspan="3" height="40" nowrap="nowrap" valign="top">
    <img src="login_files/error.gif" name="error" height="20" width="20">
    </td>
    <td rowspan="3" align="center">
    <p>
    <font color="#ff0000" size="-1">
    <b>
    <div id="TryAgain" style="display: none;">Login Failed! Invalid UserID and/or Password, Please try again.<br></div>
    <div id="AccountLocked" style="display: none;">Your Account has been Locked!</div>
    </b>
    </font>
    </p>
    <p>
    <font color="#ff0000">
    <b>For
    assistance call E-Services Help Line at (XXX) XXX-XXXX Monday through
    Friday between the hours of 8:00 am and 5:00 pm eastern standard time.</b>
    </font>
    </p>
    </td>
    </tr>
    <tr bgcolor="#ffffff">
    </tr><tr bgcolor="#e5e5e5">
    </tr></tbody></table>
    </td>
    </tr>
    </tbody></table>
    </div>
    <br>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="500">
    <tbody><tr>
    <td background="login_files/border_upper_left.gif" height="20" nowrap="nowrap" width="20"> </td>
    <td background="login_files/border_top.gif" height="20" nowrap="nowrap"> </td>
    <td background="login_files/border_upper_right.gif" height="20" nowrap="nowrap" width="20"> </td>
    </tr>
    <tr>
    <td background="login_files/border_left.gif" nowrap="nowrap" width="20"> </td>
    <td>
    <table bgcolor="#ebebce" border="0" cellpadding="2" cellspacing="0" height="100%" width="100%">
    <tbody><tr>
    <td colspan="3" align="center">
    <font color="darkred" face="Arial" size="3">
    <b>
    </b></font>
    <b> </b></td>
    </tr>
    <tr valign="bottom">
    <td colspan="3" width="100%">
    <table bgcolor="#ebebce" border="0" cellpadding="5" cellspacing="0" width="100%">
    <tbody><tr bgcolor="#e5e5e5">
    <td rowspan="2" bgcolor="#ebebce" height="20" nowrap="nowrap" valign="top" width="4%">
    <font color="#000000">
    <span class="text">
    <img src="login_files/arrow.gif" align="top" height="20" width="20">
    </span>
    </font>
    <font color="#000000"> </font>
    </td>
    <td rowspan="2" bgcolor="#ebebce" width="96%">
    <font color="#000000" size="-1">
    <span class="text">Please enter your Email and Password. If you are a new user to AARP, please select First Time AARP User.
    </span>
    </font>
    </td>
    </tr>
    <tr bgcolor="#e5e5e5">
    </tr></tbody></table>
    </td>
    </tr>
    <tr valign="bottom">
    <td colspan="3">
    <table align="center" border="0" width="349">
    <tbody><tr>
    <td nowrap="nowrap" width="74">
    <font color="#000000" size="-1">
    <div align="left">eMail:</div>
    </font>
    </td>
    <td width="265">
    <input name="userid" value="" size="32" maxlength="32" tabindex="2" type="text">
    </td>
    </tr>
    <tr>
    <td>
    <font color="#000000" size="-1">
    <div align="left">Password:</div>
    </font>
    </td>
    <td>
    <p>
    <font color="#000000" size="-1">
    <input name="password" size="32" maxlength="32" length="30" tabindex="3" type="password">
    </font>
    </p>
    </td>
    </tr>
    </tbody></table>
    </td>
    </tr>
    <tr>
    <td>
    <font color="#000000" size="-1">
    <p align="center"><b>Forgot Your Password?</b></p>
    </font>
    </td></tr>
    <tr>
    <td align="center"> <font color="#000000" size="-1"><!--
    Reset Password      
    -->
    Email New Password
    </font>
    </td></tr>
    <tr>
    <td colspan="4">
    <div class="boldText" align="center">
    <br>
    <input src="login_files/button_login.gif" name="Submit" value="" alt="login" type="image">
    <!--
    <b class="boldText"><img src="../images/button_login.gif" width="68" height="25" name="img_login" border="0" alt="login"/></b>
    --> <b class="boldText"><img src="login_files/button_clear.gif" name="img_clear" alt="clear" border="0" height="25" width="68"></b>
    <b class="boldText"><img src="login_files/button_help.gif" name="img_help" alt="help" border="0" height="25" width="68"></b>
    <b class="boldText"><img src="login_files/button_cancel.gif" name="img_cancel" alt="cancel" border="0" height="25" width="68"></b>
    </div>
    </td>
    </tr>
    </tbody></table>
    </td>
    <td background="login_files/border_right.gif" nowrap="nowrap" width="20"> </td>
    </tr>
    <tr>
    <td background="login_files/border_lower_left.gif" height="20" nowrap="nowrap" width="20"> </td>
    <td background="login_files/border_bottom.gif" height="20" nowrap="nowrap"> </td>
    <td background="login_files/border_lower_right.gif" height="20" nowrap="nowrap" width="20"> </td>
    </tr>
    </tbody></table>
    <p></p>
    <span class="text"><br><br><b>NOTICE:
    This system is the property of AARP and is for authorized use only.
    Unauthorized access is a violation of federal and state law. All
    software, data transactions, and electronic communications are subject
    to monitoring.</b></span>
    <div id="hr" style="position: absolute; width: 100%; height: 10px; z-index: 90; top: 657px; left: 10px;">
    <hr>
    </div>
    <div id="footer" style="position: absolute; width: 700px; height: 55px; z-index: 115; top: 678px; left: 50px;">
    <span class="subhead">
    Privacy Policy
    Disclaimer
    Contact Us
    </span>
    <span class="bodytext">
    </span></div>
    <form name="passform" action="http://oradev2.na.aarp.int/wampassword/passwordReset.html" method="post">
    <input name="login" value="" type="hidden">
    <input name="backUrl" value="http://oradev2.na.aarp.int/login/login.html" type="hidden">
    </form>
    <script type="text/javascript" language="JavaScript" xml:space="preserve">
    var undefined;
    if (
    document.login
    && document.login.password
    function clearForm()
    document.login.reset();
    function navigate( linkName )
    if ( 'login' == linkName )
    if ( document.accountLogin.userID.value != '' && document.login.password.value != '' )
    alert('Please click the Account Registration Setup link for now');
    //document.location = 'userDataPersonal.htm';
    else
    alert('Please enter a UserId and Password');
    function openHelp()
    helpDoc = window.open( "http://www.aarp.org", "", "scrollbars=yes,resizable=yes,width=500,height=300" );
    function cancel()
    // open dialog
    var initX = parseInt( window.screenX ) + parseInt( window.outerWidth ) / 2 - 100;
    var initY = parseInt( window.screenY ) + parseInt( window.outerHeight ) / 2 - 50;
    cancelDialog = window.open( "./cancelDialog.html", " cancelDialog", "resizable=yes,toolbar=no,menubar=no,width=200,height=150,screenX=" + initX +",screenY=" + initY );
    </script>
    </div></form></body>
    <script type="text/javascript">
    <!--
    function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
    //--></script></html>

    Is it not possible that someone fired the password expiration cmd ?
    SQL> select limit
      2  from   dba_profiles
      3  where  profile='DEFAULT'
      4  and resource_name='PASSWORD_LIFE_TIME';
    LIMIT
    UNLIMITED
    SQL> select profile from dba_users where username='MYUSER';
    PROFILE
    DEFAULT
    SQL> conn myuser/myuser
    Connected.
    SQL> conn / as sysdba
    Connected.
    SQL> alter user myuser password expire;
    User altered.
    SQL> conn myuser/myuser
    ERROR:
    ORA-28001: the password has expired
    Changing password for myuser
    New password:
    Password unchanged
    Warning: You are no longer connected to ORACLE.
    SQL> conn / as sysdba
    Connected.
    SQL> select name, astatus, TO_CHAR(ctime,'DD-MM-YYYY HH:MI') CTIME, TO_CHAR(ptime,'DD-MM-YYYY HH:MI') PTIME, TO_CHAR(EXPTIME,'DD-MM-YYYY HH:MI') EXPIRE
      2  from sys.user$ where name ='MYUSER';
    NAME
       ASTATUS CTIME
    PTIME
    EXPIRE
    MYUSER
             1 23-11-2011 11:15
    23-11-2011 11:15
    23-11-2011 11:17
    SQL>Nicolas.

  • How to test the JSP pages and sevlets using JUnit. ?

    How to test the JSP pages using JUnit. How to configure what are all the steps to execute the JUnit test cases.

    Hi xiepei,
    since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
    Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • POST variables in a JSP page

    I have a JSP page which recieves a number of arguments.
    One of those arguments in a desination URL. The JSP page picks this up and then uses a response.sendRedirect(URL) call to forward the user to this page.
    Is there anyway of passing these other arguments across to this destination page as hidden variables.
    I dont want to append these variables to the existing URL as they should remain hidden.
    What other methods can I use for these variables to accompany the sendRedirect call or is there a different approach thats required for this case ??
    Thanks in advance,
    Richard

    You can try this. It works.
    out.println("<html>");
    out.println("<head>");
    out.println("<title></title>");
    out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
    out.println("</head>");
    out.println("<body bgcolor=\"#FFFFFF\" text=\"#000000\" onLoad=\"javascript:document.forms[0].submit();\">");
    out.println("<form name=\"formulario\" method=\"post\" action=\"http://PutHereTheURLOfsendRedirect\">");
    // Put here your hidden variables.
    out.println("<input type=\"hidden\" name=\"hiddenField1\" value=\"hiddenvalue1\">");
    out.println("<input type=\"hidden\" name=\"hiddenField2\" value=\"hiddenvalue2\">");
    out.println("</form>");
    out.println("</body>");
    out.println("</html>");

  • Passing values to the JSP page - Urgent

    Hi all,
    I have to pass the user id value to the JSP page. I have written the following code in the doInitialization() method
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentContext myContext = request.getComponentContext();
    IPortalComponentProfile myProfile = myContext.getProfile();
    IAuthentication ia = UMFactory.getAuthenticator();
    IUser portalUser = ia.getLoggedInUser(request.getServletRequest(), request.getServletResponse(false) );
    s = portalUser.getUniqueName();
    IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
    Object o = componentSession.getValue("myEvents");
    myEvents = (LoadEvents)o;
    //myEvents = (LoadEvents) myContext.getValue("myEvents");
    myEvents.setUserId(s);
    myContext.putValue("myBeanName", myEvents);
    I have also defined myEvents as a bean in my JSP page with scope APPLICATION. But I get User Id as "NULL".
    Thanks in advance.
    Rgds,
    Janvi.

    Hi Prakash,
    Please find the jsp code pasted below:
    <hbj:content
        id="myContext">
        <hbj:page
            title="Successful processing">
    <jsp:useBean id="myMeet" scope="application" class="com.sap.ep.bluestar.LoadEvents" />
    <jsp:useBean id="myEvents" class="com.sap.ep.bluestar.MonthView" scope="application" />
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" %>
    <%
    int leadSpaces, daysInMonth, leadSpaces_next,daysInMonth_next, col_Counter;
    myCal.setMonthView();
    java.util.Vector printVal_pre = new java.util.Vector();
    myCal.printMonth(myCal.getPre_month(),myCal.getPre_year());
    printVal_pre = myCal.getPrintValues();
    java.util.Vector printVal_cur = new java.util.Vector();
    myCal.printMonth(myCal.getCur_month(),myCal.getCur_year());
    printVal_cur = myCal.getPrintValues();
    java.util.Vector printVal_next = new java.util.Vector();
    myCal.printMonth(myCal.getNext_month(),myCal.getNext_year());
    printVal_next = myCal.getPrintValues();
    if(request.getMethod().equals("POST")){
         try {
              String action =(String) request.getParameter("action");
              if(action.equals("insert")){
              //     response.sendRedirect("_insertEvent.jsp");
                   //response.sendRedirect("test.html");
         } catch(Exception e) {
              System.out.println(e.getMessage());
    %>
    <!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; charset=iso-8859-1">
    <title>Untitled Document</title>
    <script language="javascript">
         function insertEvent(frm,eventDay){
              alert("here finally " + eventDay + " " + frm.eventMonth.value + "  " + frm.eventYear.value );
              frm.action.value = "insert";
              frm.submit();
         function openWin(frm,eventDay)
           var newWin = window.open("http://localhost:50100/irj/servlet/prt/portal/prtroot/Web_Calendar.eventHandler?variable=" + frm.eventMonth.value +  "/" + eventDay + "/" + frm.eventYear.value, 'popup',
         'resizable,height=200,width=325');
           if(newWin.focus) newWin.focus();
    </script>
    </head>
    <body>
    User is : <%= myCal.getUserId() %>
    <table width="745" height="583" border="0">
      <tr>
        <td width="258" height="23" align="center"><B> <% out.println(printVal_pre.elementAt(0).toString() + "  " + printVal_pre.elementAt(1).toString());
    leadSpaces = ((Integer)printVal_pre.elementAt(2)).intValue();
         daysInMonth = ((Integer)printVal_pre.elementAt(3)).intValue();
         %> </B> </td>
        <td width="215"> </td>
        <td width="258" align="center"><B> <% out.println(printVal_next.elementAt(0).toString() + "  " + printVal_next.elementAt(1).toString());
        leadSpaces_next = ((Integer)printVal_next.elementAt(2)).intValue();
        daysInMonth_next = ((Integer)printVal_next.elementAt(3)).intValue();
         %> </B></td>
      </tr>
      <tr>
        <td height="151"><table width="245" border="1">
          <tr>
            <th width="35" scope="col"><div align="center">S</div></th>
            <th width="35" scope="col"><div align="center">M</div></th>
            <th width="35" scope="col"><div align="center">T</div></th>
            <th width="35" scope="col"><div align="center">W</div></th>
            <th width="35" scope="col"><div align="center">T</div></th>
            <th width="35" scope="col"><div align="center">F</div></th>
            <th width="35" scope="col"><div align="center">S</div></th>
          </tr><tr>
         <% col_Counter = 0;
              for (int i = 0; i < leadSpaces; i++) {
                   out.print("<td> </td>");
                   col_Counter++;
              for (int i = 1; i <= daysInMonth; i++) {
                   // This "if" statement is simpler than messing with NumberFormat
                   if(i < 9) {
                        out.print("<td align='center'>" + " " + i + "</td>");
                        col_Counter++;
                   } else {
                        out.print("<td align='center'>" + i + "</td>");
                        col_Counter++;
                   if ((leadSpaces + i) % 7 == 0) { // Wrap if EOL
                        out.println("</tr><tr>");
              int cnt = col_Counter;
              if(col_Counter == 28){
                   out.println("</tr>");
              }else {
                   for(int i = 0; i < (42 - col_Counter);i++){
                        out.print("<td> </td>");
                        cnt++;
                        if((cnt%7) ==0)
                             out.println("</tr><tr>");
                   out.println("</tr>");
         %>
        </table></td>
        <td> </td>
        <td><table width="245" border="1">
          <tr>
            <th width="35" scope="col"><div align="center">S</div></th>
            <th width="35" scope="col"><div align="center">M</div></th>
            <th width="35" scope="col"><div align="center">T</div></th>
            <th width="35" scope="col"><div align="center">W</div></th>
            <th width="35" scope="col"><div align="center">T</div></th>
            <th width="35" scope="col"><div align="center">F</div></th>
            <th width="35" scope="col"><div align="center">S</div></th>
          </tr>
          <tr>
           <% col_Counter = 0;
              for (int i = 0; i < leadSpaces_next; i++) {
                   out.print("<td> </td>");
                   col_Counter++;
              for (int i = 1; i <= daysInMonth_next; i++) {
                   // This "if" statement is simpler than messing with NumberFormat
                   if(i < 9) {
                        out.print("<td align='center'>" + " " + i + "</td>");
                        col_Counter++;
                   } else {
                        out.print("<td align='center'>" + i + "</td>");
                        col_Counter++;
                   if ((leadSpaces_next + i) % 7 == 0) { // Wrap if EOL
                        out.println("</tr><tr>");
              cnt = col_Counter;
              if(col_Counter == 28){
                   out.println("</tr>");
              }else {
                   for(int i = 0; i < (42 - col_Counter);i++){
                        out.print("<td> </td>");
                        cnt++;
                        if((cnt % 7 ) ==0)
                        out.println("</tr><tr>");
                   out.println("</tr>");
         %>
        </table></td>
      </tr>
      <tr>
        <td colspan="3"><table width="735" height="383" border="1">
          <tr>
          <td colspan="7" align="center"><B> <% out.println(printVal_cur.elementAt(0).toString() + "  " + printVal_cur.elementAt(1).toString());
        leadSpaces = ((Integer)printVal_cur.elementAt(2)).intValue();
        daysInMonth = ((Integer)printVal_cur.elementAt(3)).intValue();
         %> </B></td>
          </tr>
          <tr>
            <th width="105" scope="col">SUN</th>
            <th width="105" scope="col">MON</th>
            <th width="105" scope="col">TUE</th>
            <th width="105" scope="col">WED</th>
            <th width="105" scope="col">THUR</th>
            <th width="105" scope="col">FRI</th>
            <th width="105" scope="col">SAT</th>
          </tr>
          <form name="eventCal" method="post" action="Web_Cal.jsp">
          <input name="eventMonth" type="hidden" value="<%= myCal.getCur_month() + 1 %>">
           <input name="eventYear" type="hidden" value="<%=myCal.getCur_year() %>">
          <input name="action" type="hidden" value="">
          <tr>
            <% col_Counter = 0;
              for (int i = 0; i < leadSpaces; i++) {
                   out.print("<td> </td>");
                   col_Counter++;
              for (int i = 1; i <= daysInMonth; i++) {
                   // This "if" statement is simpler than messing with NumberFormat
                   if(i < 9) {
                        out.print("<td align='center'>" + " " + "<a href='javascript:openWin(document.eventCal," + i + ");'>" + i + "</a></td>");
                        col_Counter++;
                   } else {
                        out.print("<td align='center'>" + "<a href='javascript:openWin(document.eventCal," + i + ");'>" + i + "</a></td>");
                        col_Counter++;
                   if ((leadSpaces + i) % 7 == 0) { // Wrap if EOL
                        out.println("</tr><tr>");
              if(col_Counter == 28){
                   out.println("</tr>");
              }else if(col_Counter < 35){     
                   for(int i = 0; i < (35 - col_Counter);i++)
                        out.print("<td> </td>");
                   out.println("</tr>");
              }else {
                   for(int i = 0; i < (42 - col_Counter);i++)
                        out.print("<td> </td>");
                   out.println("</tr>");
         %> </form>
        </table></td>
      </tr>
    </table>
    </body>
    </html>
    </hbj:textView>
        </hbj:page>
    </hbj:content>
    Regards,
    Janvi

  • Submit the jsp page containing the textarea

    Hi,
    I have a jsp page containing the textarea and a submit button. This page is submitted using POST. In the next page the content of the textarea is obtained and displayed. Can anyone let me know if there is any maximum limit on the characters in the textarea?
    I am using JRUN3.1.
    If the characters in the textarea is increasing 2000 characters, in the next page if i try to get the content of the textarea i am getting as null???
    please help me out.

    Hi,
    There is a limit as to how much data that can be passed using the GET method. Dont remember it at the top of my head now.
    It would be better to use the POST method.
    Sandesh

  • Tags not recognized when compiling the jsp pages through appc

    Hi:
    I am trying to convert a web application from weblogic 9.1 to weblogic 10.3. However, when I try to build the ear file the page compilation fails with the error:
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: projectFinancials.jsp:10:2: The tag handler class was not found "jsp_servlet._tags.__projectJobCostingLayout_tag
    However, the tag file is there.
    The tags are referenced through this declaration:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <taglib>
    <taglib-uri>http://name/app/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tags</taglib-location>
    </taglib>
    </web-app>
    All the declarations in the jsp pages are fine. In weblogic 9.1 I don't have any problem. I also set the <backward-compatible>true</backward-compatible> in weblogic.xml.
    Any idea?
    Thanks!

    There is no need to use tld files with tag files when it comes to running the ear file through appc. When I do development I use a tld file that contains references to all the tag files, however my build process replaces that with the tag files directory:
    So, during development I have:
    web.xml:
    <taglib>
    <taglib-uri>http://name/cps/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tld/mytags.tld</taglib-location>
    </taglib>
    mytags.tld:
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <tlib-version>1.0</tlib-version>
    <short-name>mytags</short-name>
    <uri>mytaglib</uri>
    <tag-file>
    <name>agreementDetailsLayout</name>
    <path>/WEB-INF/tags/agreementDetailsLayout.tag</path>
    </tag-file>
    During the build I have:
    web.xml:
    <taglib>
    <taglib-uri>http://name/app/tagfiles</taglib-uri>
    <taglib-location>/WEB-INF/tags</taglib-location>
    </taglib>
    If I don't do this appc will have a fit of even bigger proportions (more error messages etc.)

  • Adding custom message on the login page

    I have done the following to try and get a custom message to display on the oracle login page:
    1:
    In the System Administrator Responsibility, went into the System Profile Options and searched for "Local Login Mask" The default value was 32, I set it to 96. This was done because 64 is the number to display a "Corporate Policy Message" on the login page (32+64 = 96).
    2:
    Switched over to the Application Developer responsibility, and went to Application->Messages. Here I did a search for "FND_SSO_SARBANES_OXLEY_TEXT". A result came back with current message text: "Corporate Policy Message". I changed this to a test message and hit save.
    3
    Still in Application Developer responsibility, I went to Other->Requests->Run and chose "Generate Messages", for parameters I chose:
    Language: US
    Application: Application Object Library
    Mode: DB_TO_RUNTIME
    while leaving the others blank. I submitted this request and it completed normal.
    4
    I logged out of applications, closed my browser and cleared my cache. I went to login into the apps and at the login page... it does display "Corporate Policy Message" but it never updated it to my custom one.
    Question: Do I need to restart the HTTP server or something to see the updated results? I am confused why it will display "Corporate Policy Message" but the value for FND_SSO_SARBANES_OXLEY_TEXT is clearly changed. Even when you go back into it and look.
    The Generate Messages conc prog is a spawned process so I cant find out what its doing.
    Any help would be loved!
    OH PS
    I know I started a previous thread on a similar topic, but the method has changed completely and I think it merits its own thread. My apologies if it shouldn't have been.

    Hi;
    What is your EBS and OS?Please check below thread
    password-Lock User when enter password in wrong 3 times
    Re: Lock User when enter password in wrong 3 times
    Regard
    Helios

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • How to give a message in the UI page if there is an error in AppImpl method

    How to give an error message in the jsf page if the AppImpl method fails ?
    Use case : I have a create form and a submit button which binds with a client interface method in Application Impl class. If the method fails due to some exception , how can I notify the users with proper error message ?
    Thanks
    Suneesh

    Hi,
    As the previous reply (casting the result) is the best solution here (separating model and view logic) but sometimes we do a shortcut.
    may be it is not the best approach but it comes handy most of the time, this approach is also error-proven. we used it more than 2 years in large applications.
    add the following code whenever you want to add message in UI be aware that we have add it in a jar and add that library to the model projects
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
    ctx.addMessage(null, fm);
    you just need to add jsf library to the model applications and replace msg with your message.
    regarding throw jboException, it seems good most of the time but sometimes when you are in middle of the transaction it somehow ruin the flow of the transactions.
    Regards.

Maybe you are looking for