Hi,

>We use that because that's what we want ;). I mean, that the browser
>doesn't reflect the forwarded URL is not a strange side effect, it's
>exactly what we want because the user doesn't have to care about the
>exact jsp page that we use to construct the UI. The user should never
>call the JSP's direcly so why tempt them by showing them the path. And
>reason why is not updated and it's faster than redirect is because
>redirect tells THE BROWSER to call the new page, so the browser knows
>what the new URL is and has to call it itself. With forward, it's the
>CONTAINER that performs the "new call" so the browser thinks that the
>result comes from the URL he called, not from a new one.

Yeah..I would see it this way too..except that most of our pages are not
dynamic..they are static, and thus do I code EVERY link with a FORWARD, or
do I just <a href..> them. Our footer and header links all call JSP pages. I
am using Model 1/1.5 approach, but if I were using the Model 2, would I
STILL make ALL links, even those to static pages, go through a servlet? That
seems odd. All <a href..> for every link in every page would call a servlet,
instead of just linking to the page. Seems that would decrease performance a
little bit, in that it would require some logic code to figure out what link
to go to..even if it is just a "request" parameter.

>You're rigth about the performance enhancement but I see no reason why
>this would make netscape send the same form twice. It's never happened
>to me and I always use forward and netscape so... could this be a
>strange side effect of some JavaScript that you have in this pages, and
>that is just "works" with Netscape and not with MSIE?

Interesting. I do form validation with javascript. All my submits are done
with:
<form onsubmit="return submitform(0)">. Is it possible the <input
type="submit"...> SUBMITS the form as well as in my javascript routine I
submit it? I wonder if thats the problem. Funny thing is, this has been
occurring for some time on our site, even before my javascript was in there.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to