• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Jsp flow

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But i didn't get o/p



"o/p"? Olives and peppers?
 
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic