struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mitch gorman <mgor...@shadowtv.biz>
Subject Re: jsp page not display data when using ModelDriven---class can get parameter from jsp file
Date Tue, 31 Mar 2009 18:41:59 GMT
Musachy Barroso wrote:
> The answer is 42. If you explain what the problem is, the answer might
> vary.

c'mon, musachy... it's patently obvious that the frobnication
calibration is off. you really need to adjust the skergle-factor setting
in the next release, too... this is, what, the 14th report of this sort
of thing?!

get with the program, man!


> 2009/3/31 Junhua gao <junhuagao@yahoo.com.cn>:
>> public class SortTiersAction extends BaseActionS2 implements
>> ModelDriven {
>> SortTierService sorttierservice = new SortTierService();
>> private SortTierVO sorttiervo = new SortTierVO();
>> public void setModel(SortTierVO sorttiervo) {
>> this.sorttiervo = sorttiervo;
>> }
>> public Object getModel() {
>> return this.sorttiervo;
>> }
>> public String execute() throws DefaultException {
>>
>> //do someting here;
>>
>> }
>>
>>
>> in struts.xml file
>>
>> <action name="SortTierQueryAction"
>> class="com.qic.system.action.SortTiersAction">
>> <result name="success">/test.jsp</result>
>> </action>
>>
>>
>>
>> jsp file
>>
>> <s:form id="sorttierform" action="SortTiersAction">
>> <select name="sorttierID" id="sorttierSelectID" size="12"/
>> width="135"><br>
>> <s:textfield name="sorttierName" id="sorttierName" label="Name:"/><br>
>>
>> <s:textfield name="sorttierRate" id="sorttierRate" label="Rate:"/><br>
>> <s:textfield name="sorttierRatecase" id="sorttierRatecase"
>> label="Rate Case:"/>
>> <s:checkbox name="sorttierActive" id="sorttierActive" label="Active?"/>
>> <s:submit value="Save"/>
>> </s:form>
>>


-- 
Mitch Gorman
mgorman@shadowtv.com
Skype: mitch.shadowtv.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message