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

Reply via email to