File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes creation of jsp on the fly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "creation of jsp on the fly" Watch "creation of jsp on the fly" New topic
Author

creation of jsp on the fly

Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 78
I have J2EE application where presentation is done in jsps. I need to give user ability to add/delete new fields (check and entry boxes, calls to validaton JavaScript) to the jsp on demand with preservaton of some original design. Besides handeling it thru javabean with bunch of "if" statements, is there another solution that I can use?

Thank you,
Irene


Irene Loos
Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
Originally posted by Irene Loos:
I have J2EE application where presentation is done in jsps. I need to give user ability to add/delete new fields (check and entry boxes, calls to validaton JavaScript) to the jsp on demand with preservaton of some original design. Besides handeling it thru javabean with bunch of "if" statements, is there another solution that I can use?

Thank you,
Irene


Try with Dynamic JavaScript, it might be a solution for your peoblem

Thanks & Regards
Naresh
Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 78
by company architecture we are not allowed to use havy JavaScript. The page could be modified on demand and settings are stored for future use in DB2.

For example page had id check box and entry box (for numeric id), now customer wants to ad also "name" check box and entry box character name with maximum entry length of 20. This will be saved in db and in the future could be used as an entry on the page.

Any advise?
Qussay Najjar
Ranch Hand

Joined: Jan 18, 2008
Posts: 53
JSF has (ValueChangeListener) which is a listener that is notified of value
changes of radio buttons, check boxes, select item,etc...
Anyway that's JSF, according to JSP, I'm thinking of a way..
I'll get back to you in case of updates..

Note: if you know JSF or want to use this way I can provide you with a snippet.


Qussay NAJJAR
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Irene,


Do you present him a list with fields to choose from?

Herman
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: creation of jsp on the fly
 
Similar Threads
View the images as four per row instead of long row that is never ending
write javascript function in java ?
passing Enumeration as an Attribute from servlet to jsp
how to set up a navigaeting tree according to the database records?
open excel file