One thing that you have to remember is that when you're working with Servlets, JSPs, or any other type of dynamic web page generation you're still generating a web page. This is strictly static HTML in the end. If you want to do any dynamic content of any kind on the user side you're going to have to use an alternative method for the final output such as adding JavaScript, using applets, flash or shockwave, or whatever.
As far as I know unless you are using an applet or application (or equivalent) you cannot throw events when users make changes such as add/delete columns. You can probably 'fake' this in JavaScript but otherwise, Yes, you will have to reload the page everytime. My suggestion would be to go to some sort of a dynamic output such as an applet or asp or whatever. If you can't, well then you're going to have to be creative. Have your JSP run through a loop that adds text boxes in tables or something already filled in with the values. the user can change whatever they want. With JavaScript you can probably 'hide' rows or columns that are deleted but to add new ones I think you have to have them already in the page or reload. I'm not sure. Hope this helps you get a little farther. Matt Quoting Ali Chadorbaf <[EMAIL PROTECTED]>: > Hi, > > I�d like to have the Grid/Spread sheet capability in > JSP pages. Would appreciate to share me your > experience on this and also if you know any other tool > implemented this functionality. > > Meanwhile in my primary mind for this, I am thinking > to create a Form(included input tags) in one line for > a Grid's record. then put it in a loop for all other > Grid's records, and put all these codes in one .jsp > page (let�s say Grid.jsp).The grid should be > updateable in all rows and have the insert/delete row > capability. Then this page can be included <%@ > include�%> in other pages. > How is the idea so far? > > To implement this idea I have following question: > > 1-Can Grid.jsp be multi-usable? For example consider a > page with one-master & two details. Can I include > Grid.jsp in two frames in the page as two details? So > finally I will have a page with one-master at the top > and two fames at the bottom. Each frame �src� is > pointed to Grid.jsp > > 2-If the answer to the above question is yes, then How > can I pass a RowSet or ResultSet to this Grid.jsp. So > the columns header and data can be accessed in the > Grid.jsp dynamically? > > 3-Do I have to reload the Grip.jsp whenever want to > make Insert/Delete a row. > > 4-Event handling like leaved row or leaved column, can > be possible on Grid.jsp. > > Please advice. > > > __________________________________________________ > Do You Yahoo!? > Find a job, post your resume. > http://careers.yahoo.com > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
