Mufaddal Khumri wrote:
Adding a return does not work.

Well, it was worth a try. Sorry it didn't work out. My own approach (modeled after the conventional wisdom tossed about on this list and in some tutorials I have read) is to refrain from using decision logic in JSPs wherever possible. Some people call it the "MVC" approach, I typically have a servlet as the target resource of all HTTP requests, which does the decision making and then calls dispatcher.forward() on a JSP to generate the HTML to send to the browser.


I have not had any problem calling sendRedirect from a servlet.

If I absolutely must have conditional logic in the JSP I try to put it into a custom tag.


Erik



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to