You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stanislav <sk...@inet.hr> on 2005/11/29 13:12:24 UTC
how to pass value in html:text from action
I have action in which i get data from db and put this data in request
or session.
After that i was beeing sent to jsp page that display data from request or sesion,
but this jsp also
need to provide changing db data and storing them back into db.
i was thinking to do that passing right into html:text value=dbadata, but if i do
that with:
<html:text size="54" property="imeK"
styleClass="InputTable" value='<bean:write name="imeK"
scope="request"/>'/>
bean:write is not renderd because is inside html:text.
OK, i know what is the problem but i don't know how to solve them :-(
What is the best way of getting data from db, displaying them and put them back into
db with posible
changed value?
Tnx,
stanislav
PS: Sorry for my English :-(
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to pass value in html:text from action
Posted by Bob Arnott <bo...@aungate.com>.
Stanislav wrote:
[snipped...]
> <html:text size="54" property="imeK" styleClass="InputTable" value='<bean:write name="imeK" scope="request"/>'/>
You can't embed tags within tags... Try something like:
<bean:define id="value" name="imeK" scope="request" />
<html:text size="54" property="imeK" styleClass="InputTable" value="<%=value.toString()%>" />
Alternatively, use an action to populate the form bean.
Cheers,
--
Bob Arnott
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org