Pratima -- it sounds like you are trying to use a JSP page to write data into the session from someplace other than the form. You probably want to put this code someplace else -- like in an Action (or delegate). It is hard for me to guess without more specific information.

Gogineni, Pratima wrote:
We have bean:write tags that read bean properties and output to the jsp
page.
I am wondering why we are always forced to set bean properties through one
of the form tags.

In many cases where there are a lot of common properites to be set it is
easier to set the bulk of the bean properties through bean tags & only
expose the necessary fields through the html form. This also helps in
cleaner pages where you want to do redirects through a hidden page which
sets values into beans in the session.

I saw the jstl c:set tag but that is not as powerful as the struts bean tags
in terms of dealing with indexed properties. So I have had to write a custom
tag for this. It seems fairly straight forward to do this & hence I am
wondering why the standard struts tag library doesnt contain this.  Im
wondering if this violates some design principle in struts.

Pratima


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to