Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

need help on forward tag......

Thread view: 
nagendraprasad.kr@gmail.com - 01 Jun 2006 16:50 GMT
hello
Im new to jsp and i am encountring this problem.....
im designing a login page....now if the login password and password are
entered and then once the user clicks submit.....the validate.jsp page
is called which validates the user entry...is its valid ill forward to
the welcome.jsp page......else back to the login page......now in the
address bar after i forward.....i can see validate.jsp only instead of
login.jsp or welcome .....how can i solve this........or is my
approcach of creating a validate.jsp to validate user entry is
wrong???? plz help
thanks in advance....
Philipp Leitner - 01 Jun 2006 17:05 GMT
> hello
> Im new to jsp and i am encountring this problem.....
[quoted text clipped - 7 lines]
> wrong???? plz help
> thanks in advance....

why are you validating your login data on a JSP page? Use a simple
servlet (since there is actually nothing to display, and JSP comes only
in handy when you want to produce HTML).

A good approach is to use the MVC (Model - View - Controller,
http://en.wikipedia.org/wiki/Model-view-controller) pattern. Then you
would use JSP for the view (display), servlets for the controller and
some backend database or bean logic for the model.

/philipp
aostrik@gmail.com - 01 Jun 2006 17:07 GMT
Could you show us the jsp code?

> hello
> Im new to jsp and i am encountring this problem.....
[quoted text clipped - 7 lines]
> wrong???? plz help
> thanks in advance....
raavi - 02 Jun 2006 05:28 GMT
Hi
 actually there is no need of this validate.jsp.validate using a
servlet which must be set as the action of the form.whatever path u r
following is displayed on the address bar.so nothing to be done with
address bar too.
hope u got this.
> hello
> Im new to jsp and i am encountring this problem.....
[quoted text clipped - 7 lines]
> wrong???? plz help
> thanks in advance....


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.