This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 -
Joined: Aug 27, 2004
I found this Solution. Hope this might be the answer for my question.