Hi Rupesh,

If you are talking about interactive tables, like the ones you have in
Swing, then JSP is not the way to go. JSP is server side technology and
you are trying to get client side functionality so...
You can get, as someone pointed out, almost everything that you want
except sorting, but that's not a JSP issue, it's an HTML one as the
result of a JSP page looks to the client as a normal HTML page.
The overall approach that works for me is:
.- Design what you want to get in HTML first, because that's what your
clients will see(and their browsers too).
.- Then try to get the same thing from a JSP page. One of the nice
points of JSP, along with any other embedded-HTML technique, is that you
can use the HTML page produced in the first step and just modify the
parts that are dynamic. Of course, afterwards you decide that you want
authentication, templates... and you end up adding more things to the
JSP page, but that's another issue ;).

To answer your question in short, JSP works in the server side, your
browser is the client side so JSP code cannot do things like sorting
tables in the client side. You might try to do that with client side
scripting languages(Javascript, VBscript...) but then you are rising
client requirements so...

I hope this helps,
Dan

PD: Oh, I just thought that you might be able to "fake" the same
behaviour by creating a link in each cell of your table's headers row
with a parameter to tell the JSP page which ordering you want. Of course
you'll be making a new request to the JSP page each time you want to
change the order, but that indeed is server side programming and thus it
can be coded with JSP without rising client side requirements.
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
-------------------------------------------

> Rupesh Choubey wrote:
>
> What would be the (best) way to implement a complex table using JSPs.
> By a complex table, I mean one where :
>
>    * one of the columns is a button
>    * one of the columns is a checkbox
>    * different columns have different display properties (different
>      text fonts, sizes, etc.)
>    * rows have different properties - e.g. alternate rows have
>      different colors, rows might have different colors based on
>      values in columns,
>    * SORTING needs to be done by clicking column headers
>
> THESE and other similar requirements make the entire JSP task a bit of
> a challenge.......
>
> Does anyone have ideas / code / lessons learned ??? Appreciate all
> help. This is a big hurdle we are trying to overcome and help would be
> greatly appreciated.....
>
> Thank you,
> Rupesh.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to