GeeCON Prague 2014*
The moose likes JSP and the fly likes call from jsp to servlet using netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "call from jsp to servlet using netbeans" Watch "call from jsp to servlet using netbeans" New topic
Author

call from jsp to servlet using netbeans

jiten parmar
Greenhorn

Joined: May 29, 2012
Posts: 3
i have tried a lot to call jsp to servlet through the netbeans bt it gets the error that 404 error

so please tell me how to solve this error and if any give the step by step procedure for call to jsp to servlet then most welcome...


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

jiten parmar wrote:i have tried a lot to call jsp to servlet through the netbeans

What does netbeans have to do with it? Netbeans is just an IDE. You write the code the same way regardless of what you are using to edit it. You're not going to have netbeans around when you deploy so stop thinking of it as a platform, and just think of it as an editor.

so please tell me how to solve this error

Impossible with the lack of information you've given us. Please post the code -- UseCodeTags to preserve the formatting -- in the JSP that you are using to "call" the servlet. Also post your deployment descriptor.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jiten parmar
Greenhorn

Joined: May 29, 2012
Posts: 3
sorry for the mistake that i have written.....

but i am using the netbeans editor for calling the jsp to servlet... i have no idea how to call a jsp to servlet so please help me if you have any example or tutorial......
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

Again, Netbeans is an editor. It has nothing at all to do with how you write the code. You might as well be telling us what color the walls in your room are.

If you are not going to follow my instructions regarding what to show us, we can't help you.
jiten parmar
Greenhorn

Joined: May 29, 2012
Posts: 3
ok now i m very very sorry for the things that i have written.
please give me an example or any tutorial that shows the jsp to servlet calling...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

Bear Bibeault wrote:If you are not going to follow my instructions regarding what to show us, we can't help you.
M Joraid
Greenhorn

Joined: Apr 13, 2012
Posts: 2
So what are your trying to do exactly is to make a jsp file that print html on user's browser and when user fill in a form for example you want to save in database using servlet ?
simple scenario:
1- html page has a log in form, basically called index.jsp
2- send the form value to a servlet file to check username and password from database
3- return validation to index.jsp file

is this what are you looking for ? because this is what i am trying to do at the moment and i don't know how :D
 
GeeCON Prague 2014
 
subject: call from jsp to servlet using netbeans