You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco)" <pi...@cisco.com> on 2006/11/09 18:41:18 UTC
Input and results on the same JSP
Hi,
I am trying to display entry and results on the same screen. The idea is
like this. I have a textarea where some values can be entered. On
submitting this data, the same form refreshes displaying the data in a
table. Can this be done? I create a bean with the values entered in
textarea and use it to iterate and create table. Any pointers out there
for this use case? Would appreciate any help.
Thanks
Prakash
Re: Input and results on the same JSP
Posted by Angelo zerr <an...@gmail.com>.
Hi Prakash,
If you can display the value of the textarea at readonly, you can use
FormView.
This taglib is enable to manage state in your JSP for your form HTML
elements.
Eg : generate <textarea value="INPUT_VALUE" ></textarea> (at READ-WRITE
state)
and INPUT_VALUE (at READ_ONLY state). You manage state into action.
If you are interested you can found FormView at
http://formview.sourceforge.net/
Regards Angelo
2006/11/9, Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) <
pinugant@cisco.com>:
>
> Hi,
>
> I am trying to display entry and results on the same screen. The idea is
> like this. I have a textarea where some values can be entered. On
> submitting this data, the same form refreshes displaying the data in a
> table. Can this be done? I create a bean with the values entered in
> textarea and use it to iterate and create table. Any pointers out there
> for this use case? Would appreciate any help.
>
> Thanks
> Prakash
>
>
>
Re: Input and results on the same JSP
Posted by Jeremiah Johnson <jo...@egr.msu.edu>.
A table of form elements mapped to the same property as other items on
the form may be a problem (even if disabled). Other then that I can't
think of an issue. Is there a specific problem?
Jeremiah
Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) wrote:
> Hi,
>
> I am trying to display entry and results on the same screen. The idea is
> like this. I have a textarea where some values can be entered. On
> submitting this data, the same form refreshes displaying the data in a
> table. Can this be done? I create a bean with the values entered in
> textarea and use it to iterate and create table. Any pointers out there
> for this use case? Would appreciate any help.
>
> Thanks
> Prakash
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org