Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why page not display

 
Kia Phia Ben
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have two jsp page.
first page: login.jsp.

<html>
<head><title>Simple jsp page</title></head>
<body>Place your content here
<form action="https://localhost:7001/MyWebApp/get.jsp" method="post">
<input type="text" name="username">
<input type="password" name="passwd">
<input type="submit" value="OK">
</form>
</body>
</html>

and second page: get.jsp
<html>
<head><title>Simple jsp page</title></head>
<body>
<%
String username = request.getParameter("username");
String passwd = request.getParameter("passwd");
%>
<%=username%>
<%=passwd%>
</body>
</html>

Every tell me why the get.jsp not dispay after I input username,password and
click button Ok in login.jsp.
Thank for help me.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the error you are getting?
 
Shyam Kasthala
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In the action tag of login.jsp, u have given "https" instead of http.Bye
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In the action tag of login.jsp, u have given "https" instead of http.Bye


To use HTTPS you got to make certain changes in the container. Search this forum and servlet forum with "https". You will get appropriate links.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic