File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a dynamic jsp using Struts

 
Krishna Attravanam
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic