Hi, I am not sure about yours, normally you should forward to a jsp page or
in your case, a "defined" servlet name : CreareRssServlet which i think should be incorporated in your web.xml UNLESS you have web framework in your system. bpassion 2011/2/9 Rafał Laczek <rafal_lac...@wp.pl> > Hi, > > > > So far I was working in Wicket and JSP and servlets are not my stron side > :) > > I have index.jsp and also CreareRssServlet. > > Index is a welcome page. Here the user will log-ing. > > When the project is opened the address in browser is: > > http://localhost:8080/RssProject > > > > Now I need to be redirected to CreateRSSServlet when the user will be > logged. > > Therefore in browser address I must get following address: > > http://localhost:8080/RssProject/CreateRssServlet > > > > Below is my code. > > String user = "admin"; > > String pass = "admin"; > > String username = request.getParameter("username"); > > String password = request.getParameter("password"); > > *if*(username == *null* && password == *null*){ > > } > > *else* *if* ( username.equalsIgnoreCase(user) && > password.equalsIgnoreCase(pass) ){ > > %> > > <jsp:forward page=*"CreateRssServlet"*/> > > <%}*else*{%> > > > > > > I look the solution in internet but I have a problem with it. > > > > Thanks > > Rafal > > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en