Dates in JSP page

I have some dates fields on JSP page I want to store data in mysql databse. Can someone tell me how I can format dates as I do for other data types in servlet before I send data to add in databse: such as
For int type data:
String paymentID = request.getParameter("PaymentID")
I format it like this for class Payment.
Payment newPayment(int.parseInt(paymentID)               
how do i work with date fields this is what I Am trying to do:
Code patches....
import java.text.DateFormat;\import java.text.ParseException;
public date date1;
try                               
      date1= format.parse(paymentStartDate);
catch(ParseException pe)
System.out.println("Problem found");
....I do not get any error but it leaves date fields empty because date1 formatting never goes to try... Always say "Problem found on console"
Any help?

I just realized I should post the whole file... here is code of the servlet that recieved dates from JSP and process it.
package admin;
import java.lang.Object.*;
import java.text.DateFormat;
import java.util.Date;
import java.io.IOException;
import java.text.ParseException;
import data.*;
import business.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class AddPaymentServlet extends HttpServlet{
     public Date date1;
     public Date date2;
    public DateFormat format;
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
// Stores user entered Payment information in variables to create new Payment vector
          String paymentID = request.getParameter("paymentID");
          String clientName = request.getParameter("clientName");
         String paymentType = request.getParameter("paymentType");
          String paymentAmount = request.getParameter("paymentAmount");
         String paymentStartDate = request.getParameter("paymentStartDate");
          String paymentExpiryDate = request.getParameter("paymentExpiryDate");
          String paymentDescription = request.getParameter("paymentDescription");
          String paymentState1 = request.getParameter("paymentState"); // use String type of PaymentType
//-----------------------------------Format dates----------------------------------------------------------          
         DateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.SHORT);
       //    System.out.println("Date1--->"+date1);
              try
                   {    date1 = format.parse(paymentStartDate);
                    //    System.out.println("Date1--->"+date1);
                 catch(ParseException ps)
                        System.out.println("can't format dates");     
                  try
                   date2 = format.parse(paymentExpiryDate);
              catch(ParseException pe)
                   System.out.println("can't format dates");
// get old Payment object from session
//--------------------------------Send new PAyment Information to Vector Payment in Payment.jave-----------------------------
          Payment newPayment = new Payment(clientName,paymentType,Double.parseDouble(paymentAmount),date1,date2,paymentDescription,paymentState1);
//------------------------------ Call PaymentDB function Add() to store new payment infomration in the databse
         PaymentDB.addRecord(newPayment);
// over-write Payment object in session
          request.getSession().setAttribute("payment",newPayment);
          request.getSession().setAttribute("payments",PaymentDB.readRecords());
//---------------------------------- Send results back to payment.jsp for updated information----------------------
          RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/Admin/payments.jsp");
          dispatcher.forward(request, response);
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
          doGet(request, response);
}

Similar Messages

  • How to Hightlight the Data in Jsp Page

    How to Hightlight the Data in Jsp Page,
    I am doing doing search page,based on values given search page those are sent to servlet,in servlet based on some conditions if particuler id i am getting then i am redirecting to Respective jsp page with highlight the data from database..
    Thanks in advance...

    "Highlighting data in JSP sounds strange".
    Without looking at your search specific algorithms I feel you are finally going to display a page (HTML content) to user which contains highlighted text. Highlighting is not directly related to server side language you use (JSP, ASP, PHP etc.). This is purely HTML and CSS. However, server side script (such as JSP) should generate HTML content for getting highlight effect.
    Following HTML shows highlighted text using background-color property on span element.
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
      <body>
          <p style="font-size:1.1em">This is a long paragraph which contains <span style="background-color: yellow;">highlighted text</span> and non highlighted text.</p>
      </body>
    </html>Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 14 Jun, 2010 3:30 AM

  • Displaying calculated data in JSP pages

    This is a general question about displaying data in JSP pages which has been calculated through ViewObj Routines. I have exposed the methods to the application level however, I want these methods to automatically run on the launch of the page. I can so this with a data action in the struts file. However, I have lots of these methods (all bringing single values of data), it seems inelegant to have 10 data actions or so. What's the best way to expose and show data on a JSP page automatically which has been calculated from the database rows.
    Thanks in advance

    You could convert the vo row to a hash using BeanUtils and then you could do what you want with it programmaticaly to automatically dissplay the lhash values.

  • JSP and servlets(displaying Data On JSP page)

    Hiii all
    i am new to JSP ...also to servets
    tell me hw to print my data on the JSP page,
    i can print my data on the server,that data i want to print on JSP page
    if u all have e.g's it will be very good
    Thanks in advance
    Take Care
    Rahul :)

    What do you mean "print data on a JSP?" If you simply mean display dynamic content, you should def read up both on sun's resources and other googled resources for JSP walkthroughs...

  • How the hell does a person share session data between JSP page and a Servle

    1. How the hell does one share session data between a servlet and a JSP page without using a bean but rather using a normal string variable.
    2. When using session scope to access a bean the application complains about not finding the bean on the specified scope, however when I use an application scope the save the same bean, the application does find it.
    Please help!!!!!!!
    SERVLET:
    HttpSession session = request.getSession(true);
    ServletContext servletContext = session.getServletContext();
    customerID = result.getString("CustomerID");
    userName = result.getString("UserName");
    session.setAttribute("UserName",userName);
    session.setAttribute("CustomerID",customerID);
    System.out.println("Customer UserName = " + session.getAttribute("UserName"));
    response.sendRedirect("/economics/subscriptions/default.jsp");
    JSP PAGE:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root xmlns:jsp=http://java.sun.com/JSP/Page mlns:c="http://java.sun.com/jsp/jstl/core" xmlns:sql="http://java.sun.com/jsp/jstl/sql" version="2.0">
    <jsp:directive.page isThreadSafe="true" session="true" contentType="text/xml"/><jsp:output omit-xml-declaration="false"/><jsp:scriptlet>response.addHeader("x-xslt-nocache", "true");</jsp:scriptlet><pml>
    <page type="web" search="y">
         <pageName>Commercial Banking</pageName>
         <jsp:directive.include file="/economics/header.inc"/>
         <jsp:directive.include file="/login.inc"/>
         <jsp:directive.include file="/economics/leftMenu.inc"/>
         <!--<jsp:useBean id="UserName" type="java.lang.String" scope="session" />-->
         <content>
         <searchSum>Commercial - Main Content</searchSum>
         Value = <c:out value="${request.session.getAttribute("UserName")}"/>
         </content>
         <jsp:directive.include file="/economics/rightNav.inc"/>
         <jsp:directive.include file="/footer.inc"/>
    </page></pml></jsp:root>

    For a start, just "session" instead of "request.session" would work better. But why did you post this here and not in the JSP forum? Doesn't seem to have anything to do with Java programming.

  • Implementing Database codes FAIL /error in parsing data into jsp page

    Hi there,
    I have this problem trying to build a portal application. I am using the JSPDynPage, jsp page and a bean to build a page.
    I have this problem parsing data from JSPDynPage to the beans and to the jsp page.
    I tested out the connection between the beans and the jsp page. There is no error parsing information from the beans to the jsp page.
    So i tried to test out the codes for the database from the beans.
    Will this work? Because it does not display the results i want.
    I need an Solution asap to find out wad is wrong also also the correct codes to the database.
    public String db(){
    try {
                 InitialContext iC = new InitialContext();
                 DataSource dataSource = (DataSource)iC.lookup("java:env/jdbc/mySQL");
                 java.sql.Connection connection = dataSource.getConnection();
                 PreparedStatement st = connection.prepareStatement("SELECT name FROM test WHERE id='123'");
                 ResultSet resultSet = st.executeQuery();
                 while (resultSet.next()){
                      name = resultSet.getString("name");
                      name = name.toString();
                 connection.close();
                 return name;
                 } catch(Exception n){
                      e = "Exception";
                      return e;
    This is the method i put in the beans to test out the database connection.
    Thanks Loads
    Quatre

    Hi there,
    Thanks for the reply, i thought that no one is going to reply me anymore. Thanks loads.
    Bean Class name: Bean1
    Bean Packeage name: Beans1
    Bean id : myBean1
    Jsp Codes
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean1" scope="application" class="Beans1.Bean1" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
       <hbj:textView id = "ll" text="lalalalalalalalalasasa" />
      <%--
    <hbj:textView id = "l">
                   <% l.setName(myBean1.getName());%>
    </hbj:textView>
    --%>
    <hbj:textView
                    id="appraisal_yr_label"
                    text="Apprasial Year:">
                    </hbj:textView>
                    <hbj:textView id = "la" >
                    <% la.setText(myBean1.getName());%>
                    </hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Beans1.java
    package Beans1;
    import java.io.Serializable;
    public class Bean1 implements Serializable{
    private String name = new String();
    private String e = new String();
    private String year = new String();
         public void setName(String name){
              this.name = name;
         public String getName(){
              return name;
    JSPDynPage
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
      public DynPage getPage(){
        return new testDBv5DynPage();
      public static class testDBv5DynPage extends JSPDynPage{
        private Bean1 myBean1= null;
        private String name = new String();
        public void doInitialization(){
              try{
                                  IntitialContext context = new javax.naming.InitialContext();
                                  DataSource dataSource = (DataSource)context.lookup("java:env/jdbc/appDB");
                                  Connection connection = dataSource.getConnection();
                                  Statement stmt = connection.createStatement();
                                  ResultSet rs = stmt.executeQuery("Select AppraisalYear From tblAppraisal Where AppraisalYear='2007'");
                                          while(rs.next()){
                                            year = rs.getString("AppraisalYear");
                                            rs.close();
                                            stmt.close();
                                            connection.close();
                                            return year;
                                       }catch (Exception n){
                                            n.printStackTrace();
              IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
                     Object o = profile.getValue("myBean1");
                     if(o==null || !(o instanceof Bean1)){
                        myBean1 = new Bean1();
                        profile.putValue("myBean1",myBean1);
                     } else {
                          myBean1 = (Bean1) o;
                        Object value = request.getSession().getValue("myBeans1");
                        if (value==null || (value instanceof Bean1)){
                             myBean1 = new Bean1();
                        request.getSession().putValue("myBean1", Object value);
              DataBase cn = new DataBase();
              name = cn.dataBaseConnection();
              myBean1.setName(name);
    //name = "gir";
    //myBean1.setName(name);
    // IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    //IPortalComponentContext myContext = request.getComponentContext();
    //Bean1 myNameContainer = (Bean1) myContext.getValue("myBean1");
    //myNameContainer.setName(name);
          // fill your bean with data here...
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("testDBv5.jsp");
    //testing purpose
      public static void main (String[] arg){
         testDBv5DynPage ef = new testDBv5DynPage();
               ef.doInitialization();
    Thanks Loads
    Quatre

  • How can share data between jsp pages using beans??

    any one can give me code for 2 jsp pages with bean that share data for them

    <jsp:usebean name="yourBeanName" type="com.whatever.foo" scope="session"/>
    this will look for a bean named yourBeanName in the scope specified by the scope attribute. If none was found, the container will instantiate one with the no arg constructor for your bean and place it into the proper scope.
    if your bean had a method getName(), you could then on your jsp do:
    <%=yourBeanName.getName()%> to print the results of the method to the page. there are other ways to do the actual placing of the output on the page, but this is the most direct.

  • Out.println() problems with large amount of data in jsp page

    I have this kind of code in my jsp page:
    out.clearBuffer();
    out.println(myText); // size of myText is about 300 kbThe problem is that I manage to print the whole text only sometimes. Very often happens such that the receiving page gets only the first 40 kb and then the printing stops.
    I have made such tests that I split the myText to smaller parts and out.print() them one by one:
    Vector texts = splitTextToSmallerParts(myText);
    for(int i = 0; i < texts.size(); i++) {
      out.print(text.get(i));
      out.flush();
    }This produces the same kind of result. Sometimes all parts are printed but mostly only the first parts.
    I have tried to increase the buffer size but neither that makes the printing reliable. Also I have tried with autoFlush="false" so that I flush before the buffer size gets overflowed; again same result, sometimes works sometimes don't.
    Originally I use such a system where Visual Basic in Excel calls a jsp page. However, I don't think that this matters since the same problems occur if I use a browser.
    If anyone knows something about problems with large jsp pages, I would appreciate that.

    Well, there are many ways you could do this, but it depends on what you are looking for.
    For instance, generating an Excel Spreadsheet could be quite easy:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class TableTest extends HttpServlet{
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
              response.setContentType("application/xls");
              PrintWriter out = new PrintWriter(response.getOutputStream());
                    out.println("Col1\tCol2\tCol3\tCol4");
                    out.println("1\t2\t3\t4");
                    out.println("3\t1\t5\t7");
                    out.println("2\t9\t3\t3");
              out.flush();
              out.close();
    }Just try this simple code, it works just fine... I used the same approach to generate a report of 30000 rows and 40 cols (more or less 5MB), so it should do the job for you.
    Regards

  • Sensors in BPEL to publish data to JSP page ??

    Hi Guys
    In the BPEL console the result comes in a XML format. I want the result to be displayed on a JSP page that i created. So that the end user is comfortable to see results. I wanted to know can sensors be used to capture the results from the BPEL console and publish it on the JSP page. If we can do it, which kind of sensors will work. If you could provide me some examples on how i can do it .. It will be really helping . I am new to BPEL and need to complete it urgently. heLp required
    regards

    Hi Marc / Anirudh
    Thanks a lot for providing information. But the clients want the results to be displayed on a Different JSP page. I have created that page. Now I am looking to pass the Payload (The results of the BPEL process) to this JSP page so that i can display over there. I have googled it but didnt find anything. Then i came to know that something like sensors can do it. I have no clue about it. Kindly help
    regards

  • No data in JSP Page

    Hi,
    JDeveloper: 10.1.3.3.0.4157
    Database: Oracle XE 10.2.0.1.0
    Browser: Firefox 2.0.0.14
    I am doing the following steps but the resulting web page displays no data. Any
    help would be appreciated:
    - This is all in JDeveloper...
    - Create an application, 'testapp', using the template [JSP, Struts, ADF BC].
    - On the Model node, create a Business Components Diagram. Rename this to
    'Business Domain Diagram' and put it in the 'testapp.model.businessdomain'
    package.
    - Go to a databse connection, expand Tables and drag a table,
    'SYSTEM_PARAMETERS' on to the diagram. The table has 2 VARCAHR2(100) columns,
    one of which is the primary key. I choose 'Business Component Entity Objects'
    from the 'Create From Database Object' popup.
    - I then right-click on the diagram and select 'Generate/Default Data Model
    Components for Diagram'.
    - I put the objects in the package 'testapp.model.datamodel' and create a new
    application module; 'TestModule'.
    - On the testapp.model.datamodel node, I create another Business Components
    Diagram; 'Data Model Diagram' and, from the same node, drag
    SystemParametersView and TestModule on to this new diagram.
    - I then right-click TestModule and select 'Test', and the Business Components
    Browser pops up allowing me to navigate through the dozen or so rows in the
    table.
    Right now I know that the database connection is all good and my java objects
    can see then.
    - I right-click on the ViewController node and select 'Open Struts Page Flow'.
    From the Components pallet, I drag a 'Data Page' icon on to the
    struts-config.xml diagram and rename it 'TestPage'.
    - I then double-click this icon and accept all the default settings to create
    the page and open it in the page diagrammer.
    - From the 'Data Connection' pallet, I expand TestModuleDataControl' and drag
    SystemParametersView1 on to the page.
    - From the drag options, I choose 'Forms/Read-Only Form' and a form
    containing a table is created. The table is 2x2 and contains bindings for
    the databae table column names and data.
    Now the naughty bit...
    - I click the 'Run' icon, a new tab opens up on Firefox and the page renders -
    i.e. I get a 2x2 HTML Table - but there is no data in it. I can see neither
    the column name labels or the contents of the row. There being no text in
    the table, it has collapsed to 2 very thin rows. I think that I should see
    data from one of the rows in the table and I appreciate that I can't see
    any others because I have not yet added any navigation.
    I would appreciate it if anyone could point at the fatal flaw in this
    procedure.
    Not sure if this helps but below is the log from the embedded OC4J server:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdev\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    C:\jdev\jdk\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    04-May-2008 09:45:07 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    04-May-2008 09:45:07 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 95640 ms.
    08/05/04 09:46:02 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    Target URL -- http://10.1.1.2:8988/testapp-ViewController-context-root/TestPage.jsp
    04-May-2008 09:46:55 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    04-May-2008 09:46:55 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    04-May-2008 09:46:56 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='testapp.view.ApplicationResources', returnNull=true
    04-May-2008 09:46:57 oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    04-May-2008 09:47:01 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    04-May-2008 09:47:01 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    04-May-2008 09:47:01 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    04-May-2008 09:47:01 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    04-May-2008 09:47:01 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    Thanks in advance.
    Steve

    Hi,
    make sure the Struts action in the Struts diagrammer is selected when pressing the run button. Or select the action and choose run from the context menu
    Frank

  • How to show database data in jsp page?

    actually i m doing a small appliaction of quiz test.
    where i m keeping my question and answers in the database.
    now i want to pull questions from the database and display in the jsp or html page.for each question i m having 4 options 4 them.
    like this user has to answer the question and display the resuklt in the end.
    so how can i do this?
    can i get any example or source code for this from any sites?

    Hope this will be ur assignment. Pls try to start ur assignment and post ur doubts with ur code. So that some one can help u.
    Cheers.

  • Increment a Date in JSP Page

    Hi ,
    I am giving a interface to a user where userr can select a start date and end date and on clicking submit ..i have to display all the dates between start date and end date. Now I know i can increment a date by using georgianCalander, But what i wanted to know is how to use the dates I am getting from other page in georgianCalander as georgianCalander needs the dates in int and the date which I am getting is in mm/dd/yyyy format.
    Can anyone help me out..as I am stuck on this problem from last 2 days..
    thanks in advance..

    That doesn't help the person much. Here is some code.
    First you need to convert the text to a date:
    public static java.util.Date stringToDate(String date) throws java.text.ParseException
         java.text.SimpleDateFormat strFormatter = new java.text.SimpleDateFormat( "MM/dd/yyyy" );
         ParsePosition pos = new ParsePosition(0);
         java.util.Date utilDate = strFormatter.parse( date, pos );
         return utilDate;
    }Then pass the date object into a function like this:
      public static GregorianCalendar createCalendar(java.util.Date date)
        GregorianCalendar cal = new GregorianCalendar();
        cal.setTime(date);
        return cal;
      }That's it. Now gimme my Duke Dollars. :-)

  • How to send the data from jsp page to excel ???

    hi all,
    i want to send the data from my jsp form to excel sheet. any one can help me ??

    Hope this sample code might help :
    StringBuffer data = new StringBuffer();
    OutputStream ostream = response.getOutputStream();
    response.setContentType("application/vnd.ms-excel");
    response.setHeader( "Content-Disposition",
    "attachment; filename=sample.xls" );
    ostream.write(data.toString().getBytes());
    ostream.flush();
    Try it out.
    Swathi

  • Ways to retrieve data into Jsp page on ComboBox (or any other event ) event

    Hi all,
    I want to retrieve records from database and display it in Text field.
    Can any one tell me the ways to do it, i know i can do this by using javascript (javascript to submit the form), but i dont want to use javascript any where in my code,
    what i want to know is there any other ways to implement this functionality, and which is the best one.
    Kindly help me,
    Thanks in advanced.

    With plain webapps, there is no way. In one way or another, the server needs to be invoked to be able to provide the data, so that is either a submit or through an Ajax call. Both would involve javascript. Why are you scared of Javascript anyway?

  • Posting huge data on to JSP page using JSTL tags

    Hi,
    I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
    It is taking almost 20 to 25 seconds to load the entire page.
    Is it the optimal time to load or it could be improved?
    Please let me know.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Evnafets,
    Thank you for the response.
    Here are the tasks I am doing to display the data on JSP.
    0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
    1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
    2. Using Java beans to pass data to the presentation layer (JSP).
    3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
    4. Along with the above, there are 4 javascript files are being used.
    5. The jsp file size after rendering the data, is aprox. 160 kb
    Hope this information helps you to understand the problem.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Photoshop or Photoshop Elements?

    I am not sure which product to purchase. I need to edit photos and create mood boards. Should I buy Photoshop or Photoshop Elements?

  • Switching from Iphone 5 to Galaxy s5--iMessage issue

    I recently switched from my iphone5 to my galaxy s5. I am unable to receive messages from other iphone users due to imessage, I am able to send and they do receive them. Those receiving messages are unable to send messages to me at all. With the mess

  • Form2mail how do I set up the form to sent to a recipient selected from a drop-down menu?

    I am trying to configure dreamweaver form2mail to be able to send the information submitted to individual employees.  I would like the form to be set up where as you choose the recipient form a drop down menu and the only that recipient would receive

  • HT204022 How to restore photos deleted photo stream???

    I'm a bit of a newbee to forums and macs.... I have an iphone and have always manually used the USB and copy & paste photos onto my PC. A couple of days ago I installed iCloud onto my PC which installed Okay and created a new photo steam folder as pa

  • Vcr/dvd player combo and compatibility with TV

    I received a VCR/DVD player combo (does not have a digital tuner)  for Christmas.  I have basic cable hookup without a cable box and my tv  does not have a digital tuner.  My dilema is that both sides play just fine but I cannot record from the tv.