----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I get the error:
It doesnt make sense.. this type of code has definately worked for me in
WebSphere and WebLogic. Also does anyone us jserv in a production
enviroment?
ResourceBean: method getMode()Ljava/lang/String; not found
at jsp__intranet__playlist__resitem_2ejsp._jspService(Compiled Code)
at org.gjt.jsp.HttpJspPageImpl.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.gjt.jsp.JspServlet$Page.process(Compiled Code)
at org.gjt.jsp.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
beancode:
public class ResourceBean{
ResourceItem ri;
public String mode="nothing";
public void setMode(String mode){
this.mode=mode;
}
public String getMode(){
return "TESTING";
}
JSPCODE:
<jsp:useBean id="ribean" class="com.actv.thebox.ResourceBean" />
<%
String mode=request.getParameter("mode");
ResourceBean ri=new ResourceBean();
%>
<HTML>
<HEAD>
<TITLE>ACTV Intranet </TITLE>
</HEAD>
<BODY BGCOLOR="#330099" TEXT="#00FF00" LINK="#00FFFF" ALINK="#00FF00"
VLINK="#FFFF00">
<%ribean.setMode("---"); %>
<%= ribean.getMode() %>
<% if(mode.equals("new")){%>
<input type=hidden name=mode value=create>
<TR>
<TD align=center><FONT size=+2>Complete the following feilds to creste a
new Resource Item</FONT></TD>
<TD></TD>
</TR>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]