This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Suggest the Directory location in JSP program  RSS feed

 
Sandeepesh shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dear Friends,
I am creating a JSP Program using bean Class to set the name, lastname & address of an emplyee.
But I am getting Confused to Put the bean folder , So please tell me the exact location of bean folder as I used in my program like bean.Employees.





<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
<body>
<h1>Get Value from bean</h1>
<jsp:useBean id="emp" class="bean.Employees" scope="page" />

<jsp:setProperty name="emp" property="firstName" value="Komal Singh"/>
<jsp:setProperty name="emp" property="lastName" value="Choudhary"/>
<jsp:setProperty name="emp" property="adddress" value="Delhi"/>

<table>
<tr>
<td>First Name</td>
<td> : </td>
<td> <jsp:getProperty name="emp" property="firstName"/> </td>
</tr>
<tr>
<td>Last Name</td>
<td> : </td>
<td> <jsp:getProperty name="emp" property="lastName"/> </td>
</tr>
<tr>
<td>Address</td>
<td> : </td>
<td> <jsp:getProperty name="emp" property="address"/> </td>
</tr>
</table>

</body>
</html>

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Also, please UseCodeTags.
 
Sandeepesh shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's , I will use the Code Tag from next time.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandeepesh shah wrote:Thank's , I will use the Code Tag from next time.


Why not start with this one? Just go back to your original post and press the Edit button and fix it. That way when others look at this post (perhaps with a question similar to yours) it will be easier for them to read.

Thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!