This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.