Andrew, I am trying to follow up on the thread about sending Data to a JSP. You suggested that the best way was to keep the data in a servlet. thus getting a sepration of data from the presentation layer. If get my data to Servlet what are some options available to parse it to the JSP for display in a web page. Do I use an XML parser and ask the JSP to read the XML file or should I convert the XML file into a web page? Any suggetsions or ideas are welcome. Thanks Jawahar
Originally posted by Jawahar Rajan: Andrew, I am trying to follow up on the thread about sending Data to a JSP. You suggested that the best way was to keep the data in a servlet. thus getting a sepration of data from the presentation layer. If get my data to Servlet what are some options available to parse it to the JSP for display in a web page. Do I use an XML parser and ask the JSP to read the XML file or should I convert the XML file into a web page? Any suggetsions or ideas are welcome. Thanks Jawahar
What I was suggesting was that you use a controller servlet to delegate your business logic to a separate action class. Your action class would then store the data inside of a JavaBean. The controller servlet would add the JavaBean to the request attributes and forward the user to the JSP page. The JSP page would then access the data using the JavaBean's get() methods. Andrew
Andrew Patzer<br /> <br />Author of: <br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/1590590201/ref=ase_electricporkchop/103-9402848-9855031" target="_blank" rel="nofollow">JSP Examples and Best Practices</a><br /> <br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1590594118/qid=1109107718/sr=1-7/ref=sr_1_7/104-5148852-3564711?v=glance&s=books" target="_blank" rel="nofollow">Foundations of JSP Design Patterns</a>