This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic


chandra sekhar

Joined: Apr 21, 2000
Posts: 13
We are unable to execute Jsp file with UseBean tag in JRun server There is no sytanx problem.Where should we place our bean class under JRun subdirectory.Iam sending the code

<title>Bean String Example</title>
<UseBean name="mybean" scope="application" type="Beans.MyBean" ></UseBean>
<%String s="chandu"; %>
<% String s1;%>
<% mybean.setName(s); %>
<%s1= mybean.getName(); %>
The name is <%=s1%>
bean code
package Beans;
public class MyBean
String strName;

public void setName(String s)
strName=new String(s);
public String getName()
return strName;

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
JRun has got one of the most confusing complex of directories I have ever seen. The next version is supposed to simplify things - I hope it will go entirely to the recommended J2EE configuration.
I think what you want is the /JRun/jsm-default/classes directory for Bean classes.
I agree. Here's the link:
subject: JSP
jQuery in Action, 3rd edition