Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Completely dynamic page to generate with JSP...how????

 
Mishra Anshu
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!!
I am using JSP Model 2 arch...
In my project.....I'll be getting through my bean some of the (say ) Log data....or changing datas...
It is being sent to my JSP as Hash table (As DataType, Data....)..where
DataType may be (checkbox, textarea,text...etc...) and the "Data" contains the data associated with them.....
So, I need to extract in my JSP code all the types one by one and there corressponding data also....and show accordingly...
What I've thought...is like..
 
Anil Kumar
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the data being sent through the beans is supposed to be displayed as a form. You should iterate through the TreeMap and display the data in a formatted fashion using scriptlets and html tags.
 
Mishra Anshu
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is what I've shown above.....
I am iterating only....through the enum and obviously since everything under the <body> is made by JSP...it will also make a form there....
What I was looking for...that any available code or link to that type of situation is there or not....
Thanks any way ...Anil....
Suggestions and solutions are welcome.....
 
Mishra Anshu
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey....
Is it the first problem of this type in the forum.....
Any idea?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic