|
| ||||||||||
| Tags: java, jsp, programming language, scripting language, servlets |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Call another jsp page
I am a beginner in this field. I created a JSP with NetBeans with buttons and want to know how to click on a button, call another JSP page. I have tried it, but I am not getting the desired output, so can you guys please help me. An example will be appreciated. Thank you. Last edited by Miles Runner : 12-01-2010 at 09:09 AM. |
|
#2
| ||||
| ||||
| Re: Call another jsp page
Hi, Quote:
Code: onclick ="document.location.href = 'test.jsp' |
|
#3
| |||
| |||
| Re: Call another jsp page
Hello Quote:
|
|
#4
| |||
| |||
| Re: Call another jsp page
Hey guys Even i have an similar kind of a problem. I'll explain what I do to develop a web application: 1) I created an index.jsp page with buttons for the main menu of my application. 2) From this interface and clicking a button, it should redirect me to another jsp page which also contains buttons CRUD (add, edit and delete). 3) By clicking for example on the Add button, I redirect to a servlet which should normally contain text fields for entering information. 4) By clicking on the Send button, there must access the DB to record in the table (I have DAO classes to handle CRUD operations). Is what I am in the right direction?. Call the servlet is the same principle that since it is a JSP file in Java. Help me please. |
|
#5
| ||||
| ||||
| Re: Call another jsp page
Hi Quote:
__________________ Grand Theft Auto 4 PC Video Game |
|
#6
| ||||
| ||||
| Re: Call another jsp page
Hi Totally agree, if you want your web application more organized you should apply the MVC pattern, this way you will be less lost between all the different files. For example entering your form should be in a jsp page that it returns the results to a servlet that performs the desired processing and returns the results to a JSP page for display.
__________________ The FIFA Manager 2009 PC Game |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Call another jsp page" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Call entry stuck in Nokia C3-00 call log and stopped call logging | Elijah*Blue | Portable Devices | 14 | 09-04-2012 02:49 PM |
| IE 9 is displaying blank page and showing links as mouse hovered on the page | Chitti's | Technology & Internet | 10 | 03-12-2011 09:31 AM |
| How can I get speed dial page as default page in Google Chrome v13 ? | Shurod | Technology & Internet | 6 | 12-09-2011 10:47 PM |
| Getting “Page cannot be displayed” error message while loading page on Internet Explorer 9 | Nabhan | Technology & Internet | 9 | 26-08-2011 11:44 AM |
| Slow startup in IE9 - got blank page before it continues to home page | Dalapathi | Technology & Internet | 3 | 17-02-2011 07:00 PM |