• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

creation of jsp on the fly

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Irene,


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

Herman
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic