• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URGENT:Tiles giving bean not defined

 
Sriram Chandrasekaran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am using struts with tiles. My form element is in a tile

and is as follows:

<form action="/Login.do" method="POST">

<html:text property="username"/>


..
</form>

This gives error at the server saying the BEAN was not found...i thought it shud be able to use the form's bean.

However if i explicitly specify

<html:text name="loginForm: property="username"/> it is able to find the bean!

the struts action mappingg is as follows:
<action
path="/Login.do"
type="com.anthem.pwdexpire.actions.LoginAction"
name="loginForm"
scope="request"
validate="false">

<forward name="nextview" path=".login.layout"/>
</action>

thanks in advance!
-Sri
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use <html:text you must either specify name (as you did) OR change the <form to <html:form action="Login.do">

This because Struts wants to prepopulate the html:text and needs an ActionForm for it.
 
Sriram Chandrasekaran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it thanks a lot!

-sri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic