Hi Rafal,

If that the case, i think you should consider taking the JAVA online class

conducted by Sang Shin. Thats what i can think of


bpassion

2011/2/10 Rafał Laczek <rafal_lac...@wp.pl>

> Hi,
>
>
>
> Yes. I think that it should be done also in web.xml but I don't know
> exactly how.
>
>
>
> Regards,
>
> Rafal
>
>
>
> Dnia 10-02-2011 o godz. 4:14 bambang passion napisał(a):
>
> 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

Reply via email to