This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp page give null value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp page give null value " Watch "jsp page give null value " New topic
Author

jsp page give null value

tulshiram kamble
Greenhorn

Joined: Apr 21, 2012
Posts: 7
Hi
i m new comer jsp,so i m doing programme on jsp it run successfully but it give me null value
please help me find out solution
tulshiram kamble
Greenhorn

Joined: Apr 21, 2012
Posts: 7
this is my jsp page

<%=request.getParameter("holder_id") %>
<!--<jsp:useBean id="valid" class="com.seedinfo.POJO.beans.LoginBean"></jsp:useBean>
<jsp:setProperty name="valid" property="holder_id" value='<%= request.getParameter("holder_id")%>' />
<font face="verdana" size="2">Welcome,</font><%= valid.getHolder_id()%>

--><br>
tulshiram kamble
Greenhorn

Joined: Apr 21, 2012
Posts: 7
this is my bean file



public class LoginBean
{
private String holder_id;
private String holder_password;

public String getHolder_id() {
return holder_id;
}
public void setHolder_id(String holder_id) {
this.holder_id = holder_id;
}
public String getHolder_password() {
return holder_password;
}
public void setHolder_password(String holder_password) {
this.holder_password = holder_password;
}

}
tulshiram kamble
Greenhorn

Joined: Apr 21, 2012
Posts: 7
this is my html page

<form action="http://localhost:8080/book_Store/LoginControl.do" method="get">
<h2 align="center"><font face="verdana" color="skyblue"><u>Universal Book Store</u></font></h2>
<hr>
<table>
<tr>
<td>
<table>
<tr>
<td><a ></a>
<td width="38" class="img-cutter"><img src="C:\Users\babiya\Downloads\book1.jpg"></td>
<td>
<table>
<tr>
<td><font face="verdana" color="skyblue"><h3>Member Login</h3></font><br>
<h4><b>UserID:</b></h4><input type="text" size="15" Name="holder_id"><br>
<h4><b>Password:</b></h4><input type="password" size="15" Name="holder_password"><br><br>
<input type="submit" value="Submit" >
</td>

</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp page give null value
 
Similar Threads
passing values from ActionClass to jsp struts 1.1
Problem with Session Scope while using with Java Bean
JSP setProperty without value?
Can someone help me
can't understand examlab downcasting question..