Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html taglib struts

 
pedro costa
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good afternoon in my timezone.

I have a few little doubts regarding the use of this tag library and the actionForm. I want to put a inputText in my page , but this input text will be read only.So i did not put any thing in the actionForm object because this is a readOnly text(just to display data). I put the information in the request scope (request.setAttribute("readOnly","data")). In my jsp i have

<html:form action="action1">
<html:text name="actionForm" property="inputText1"/>
<html:text name="actionForm" property="inputText2"/>
<html:text property="readOnly" readonly="true"/>
<html:form>


This is not working(if i remove the last field everything works fine), so i put the following questions ? Is it possible using <html:text> to access attributes in any scope,regardless the actionForm bean ?The documentation provide us with two properties to define the bean from where we want to retrieve the values (name=name of the bean and property=name of the property inside the bean).But it does not say anything about scopes(requst,scope). So can i use this taglibrary or i have to go by another way ?

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic