This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
JSP can be used as a controller in the architecture but you shouldnt do that unless you are forced to. You can use the <jsp:forward> standard action to control the flow. The JSP is the view and should care only about presenting the data to the user. What does this have to do with struts though ?
It can I suppose, but it shouldn't. JSP is a templating technology for generating HTML web pages. It's not well suited for processing. Servlets are much better suited for processing.
Use the right tool for the job. A hammer makes a poor screwdriver.
Originally posted by John Meyers: but you shouldnt do that unless you are forced to
I have visions of some wild-eyed and misdirected CTO standing over the staff with a shotgun forcing them to use JSPs for something for which they are a poor choice. "The first person that writes a servlet gets it!"
I have visions of some wild-eyed and misdirected CTO standing over the staff with a shotgun forcing them to use JSPs for something for which they are a poor choice. "The first person that writes a servlet gets it!"