Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:21 Go to next message
anindya halder is currently offline anindya halderFriend
Messages: 1
Registered: March 2013
Junior Member
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 14:34 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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: Tue Apr 16 13:03:28 GMT 2024

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

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

Back to the top