This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic
Author

JSP

chandra sekhar
Greenhorn

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

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

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

chandu
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
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: http://aspose.com/file-tools
 
subject: JSP