Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Suggest the Directory location in JSP program

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>

 
Sheriff
Posts: 67750
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


Also, please UseCodeTags.
 
Sandeepesh shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank's , I will use the Code Tag from next time.
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
reply
    Bookmark Topic Watch Topic
  • New Topic