921981 wrote:Not like that. The <jsp:forward> tag cannot be put inside scriptlet like that. I should be mixed with HTML code.
So what I want to do is that if there is a post request which mean the user click the submit button than redirect the post request to LoginServ Servlet and this servlet will proceed the post request that the user make, so does this code will do the job right exactly as if there is action=LoginServ ? and for the slash is it mandatory ?The slash is not mandatory. if specified, the path is relative to the web application's root. Otherwise, the path is relative to the current page.
<jsp:forward page="/LoginServ"/> OR <jsp:forward page="LoginServ"/>