Skip to main content



      Home
Home » Newcomers » Newcomers » Do we need to config JSP in web.xml
Do we need to config JSP in web.xml [message #1018730] Thu, 14 March 2013 07:21 Go to next message
Eclipse UserFriend
I have a HTML page......simple one...a form with a input text field and a submit button.
<form action="Login" method="post">

when I submit the form I want my Login.jsp file to be called.

I have not done any configuration in web.xml because as far as i know the jsp file will be automatically converted to a servlet.

But when I am running the application...its giving error like..

type Status report

message /LoginJSPDemo/Login

description The requested resource is not available.


Please help.

Re: Do we need to config JSP in web.xml [message #1018827 is a reply to message #1018730] Thu, 14 March 2013 10:34 Go to previous message
Eclipse UserFriend
On 3/14/2013 7:07 AM, anindya halder wrote:
> I have a HTML page......simple one...a form with a input text field and
> a submit button.
> <form action="Login" method="post">
> when I submit the form I want my Login.jsp file to be called.
>
> I have not done any configuration in web.xml because as far as i know
> the jsp file will be automatically converted to a servlet.
>
> But when I am running the application...its giving error like..
>
> type Status report
>
> message /LoginJSPDemo/Login
>
> description The requested resource is not available.
>
> Please help.

The best way to learn how to do this is to follow a tutorial. There are
more modern frameworks by far and they're pretty challenging to learn,
but if you want to "stay in the past", I would suggest JSF for what
you're talking about (because, it's not just login, but moving on to
another page depending on success or failure of login).

To get started with just JSP, I would suggest this very detailed tutorial.

http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html

Then, I would head on over to http://www.vogella.de and see if there's
anything there that would help you start using light JSF.

Hope this helps.
Previous Topic:C++, Android, Eclipse, a deadline and Russian roulette; plight of a student
Next Topic:View or establish project name in Project Explorer as something other than it is?
Goto Forum:
  


Current Time: Wed Jul 23 11:56:59 EDT 2025

Powered by FUDForum. Page generated in 0.10072 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top