Jsp & struts problem

I have a jsp that display some data from database. I display it in textarea , so that i can edit them , once editing is completed then i have to store that data in database again . Rows of data that i will be getting is dynamic . so i can not write setter and getter for all the rows I am using struts
Please suggest solution

I have a jsp that display some data from database.post that jsp code here
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ page language="java"  %>
<%@ page import="java.sql.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page session="true"  %>
<html:html>
<body>
<title>Source Target Segment Info</title>
<body>
<%-- Creatin' Database Connection --%>
<%
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection( "jdbc:mysql:///menagerie","root","JJJJJJ" );
Statement st = con.createStatement();
PreparedStatement pst = con.prepareStatement("select * from segments where isMarkup=0 and isSource=0");
ResultSet rs = st.executeQuery( "SELECT * FROM segments  where isMarkup=0 and isSource=1" );
ResultSet RS=pst.executeQuery();
%>
<script type="text/javascript" src="Ajax.js"></script>
<form action="form_action.jsp" method="POST">
<table align="center" border="0" width="">
<tr><td><strong>Source Target Information</strong></td></tr>
</table>
<table align="center" border="1">
<!-- ADD A HEADER LINE FOR ANY COLUMN AS BELOW -->
<tr bgcolor="#FDF5E6">
<td><strong>Source segmented Data::</strong></td>
<td><strong>Target segmented Data::</strong></td>
</tr>
<%
int  i =0 ;
while ( rs.next()&& RS.next() ) {
%>
<!-- ADD A ROW LINE FOR ANY COLUMN AS BELOW -->
<tr>
<td><%= rs.getString( "segmentedData" ) %></td>
<td><textarea  name= "targetSeg"+<%=i%> id = "bodyfield"  rows='3' cols='30'><%= RS.getString( "segmentedData" ) %></textarea></td>
</tr>
<%
%>
</table>
<center>
</tr>
<html:submit/>
</form>
<tr>
</tr></head>
</center>
</body>
</code>
</body>
</html:html>Message was edited by:
AmitChalwade123456

Similar Messages

  • Jsp, struts, problem in session invalidation

    Hello,
    Though have seen many topics here related to this, still cudn't get a proper solution. I'm having a struts application with many jsp's. have used session.invalidate for expiring sessions. Now the problem is my jsp have both button specific action and <html:link> forwards. tried including "response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control", "no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward compatibility"
    got it from one of the topics here only.
    Now when i logout from any of my jsp and press back button of browser, the jsp's having struts specific action(http://...../xyz/edituser.do)works fine but forward specific jsp's(http://...../xyz/edit.jsp) is not redirecting to my login page(page not found error :- /xyz/edit.jsp). Also what if i press the browser back button more thn once????? weather this thing works on client side???at the moment in my application even the action specific logout is not working.........how can i solve this problem elegantly?????

    I faced same problem.
    I used below code.
    This code in every Authorized page.
    <%
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setDateHeader("Expires", 0);
    response.setHeader("Pragma","no-cache");
    %>
    <%
    String username=(String) session.getAttribute("user");
    if(null==username)
         response.sendRedirect("../jsp-modLogin/login.jsp");
    }This code in logout page
    <%
    session.removeAttribute("user");
    session.invalidate();
    response.sendRedirect("../index.jsp");
    %>For me, It is working fine...
    Check it with ur code
    Regards
    Ramesh

  • Frame issue in jsp/struts application

    I have a problem with jsp struts application .
    i have a jsp page which is inside a frame .
    The action class which receives the request from this page redirects the request to another jsp page.
    I want this new jsp page to be displayed without any frame , but it is getting displayed from inside the frame .
    can anybody help me out ...
    regards,               
    slam

    Possibly:
    1. Browser could be caching the page.
    2. If you use a proxy, the proxy may be caching the page.
    3. The page is not getting recompiled.

  • Deploy BC4J/JSP-Struts to IAS

    HI,
    I'm trying to deploy a BC4J/JSP-Struts application to IAS. This application was developed with JDeveloper 9.0.3.
    I can deploy this application to a Standalone OC4J (delivered with JDeveloper 9.0.3) on Windows2000 without problem.
    Then I want to deploy this application on Oracle9iAS 9.0.2. For this I create an .EAR file with JDeveloper and I start the OC4J Administrator tools from Oracle9iAS and deploy my application.
    I start the application with
    http://erbium.int.imd.ch:7778/InvoicesInterface/main.jsp?user=x-XxX
    and I become the menu without Problem.
    Then I click on the link
    http://erbium.int.imd.ch:7778/InvoicesInterface/VInvoiceUsersView1_Browse.do?user=x-XxX
    and I become following :
    HTTP 500 Internal server error
    The page cannot be displayed
    Did you have any Ideas ?
    Thanks Yves
    Configuration:
    - Oracle9iAS (9.0.2) on Solaris
    - JDeveloper9.0.3

    Yves -
    I am not able to pinpoint the exact error you are having but here are some obervations
    a) You are going backwards in versions of OC4J when you deploy to 9iAS 902. If you are using JDev 903, then it is running with a local version of OC4J 903. When you are deploying to 9iAS 902, it's a earlier release of OC4J, so there may be an issue there. There is a 9iAS 903 version available from OTN that would be better to use in this case.
    b) Is the struts framework packaged as part of the EAR file you are deploying? i'm not familiar with how BC4J and Struts apps are packaged from JDeveloper, but this is something to check on for sure. The local OC4J running inside of JDeveloper may have the Struts libs configured at the server level.
    c) You might want to try and change the show-friendly-error-messages (or something like that) property inside of IE (if you are using it) so that it will display the stack trace the server might be sending. this may be of help to further locate the source of the problem (ClassNotFoundException, etc.).
    -steve-

  • Re: [iPlanet-JATO] sp3 jsp compiler problem

    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text
    substitution situations, and as a completely independent tool its use is not
    restricted to migration situations (or file types for that matter).
    Second, I sympathize with the unfortunate trouble you are experiencing due to
    Jasper's (perhaps more strict) compilation, but in what way did the iMT
    automated translation contribute to these inconsistencies that you cited?
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a
    translation situation, the only way "OnClick" would have been introduced was if
    it had been part of the pre-existing project's "extraHTML" (which was written
    by the original customer and just passed through unchanged by the iMT) or if it
    was added manually by the post-migration developer.
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be
    similar to the OnClick situation described above?
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no
    equivalent in the NetDynamics world, so any content tags in your code must have
    been introduced by your developers manually. Its a shame that jasper is so
    particular, but the iMT could not help you out here even if we wanted to. The
    constants that are used by the iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can see, the
    only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174144234026000079108238073194105057099246073154180137239239223019162">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    [Non-text portions of this message have been removed]

    Thanks a lot Matt and Mike for your prompt replies.
    I agree completely that iMT doesn't introduce the inconsistencies.
    About the three cases I mentioned, the third one happens only in
    manually created JSPs. So it has nothing to do with iMT. The first
    two are mainly due to the existing HTML code, as you rightly pointed
    out.
    The reason I made the suggestion is since we know that case 1 and 2
    won't pass the japser compiler in sp3, we have to do something about
    it. The best place to do this, in my mind, is iMT. Of course, there
    might be some twists that make it impossible or difficult to do this
    kind of case manipulation or attribute discard.
    Weiguo
    --- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent
    tool its use is not restricted to migration situations (or file types
    for that matter).
    >
    Second, I sympathize with the unfortunate trouble you are experiencing due to Jasper's (perhaps more strict) compilation, but
    in what way did the iMT automated translation contribute to these
    inconsistencies that you cited?
    >
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a translation situation, the only way "OnClick" would have been
    introduced was if it had been part of the pre-existing
    project's "extraHTML" (which was written by the original customer and
    just passed through unchanged by the iMT) or if it was added manually
    by the post-migration developer.
    >
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be similar to the OnClick situation described above?
    >
    >
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no equivalent in the NetDynamics world, so any content tags
    in your code must have been introduced by your developers manually.
    Its a shame that jasper is so particular, but the iMT could not help
    you out here even if we wanted to. The constants that are used by the
    iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can
    see, the only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    >
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174048139046">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as
    what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    >>
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    Service.
    >
    >
    >
    [Non-text portions of this message have been removed]

  • Non-ascii, jsp-struts, not reciveing the correct value in the server

    Hi,
    I am developing JSP-Struts based application using tomcat server. In JSP struts form, when I put nonascii charater in the text field or text area, on the server side I recived twice of that non-ascii character..
    for example, in the text field I entered following string:
    ------> This is text in tex field �&#131;
    On the server side, I get the following:
    ------> This is text in tex field �&#131;�&#131;
    Please notice, twice non ascii character.. :(
    I don't know how to resolve this.. Any help will be greatly appricated..
    Thanks,
    Ajay

    I changed the <form> in the jsp to div and its working fine. I do not need to have comments in JavaScript funcion() anymore. I don't know why that made the difference though? According to:
    http://www.w3schools.com/tags/tag_form.asp
    The <form> tag is used to create an HTML form for user input.
    The <form> element can contain one or more of the following form elements:
    <input>
    <textarea>
    <button>
    <select>
    <option>
    <optgroup>
    <fieldset>
    <label>
    An HTML form is used to pass data to a server.
    I do have <button> and also send the data - the value of checkboxes - to server. So I think it should also work with <form>.
    Please let me know if you have any idea. Thanks.

  • HELP.....!!!!! Chinese jsp compilation problem.....

    Hi,
    Could someone please help on the above mentioned?
    I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
    <%@ page contentType="text/html;charset=UTF-8"%>
    at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Error: (0) sun.io.MalformedInputException.
    Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Warning: (0) ISO-8859-1 character set may not match project compiler setting.
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
    Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
    I do appreciate your help on this. Thank you.

    Here's some info one of the JSP Developers sent me:
    1. HELP.....!!!!! Chinese jsp compilation problem.....
    The customer is trying to parse a document generated by
    Windows's notepad. When saved in UTF-8, the byte
    order mark is saved too. We have a know bug that
    JSP parser doesn't recognize Byte Order Mark. The
    bug is : 1915285.
    2. CHINESE CHARACTER ON JSP
    . SQLPLUS depends on NLS_LANG setting. If you
    check the windows registry, the default of NLS_LANG
    depends on the OS. The user environment is Traditional
    Chinese, so does NLS_LANG. If we set NLS_LANG
    to .UTF8, SQLPLUS dumps the data in UTF8, however,
    the command prompt will have problem displaying them.
    . For JSP, as mentioned in a previous mail:
    <%@ page contentType="text/html;charset=UTF-8" %> for all languages
    <%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
    <%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
    . When you enter Chinese characters on a browser,
    the data is automatically converted to page encoding
    (UTF-8 in your case) before sent back to the server.
    But your receiving servlet/JSP needs to have request
    encoding set correctly.
        I'm not sure about the JDeveloper environment,
    but here is a simple JSP you may try to verify your
    OC4J environment:
    a.    To set up the schema:
    connect scott/tiger
    create table tab01(col varchar2(100));
    b. Edit the connect string in nls.jsp
    c. Run the nls.jsp in oc4j instance.
    <!-- nls.jsp -->
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    request.setCharacterEncoding("UTF-8");
    String sampledata="\u7D20";
    String paramValue = request.getParameter("myparam");
    String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
    String user = "scott";
    String passwd = "tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(connStr, user, passwd);
    if (paramValue == null || paramValue.length() == 0) { %>
       <FORM METHOD="GET">
       Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
    value="<%=sampledata%>" size=20>
    <BR>
       <INPUT TYPE="SUBMIT" value="Insert Data">
       </FORM>
    <%
      selectData(conn, out);
    else
    %>
       <H1> Insert Data: <%= paramValue %> </H1>
       <br/>
    <%
      insertData(conn, paramValue);
    %>
    <a href="nls.jsp">back</a>
    <%
    %>
    </BODY>
    </HTML>
    <%!
      public void insertData(Connection aConn, String myval)
        try {
          PreparedStatement stmt = aConn.prepareStatement("insert into tab01
    values(?)");
          stmt.setString(1, myval);
          stmt.executeUpdate();
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
      public void selectData (Connection aConn, JspWriter out)
        try {
          Statement stmt = aConn.createStatement( );
          ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
          out.println("<H1>List of Data:</H1>");
          while (r.next()) {
            out.println(r.getString(1)+"<br/>");
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
        catch (IOException e) {
          e.printStackTrace();
    %>

  • Tracking a separate Thread  - java/jsp/struts

    Hi all,
    My project is a webapplication using java/jsp/struts. My requirement is to write bulk data to a file, which i want to run as a separate thread. Since it runs as a separate thread the control comes back to UI (userInterface) page. On subsequent request from UI page by the user i want to check whether the thread process is completed or not , so that i can read from the file. Is it possible to simultaneously read from the file when the thread is in the process of writing data to the file. If so any idea on how to implement this functionality in java?
    How to keep track of the separate thread (whether it is completed or not) in java?
    Is it possible to read from the file when the thread is writing to the file in java?
    Thanks is advance.

    dangerous wrote:
    How to keep track of the separate thread (whether it is completed or not) in java?Thread#join().
    As you're already asking this trival question, I highly recommend you to read the Concurrency Tutorial here at Sun.com. Google can find it.
    Is it possible to read from the file when the thread is writing to the file in java?Not with java.io. You can use the java.nio API for that. You can also read/write it in memory (as a byte[] or a ByteArrayInputStream/OutputStream property) and if it is finished then write it to disk.

  • Learning JSP/Struts with JDeveloper

    Hi. We have an older version of Java on our Unix production web server (1.4.2_12-b03) and it'll be a year before we upgrade it and use JSF. In the meantime, I'm looking at learning Struts and JSP. Can you point me to a few tutorials specific to JDeveloper for JSP/Struts? Most of the tutorials now are for ADF/JSF -- which we can't use yet. Thanks.

    Just to clarify - JSF can run on OAS 10.1.2 (that supports J2EE 1.3 and uses JDK 1.4).
    See: http://download.oracle.com/docs/html/B25947_01/deployment_topics006.htm#CIHCGGDF
    So this shouldn't be a reason for you not to use JSF and JDeveloper 10.1.3.
    That said if you want to learn Struts try following the archive links on the various JDeveloper tutorials/demos pages to the demos from the 9.0.5/10.1.2 days.

  • Jdev9.0.3 JSP STRUTS ADF application problem with jdve10.1.3 and 10g IAS

    Hello, All,
    My current application is developed with jdev9.0.3 and deployed to OC4J 9.0.4 on ias, it works fine.
    Now I need to deploy it to our new 10g application server. the application run into the following error:
    NoClassDefFoundError: oracle/jdeveloper/html/HTMLElement
    at oracle.adf.controller.struts.util.ErrorReporting.addError(ErrorReporting.java:99)
    at oracle.adf.controller.struts.util.ErrorReporting.addError(ErrorReporting.java:94)
    Then I tried to migrate the application to jdev10.1.3 first, the code run into some red lines, e.g. <c:out .../> can't be within <c:set.../>, but it compiled ok and run fine within jdeveloper.
    But when I deployed the new .war file into the 10g server, now I run into different set of error(Please see belowe).
    Is there anything I need to do when I deploy a jdev903 application to 10g server, or migrating to jdev10.1.3?
    Any advice will be appreciated,
    Deborah
    java.lang.NoClassDefFoundError     at at oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68)
    at org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503)     
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
    ...

    Migrating ADF/Struts 10.1.2 to 10.1.3.
    http://radio.weblogs.com/0118231/2006/02/28.html#a665

  • Struts - Problem with ActionMessages

    Hi everyone:
    Here is my problem: This is the code in my action class
    catch (Exception e){
                        ActionMessages errors = new ActionMessages();
                        if (e instanceof DatabaseException)
                             errors.add("error", new ActionMessage("errors.database", e
                                       .getMessage().toString()+" Hay un error en la BD"));
                        else
                             errors.add("error", new ActionMessage("error", e
                                       .getMessage().toString()+" Hay un error"));
                        saveMessages(request, errors);
                        System.out.println(errors.size());
                        res = mapping.findForward("repetimos");
                   }I print the errors.size in order to check if it's not empty. Well, it's size is 1.
    In my jsp my code is this:
    <logic:messagesPresent message="true">
         <html:messages id="error" message="true">
              <c:out value="${error}" />
         </html:messages>
    </logic:messagesPresent>But I don't get any message when an error occurs. Am I doing anything wrong? I can't see the fail.
    I appreciate very much your attention. Thanks a lot

    In your action do you add errors to the Request or Session? It's been a while since I have worked with struts. Looking back I think we used lists to contain our error messages and displayed them in our JSP.

  • Struts Problem :: How to show data into Grid

    hi to all..
    I am having problem in Struts/EJB. I have to show all the data of a table into a grid(Table in jsp)
    i.e. fire a query "select * from <table name >" and show the output into the respective table.
    Earlier it works fine because the table contains minimum data(500-1K) and did not take too much time to load into grid but now the data in that table goes upto 80K-90K rows and it takes too much time to populate the table.
    problem is How can I minimize the populating time of table ?
    I want solution like fetch more rows option in DB2, but my problem is how to maintain previous data into session because every time its a new request and I don't want to keep my bean into a session.

    thnx for the reply.. but the problem remains here.
    I use *"fetch first n rows only"* clause in query; In DB2 Database there is no mysql database type functionality "*Select column1,column2 from table1 +Limit n,m+*" clause which is use to fetch rows exists between n and m.
    mysql Limit clause didn't work in DB2. Here fetch first n rows only( where n starting from 0th row to the number specified) works but didn't get desirable results.

  • Struts problem on IBM Websphere

    Hi,
    We have a struts application that works fine when running in the IBM Webphere Studio Application Developer.
    But when it is deployed to IBM Websphere in our test environment, it spits out the following error on start up.
    RVE0100E: Did not realize  init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path
         at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
         at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
         at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:211)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:350)
         at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
         at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
         at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
         at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
         at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:857)
         at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:43)
         at com.ibm.ws.runtime.Server.startModule(Server.java:618)
         at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:511)
         at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
         at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:948)
         at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:137)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
         at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:686)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:110)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
         at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:73)
         at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
         at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
         at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
         at com.ibm.ws.util.CachedThread.run(ThreadPool.java(Compiled Code)) I have seen similar problems reported in forums and the cause is usually a problem with the struts-config file. But I have tried stripping our struts-conifg file right back and it still gives the same error. Our complete struts-config file is as follows:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <!--
         This is the Struts configuration file for the example application,
         using the proposed new syntax.
         NOTE:  You would only flesh out the details in the "form-bean"
         declarations if you had a generator tool that used them to create
         the corresponding Java classes for you.  Otherwise, you would
         need only the "form-bean" element itself, with the corresponding
         "name" and "type" attributes.
    -->
    <struts-config>
      <!-- ========== Form Bean Definitions =================================== -->
         <form-beans>
              <form-bean name="cardDetailForm" type="au.com.hbf.asktedadmin.form.CardDetailForm">
              </form-bean>
              <form-bean name="cardCategoryDetailForm" type="au.com.hbf.asktedadmin.form.CardCategoryDetailForm">
              </form-bean>
              <form-bean name="pollDetailForm" type="au.com.hbf.asktedadmin.form.PollDetailForm">
              </form-bean>
              <form-bean name="searchCategoryDetailForm" type="au.com.hbf.asktedadmin.form.SearchCategoryDetailForm">
              </form-bean>
         </form-beans>
      <!-- ========== Global Forward Definitions ============================== -->
      <!-- ========== Action Mapping Definitions ============================== -->
         <action-mappings>
         <action
             path="/home"
             type="au.com.hbf.asktedadmin.actions.HomeAction">
              <forward name="success" path="/home.jsp">
                   <description>Home Page</description>
              </forward>
              <forward name="error" path="/error.jsp">
              </forward>
          </action>     
         <action
             path="/viewCards"
            type="au.com.hbf.asktedadmin.actions.CardViewAction">
             <forward name="success" path="/viewCards.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/viewArchivedCards"
            type="au.com.hbf.asktedadmin.actions.ArchivedCardViewAction">
             <forward name="success" path="/viewArchivedCards.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/getCard"
             name="cardDetailForm"
             validate="false"
             scope="session"
             input="/viewCards.jsp"
            type="au.com.hbf.asktedadmin.actions.CardUpdateAction">
             <forward name="success" path="/cardDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/updateCard"
             name="cardDetailForm"
             validate="true"
             scope="session"
             input="/cardDetails.jsp"
            type="au.com.hbf.asktedadmin.actions.CardUpdateAction">
             <forward name="success" path="viewCards.do"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/viewCardCategories"
            type="au.com.hbf.asktedadmin.actions.CardCategoryViewAction">
             <forward name="success" path="/viewCardCategories.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/getCardCategory"
             name="cardCategoryDetailForm"
             validate="false"
             scope="session"
             input="/viewCardCategories.jsp"
            type="au.com.hbf.asktedadmin.actions.CardCategoryUpdateAction">
             <forward name="success" path="/cardCategoryDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/updateCardCategory"
             name="cardCategoryDetailForm"
             validate="true"
             scope="session"
             input="/cardCategoryDetails.jsp"
            type="au.com.hbf.asktedadmin.actions.CardCategoryUpdateAction">
             <forward name="success" path="viewCardCategories.do"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/viewPolls"
            type="au.com.hbf.asktedadmin.actions.PollViewAction">
             <forward name="success" path="/viewPolls.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/getPoll"
             name="pollDetailForm"
             validate="false"
             scope="session"
             input="/viewPolls.jsp"
            type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
             <forward name="success" path="/pollDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/addPoll"
             name="pollDetailForm"
             validate="false"
             scope="session"
             type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
             <forward name="success" path="/pollDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/updatePoll"
             name="pollDetailForm"
             validate="true"
             scope="session"
             input="/pollDetails.jsp"
            type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
             <forward name="success" path="viewPolls.do"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/listSearchCategories"
            type="au.com.hbf.asktedadmin.actions.SearchCategoryListAction">
             <forward name="success" path="/listSearchCategories.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/getSearchCategory"
             name="searchCategoryDetailForm"
             validate="false"
             scope="session"
             input="/listSearchCategories.jsp"
            type="au.com.hbf.asktedadmin.actions.SearchCategoryUpdateAction">
             <forward name="success" path="/searchCategoryDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/updateSearchCategory"
             name="searchCategoryDetailForm"
             validate="false"
             scope="session"
             input="/searchCategoryDetails.jsp"
            type="au.com.hbf.asktedadmin.actions.SearchCategoryUpdateAction">
             <forward name="success" path="listSearchCategories.do"></forward>
              <forward name="continue" path="/searchCategoryUrls.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         <action
             path="/updateSearchCategoryUrl"
             name="searchCategoryDetailForm"
             validate="false"
             scope="session"
             input="/searchCategoryUrls.jsp"
            type="au.com.hbf.asktedadmin.actions.SearchCategoryUrlUpdateAction">
             <forward name="success" path="/searchCategoryDetails.jsp"></forward>
              <forward name="error" path="/error.jsp"></forward>
         </action>     
         </action-mappings>
         <controller processorClass="au.com.hbf.hef.web.struts.request.StrutsRequestProcessor"/>
      <!-- ========== Message Resources Definitions =========================== -->
         <message-resources parameter="au.com.hbf.asktedadmin.resources.AskTedAdminApplicationResources"/>
    </struts-config>

    I don't think this is the problem.
    The AskTedAdminApplicationResources is included in the war under WEB-INF\classes\au\com\hbf\asktedadmin\resource\AskTedAdminApplicationResources.properties
    And like I say, it works fines in the Studio Developer, but fails when deployed to websphere.

  • JSP Performance Problem

    Hi,
    In my web application one of the JSP is taking a lot of time to execute/transmit/render. The JSP in question has 17 HTML list boxes. some of them of size around 2000 items. JSP is written using struts tags to generate HTML select.
    I tried putting logger statement inside JSP around "<select> < optionsCollection>" to get time it takes for different list boxes to generate.
    Below are the observations.
    1) One particular element (HTML SELECT/ optionsCollection) in JSP takes around 20 seconds.
    2) If I move same HTML select Box 1 or 2 rows up then it takes milliseconds to generate but now another list box takes around 20 seconds.
    3) Problem is only on the Solaris server we are using for testing. JSP runs perfectly fine when I run on my windows desktop or any other desktop in our LAN.
    Note : Application when deployed on server is accessed using HTTPS while in local environment it is accessed using HTTP
    Can anyone help explain this behavior?

    Hi,
    In my web application one of the JSP is taking a lot of time to execute/transmit/render. The JSP in question has 17 HTML list boxes. some of them of size around 2000 items. JSP is written using struts tags to generate HTML select.
    I tried putting logger statement inside JSP around "<select> < optionsCollection>" to get time it takes for different list boxes to generate.
    Below are the observations.
    1) One particular element (HTML SELECT/ optionsCollection) in JSP takes around 20 seconds.
    2) If I move same HTML select Box 1 or 2 rows up then it takes milliseconds to generate but now another list box takes around 20 seconds.
    3) Problem is only on the Solaris server we are using for testing. JSP runs perfectly fine when I run on my windows desktop or any other desktop in our LAN.
    Note : Application when deployed on server is accessed using HTTPS while in local environment it is accessed using HTTP
    Can anyone help explain this behavior?

  • Optimizing jsp (struts)

    I am having problem with following jsp. Its taking very less time to load the data from database(using struts action class at backend) and the control is coming back to the browser soon , but its taking a long time to display the contents in the browser. What may be the issue. The jsp is as follows. It has lot of list boxes with huge data. Is there any way to optimize this page so that it loads faster.
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <%@ page buffer="24kb" %>
    <jsp:include page="../header.jsp" ></jsp:include>
    <SCRIPT LANGUAGE="JavaScript">
    function submitThisForm(thisElem) {
    var verValue = thisElem.form.version.value;
    thisElem.form.version.value = trim(verValue);
    verValue = thisElem.form.version.value;
    var osTypeValue = thisElem.form.osType.value;
    var osFunValue = thisElem.form.osFunction.value;
    if (verValue.length != 0) {
    if ((osTypeValue == "" || osTypeValue == null) && (osFunValue == "" || osFunValue == null)) {
    alert ("Please select OS Type and Function");
    thisElem.form.osType.focus();
    return false;
    } else if (osTypeValue == "" || osTypeValue == null) {
    alert ("Please select OS Type");
    thisElem.form.osType.focus();
    return false;
    } else if (osFunValue == "" || osFunValue == null) {
    alert ("Please select Function");
    thisElem.form.osFunction.focus();
    return false;
    if(thisElem.form.memcheckVal.value.length > 0) {
    var val=thisElem.form.memcheckVal.value.match(/^\d+$/);
    if(val == null) {
    alert("Enter numeric value for memory");
    thisElem.form.memcheckVal.focus();
    return false;
    if(thisElem.form.flashcheckVal.value.length > 0) {
    var val=thisElem.form.flashcheckVal.value.match(/^\d+$/);
    if(val == null) {
    alert("Enter numeric value for flash");
    thisElem.form.flashcheckVal.focus();
    return false;
    return true;
    // Trim whitespace from left and right sides of s.
    function trim(s) {
    return s.replace( /^\s*/, "" ).replace( /\s*$/, "" );
    </SCRIPT>
    <!-- START OF PAGE -->
    <%
    String custId = request.getParameter("custId");
    String cpyKey = request.getParameter("cpyKey");
    System.out.println("Entered JSP Scriplet ");
    System.out.println("Buffer size is --"+ response.getBufferSize());
    %>
    <br/>
    <p class="note">
    <strong>Simple Config Search: </strong> This option will search the configuration files for keywords, allowing the ability to use AND/OR and NOT between lines. No wild cards are allowed, however this is a fast way of finding a keyword in a configuration file.
    <br/><br/>
    <strong>Regular Expression Config Search: </strong><br/>
    This option will search the configuration files, (line by line) using egrep. Therefore all expressions as
    supported by egrep, are supported here.
    <br/><br/>
    <strong>Combined Simple and Regular Expression Config Search: </strong><br/>
    Use the combined search for faster search results. It will search the whole document first with the
    Simple Search criteria (fast) and then pass the results on for Regular Expression matching (slow).
    </p>
    <p class="note">
    <strong>Note:</strong><br/>
    The search does an 'AND' between rows and an 'OR' on the fields inside each row.<br/> To select more than one in each row press 'CNTRL' key .
    <br/><br/>
    <strong>Device Name Pattern:</strong><br/>
    Enter a pattern for device names using '*' only.<br/>
    If device name is chosen from list "Device Names" above it, then that shall take precedence.
    <br/><br/>
    <strong>Chassis Serial Number:</strong><br/>
    Multiple patterns should be separated by a comma
    </p>
    <html:form action="/srchAction.do">
    <html:hidden property="custId" value="<%=custId%>"/>
    <html:hidden property="cpyKey" value="<%=cpyKey%>"/>
    <div class="tableholder" title="Name Or Describe The Form here">
    <table border="0" cellpadding="3" cellspacing="5">
    <tr>
    <td>
    <label for="swish">Simple Config Search</label>
    </td>
    <td>
    <html:text property="swish" size="45"/>
    </td>
    </tr>
    <tr>
    <td>
    <label for="rcsrch">Regex Config Search</label>
    </td>
    <td>
    <html:text property="regex" size="45"/>
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <br/>    
    <input class="buttonpos" type="submit" name="search" value="Search" />
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="groupNameId">Groups</label>
    </td>
    <td>
    <html:select property="groupNameId" multiple="true" size="4">
    <option value="any" selected>Any</option>
    <%
    %>
    <html:optionsCollection name="GROUP_LIST" value="groupId" label="groupName" />
    <%
    %>
    </html:select>
    <br/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="deviceNameId">Device Names</label>
    </td>
    <td>
    <html:select property="deviceNameId" multiple="true" size="4">
    <option value="any" selected>Any</option>
    %>
    <html:optionsCollection name="DEVICE_LIST" value="deviceId" label="deviceName" />
    <%
    %>
    </html:select>
    <br/><br/>
    <label for="text" value="">Pattern </label>
    <html:text property="deviceNamePat" size="20"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="os">SW Version</label>
    </td>
    <td>
    <html:select size="4" property="os" multiple="true">
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="osValues" />
    </html:select>
    <br/><br/>
    <label for="major" value="">Maj Ver </label><html:text property="major" value="*" size="2"/>
    <label for="minor" value="">Min Ver </label><html:text property="minor" value="(*)" size="2"/>
    <label for="release" value="">Release Train </label><html:text property="release" value="*" size="2"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="hostnames">Version Function</label>
    </td>
    <td>
    <label for="version" value="">Version </label><html:text property="version" size="20"/><br/>
    <label for="osType" value="">OS Type </label>
    <html:select property="osType">
    <html:option value=""> </html:option>
    <html:option value="IOS">IOS</html:option>
    <html:option value="CatOS">CatOS</html:option>
    </html:select>
    <br/>
    <label for="osFunction" value="">Function </label>
    <html:select property="osFunction">
    <html:option value=""> </html:option>
    <html:option value="releaseGreater">releaseGreater (Full Version Greater)</html:option>
    <html:option value="releaseGreaterEqual">releaseGreaterEqual (Full Version GreaterEqual)</html:option>
    <html:option value="releaseLesser">releaseLesser (Full Version Lesser)</html:option>
    <html:option value="releaseLesserEqual">releaseLesserEqual (Full Version LesserEqual)</html:option>
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="hwfam">HW Family</label>
    </td>
    <td>
    <html:select size="4" property="hwfam" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="hwfamValues" />
    </html:select>
    <br/><br/>
    <label for="hwfamPattern" value="">Pattern </label>
    <html:text property="hwfamPattern" value="*" size="20"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="pid">Chassis Product ID</label>
    </td>
    <td>
    <html:select size="4" property="pid" multiple="true">
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="pidValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="hwchass">Chassis SNMP Name</label>
    </td>
    <td>
    <html:select size="4" property="hwchass" multiple="true">
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="hwchassValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="tech">Technology</label>
    </td>
    <td>
    <html:select size="4" property="tech" multiple="true">
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="techValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="features">Features</label>
    </td>
    <td>
    <html:select size="4" property="features" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="featValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="cfam">Module Family</label>
    </td>
    <td>
    <html:select size="4" property="cfam" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="cfamValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="cfam">Module Product ID</label>
    </td>
    <td>
    <html:select size="4" property="cardspid" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="cardPidValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="cards">Module SNMP Name</label>
    </td>
    <td>
    <html:select size="4" property="cards" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="cardsValues" />
    </html:select>
    <br/><br/>
    <label for="cardPattern" value="">Pattern </label>
    <html:text property="cardPattern" value="*" size="20"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="inffam">Interface Family</label>
    </td>
    <td>
    <html:select size="4" property="inffam" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="inffamValues" />
    </html:select>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="infs">Interfaces</label>
    </td>
    <td>
    <html:select size="4" property="infs" multiple="true" >
    <option value="any" selected>Any</option>
    <html:options name="INV_DETAILS" property="infsValues" />
    </html:select>
    <br/><br/>
    <label for="interfacePattern" value="">Pattern </label>
    <html:text property="interfacePattern" value="*" size="20"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="srlNumPattern">Chassis Serial Number</label>
    </td>
    <td>
    <html:text property="srlNumPattern" value="*" size="45"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div class="horizontalgraydots"></div></td>
    </tr>
    <tr>
    <td>
    <label for="memopVal">Memory</label>
    </td>
    <td>
    <html:select property="memopVal" size="1">
    <html:option value="gt">></html:option>
    <html:option value="lt"><</html:option>
    <html:option value="gte">>=</html:option>
    <html:option value="lte"><=</html:option>
    <html:option value="eq">=</html:option>
    </html:select>
    <html:text property="memcheckVal" size="8"/> MB
    </td>
    </tr>
    <tr>
    <td>
    <label for="flashopVal">Flash</label>
    </td>
    <td>
    <html:select property="flashopVal" size="1">
    <html:option value="gt">></html:option>
    <html:option value="lt"><</html:option>
    <html:option value="gte">>=</html:option>
    <html:option value="lte"><=</html:option>
    <html:option value="eq">=</html:option>
    </html:select>
    <html:text property="flashcheckVal" size="8"/> MB
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <br/>    
    <input class="buttonpos" type="submit" name="search" value="Search" onclick="return submitThisForm(this);"/>
    </td>
    </tr>
    </table>
    </div>
    </html:form>
    <!-- END OF PAGE -->
    <jsp:include page="../footer.jsp"></jsp:include>

    <link rel='stylesheet' type='text/css' href="../stylesheets/common.css">
    The problem will be caused by the relative link to your stylesheet
    If your jsp page is /subdirectory/jsppage.jsp
    and your form is submitted to /controlServlet
    it looks for the css file relative to /controlServlet - ie it won't find it from here.
    There are two solutions.
    If your stylesheets can be accessed via absolute reference, make it so
    ie <link rel='stylesheet' type='text/css' href="/stylesheets/common.css">
    Thus you use only absolute references, and no relative links
    The other solution: to use relative links, you have to specify a base.
    <base href="reference to your jsp page\">

Maybe you are looking for

  • Need help with URL Redirect in Sun Web Server 7 u5

    All I am trying to do is redirect to a static URL and for the life of me I can not get it to behave the way I would expect. I am new to Sun Web Server so I am just trying to use the Admin Console to set this up. Here is what I'm trying to do: Redirec

  • Aperture 2.1 Permissions Rebuild

    I did the Option-Command thing and asked Aperure to rebuild permissions. 9.5 hours later, Activity Monitor says it is still at it! I have 12,000 images in the library. So far, Mach System Calls (whatever they are) is at 1,480,145! Aperture is not sho

  • How to protect Macbook pro retina battery?

    Hello guys, I would like if someone could help me and give me tips for protecting the battery life for macbook pro retina, as I work for long hours on my macbook for about 8 hours so i keep it plugged on and from what I heared that it affects the mac

  • Question on Explain Views

    Hi, I'm not sure why the select statement has scanned some many rows when there are totally 56 rows records in a table... Please advice... SQL VIEW: CREATE OR REPLACE VIEW M11BLNUMBERVIEW (DOCID, USERID, SNDREDI, RECVEDI, RELEASENO, ASSIGNEDID, M11BL

  • Audio Streaming goes out of time

    I'm making an animation along to a music track. A little character needs to beat the drums throughout, in time. By placing the audio as a stream on the timeline, I can scrub across, and time my animation nicely. However, when I test my movie, the ani