wood burning stoves 2.0*
The moose likes Struts and the fly likes How to create a dynamic jsp using  Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to create a dynamic jsp using  Struts" Watch "How to create a dynamic jsp using  Struts" New topic
Author

How to create a dynamic jsp using Struts

Krishna Attravanam
Greenhorn

Joined: Oct 21, 2004
Posts: 16
Hi i have a requirement of showing up text in JSP using Struts

The six JSP pages which I am designing have exactly same look and feel ... That is all the six JSP Pages have different text going in the same place..Now i decided to have one jsp page which reads different text based on some condition. say for example if user is 1 then i show different text on the jsp... The problem i have is the text is too long and sometimes could be bulleted etc(i.e HTML formatted)

Is it advisable to store this info in the ApplicationResources.Properties.

Is there any workaround ??

Let me know
Thanks
Krishna
John Smith
Ranch Hand

Joined: Sep 02, 2004
Posts: 61
Are you familiar with tiles? You could make a tile that lays out the text for each paragraph and simply have a logic:iterate of c:forEach that inserts the tile as many times as necessary.
Krishna Attravanam
Greenhorn

Joined: Oct 21, 2004
Posts: 16
I am not quite familiar with tiles ... but I was wondering where would I be storing the HTML text??? In the tiles or the properties file?

Thanks
Krsih
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a dynamic jsp using Struts