File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Jsp flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp flow" Watch "Jsp flow" New topic
Author

Jsp flow

Suhita Reddy
Ranch Hand

Joined: Jun 09, 2006
Posts: 60
Hi,

I m learning Jsp now..First i created a login page with userid nd password with name test.jsp

html>
<body>
<form action="Test1.jsp" method="post">
User ID :
<input type="text" name="name"><br><br>
Password :
<input type="password" name="password"><br><br>
<input type="submit" name="submit">
</form>
</body>
</html>

and i created another program with test1.jsp


<html>
<body>
<form action="Test2.jsp" method="post">

<%

String sname=request.getParameter("name");
String spassword=request.getParameter("password");
%>

UserName : <%= sname %><br><br>
Password : <%= spassword %><br><br>


Enter Your Name :
<input type="text" name="rname"><br><br>
Enter Your Age :
<input type="text" name="age"><br><br>
Enter Your Sex :
<input type="radio" name="sex" value="male">Male
<input type="radio" name="sex" value="Female">Female
<br><br>
<input type="submit"name="add">
</form>
</body>
</html>


and i created another pgm with Test2.jsp

<html>
<frameset rows="25%,75%">

<frame src="Test.jsp">
<frame src="Test1.jsp">
</frameset>
</html>


My aim is when enter username and password in first pgm it will directly go to second page and the tesi.jsp asks some more information and it will directly goes to test2.jsp.In test2 .jsp the userid and passwd are displayed in form and remaing details are displayed in another frame.I m trying using this code.But i didn't get o/p.Can anyone solve my pblm?

Thanks
Suhita
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

But i didn't get o/p


"o/p"? Olives and peppers?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp flow
 
Similar Threads
Browser back button
problem in database
code attached element existance in javascript
form in multilingual
would u like to open the file or save it to your system