Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP

 
chandra sekhar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
}
}
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic