communication between JSP and Servlet



Hi All,

I am facing one problem can you help me out.

in one jsp page i have to connect to the database and retrieve
information and display that on the same jsp page but the layout will
be different.

In the present coding style they are preparing the table and displaying
that table in the iframe. I my case i am having a variety of
information which i cann't put in one table.

the other way which i think is like making the object of a bean and
pass that object to the JSP. but i never did that so i don't know how
to do that.

can you guys suggest me the way to implemant this functionality.

Thanks
Tarun Garg

.



Relevant Pages

  • Re: Creating 2 D arraylist
    ... If I use EL to display the arraylist in JSP, ... Your strategy seems to be to layout the table column by column and row by row in your data structure. ... Another strategy is to use a JSP layout that maps value object attributes to columns of the table. ... An EL, really we mean a JSTL, works best with a list where each column maps to an attribute of a value object, where the row represents the public interface of the object, rather than a 2-D list. ...
    (comp.lang.java.programmer)
  • Re: onclick of row of table the value should be in textbox in jsp
    ... row should be displayed in the textbox on second page in jsp. ... The table consists of records from database. ... and then display in table? ...
    (comp.lang.java.programmer)
  • Re: IE displaying syntax instead of parsed page layout
    ... have xhtml page which, ... The JSP which generated this page also generates it as readonly (no input ... this DOES display OK on IE.. ... evidently the way to go (searched for examples on removing frames and css). ...
    (alt.html)
  • Re: Question about Struts tag
    ... > // forward to JSP for display ... I want to iterate over and display the Foo objects and ... 'Foo' class has a good 'toString' method. ...
    (comp.lang.java.programmer)
  • Re: how to convert jsp data to excel??
    ... feching the data from the database.all is working good ... but i want to include on button on jsp page and after ... clicking that button that jsp page genrate excel sheet ... and excel sheet display the data in the same sequence ...
    (comp.lang.java.programmer)