aspose file tools*
The moose likes XML and Related Technologies and the fly likes Data from bean to xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Data from bean to xml" Watch "Data from bean to xml" New topic
Author

Data from bean to xml

Aravindan Ramanujam
Greenhorn

Joined: Aug 27, 2004
Posts: 10
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

Joined: Aug 27, 2004
Posts: 10
I found this Solution. Hope this might be the answer for my question.

- Aravindan -
[ September 22, 2004: Message edited by: Aravindan Ramanujam ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data from bean to xml
 
Similar Threads
Formatting Dates returned from SQL queries
send xml via bean to JSP
How to iterate result in AJAX
How to handle this kind of XML
Struts 2: How do you display currency in a textfield?