This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data from bean to xml

 
Aravindan Ramanujam
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've a requirement that my view part of the application should be either a jsp or an xml based on some conditions. I'm not sure how to implement this. What I've tried is having 2 different jsps with same information, 1 in jsp format and the other in xml format. Based on the condition, I'm redirecting the control to either one of them. I'm using scriptlet tags to populate the dynamic values from the bean. I know this is not the right way to do this, but its working as of now.

I want to know
o Is there any better way to do this?
o How to send data from the bean to an xml?

I dont know if this is the right place to post this question. If it is not, sorry for the inconvenience and please redirect it to the right place.

Thanks for your help.

- Aravindan -
 
Aravindan Ramanujam
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this Solution. Hope this might be the answer for my question.

- Aravindan -
[ September 22, 2004: Message edited by: Aravindan Ramanujam ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic