• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URGENT:Tiles giving bean not defined

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it thanks a lot!

-sri
 
reply
    Bookmark Topic Watch Topic
  • New Topic