*
The moose likes Servlets and the fly likes Passing Parameters to JSP page from HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing Parameters to JSP page from HTML page" Watch "Passing Parameters to JSP page from HTML page" New topic
Author

Passing Parameters to JSP page from HTML page

prasad Chandrasekaran Iyer
Greenhorn

Joined: Jan 14, 2004
Posts: 18
Hi anybody can help me to solve this problem.
i am getting an error page when i pass parameters to jsp page from html page.
this is my HTML page and i am giving my name here
<html>
<head>
<title>Jsp page</title>
<body>
hello how r u
<form ACTION="abc1.jsp" METHOD="GET" >
if you don't mind me asking what is ur name
<input type=text name="name"><p>
<input type=submit>
</form>
</body>
</head>
</html>
This is my JSP page, and i am passing parameters to this page.
And i mentioned HTML and JSP pages in PUBLIC_HTML directory in weblogic server.
i configured weblogic server with jsp page settings, i started the weblogic server, and i given url like this
http://localhost:7001/abc.html
and i am getting the second page like this with an error page.
http://localhost:7001/abc1.jsp?name=prasad

<html>
<head>
<title> first jsp page</title>
<body>
<h1>
<% if(request.getParameter("name")==null){
out.println("hello world");
}
else{
out.println("hello, "+ request.getParmater("name"));
}
%>
</h1>
</body>
</html>

can anybody help me out with this problem
prasad
Joe Paolangeli
Ranch Hand

Joined: Apr 05, 2000
Posts: 73
Please see http://www.javaranch.com/ubb/Forum7/HTML/000422.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Parameters to JSP page from HTML page
 
Similar Threads
passing parameters to jsp page
Servlet Invocation
how to set up weblogic for servlet
Servlet getParameter
new, need help!!!