RE: Best Practice for Reuse of JSPs for Display and Input?

2004-01-23 Thread Kevin Hooke
I am also looking for similar functionality. Does anyone know if there are any existing Struts Custom Tag extensions with this functionality (otherwise I will probably be implementing my own). Ideally I am looking for replacement versions of the html:... custom tags that will be aware of a

RE: Best Practice for Reuse of JSPs for Display and Input?

2004-01-12 Thread Hooper, Brian
I'm not sure if this is a best practice or not, but I like to just display the text if I want a text input box to be disabled. Something like this: logic:equal property=fooDisabled value=true bean:write property=foo /html:hidden property=foo / /logic:equal logic:equal

RE: Best Practice for Reuse of JSPs for Display and Input?

2004-01-12 Thread Shishir K. Singh
I assume that you have a bean that stores all the relevant data and you read the bean to render the jsp. If so, I generally a flag attribute (display only) to the bean that I can set up in my action. In the jsp, if the flag is on, I just render it as a simple text else Would that work for