Your referring to a bean of name "indexPage" but the only thing in the code
you've shown named indexPage is a forward. This will not create a bean named
"indexPage" - try setting up an ActionForm and doing something along the
follwoing lines:
<logic:equal name="myForm" property="action" scope="request"
value="Display">
<html:text property="server" size="16" maxlength="16"/>
</logic:equal>
.xml
<form-beans>
<form-bean name="myForm" type="com.xxxx.MyForm"/>
</form-beans>
<action path="/indexPage" form="myForm"
type="com.niku.cm.IndexPageAction"
<forward name="success" path="/index.jsp"/>
<forward name="failure" path="/nodata.jsp"/>
</action>
-----Original Message-----
From: Rama Krishna [mailto:[EMAIL PROTECTED]]
Sent: 27 June 2001 20:07
To: [EMAIL PROTECTED]
Subject: No Bean found under attribute key
Hi all,
I am new to struts and i created a simple jsp and all along with proper
modifications to struts-config.xml and when i try to run my jsp i get the
above exception.
Can anyone tell me what could be the cause???
here is my code
.jsp
<logic:equal name="indexPage" property="action" scope="request"
value="Display">
<html:text property="server" size="16" maxlength="16"/>
</logic:equal>
.xml
<action path="/indexPage"
type="com.niku.cm.IndexPageAction"
<forward name="success" path="/index.jsp"/>
<forward name="failure" path="/nodata.jsp"/>
</action>
thanks,
rama