You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Don Hill <dh...@pair.com> on 2005/06/04 15:37:46 UTC

prepopulatting

I have a jsp that will be passed some params from another application 
that match the properties defined in the <html:form/>, currently I am 
doing a
<jsp:usebean scope="session" name="theBean" type="com.blaah.bean"/>
<jsp:setProperty property="*"/>


The question is if use "request" scope the form doesn't get the params 
populatted, is there another way todo this that is more struts style. I 
have to use the MyPage.jsp rather than a action because of the user 
could come from a legacy application.

Thanks

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


RE: prepopulatting

Posted by Martin Gainty <mg...@hotmail.com>.
Don-

If instantiating for the first time I would use class="com.blaah.bean" along
with scope="session" name="theBean" type="com.blaah.bean"
Does anyone see anything else ???

Martin-

(mobile) 617-852-7822




>From: Don Hill <dh...@pair.com>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: user@struts.apache.org
>Subject: prepopulatting <html:form/>
>Date: Sat, 04 Jun 2005 08:37:46 -0500
>MIME-Version: 1.0
>Received: from mail.apache.org ([209.237.227.199]) by MC6-F1.hotmail.com 
>with Microsoft SMTPSVC(6.0.3790.211); Sat, 4 Jun 2005 06:39:58 -0700
>Received: (qmail 47432 invoked by uid 500); 4 Jun 2005 13:39:48 -0000
>Received: (qmail 47414 invoked by uid 99); 4 Jun 2005 13:39:48 -0000
>Received: pass (hermes.apache.org: local policy)
>Received: from relay01.pair.com (HELO relay01.pair.com) (209.68.5.15)  by 
>apache.org (qpsmtpd/0.28) with SMTP; Sat, 04 Jun 2005 06:39:47 -0700
>Received: (qmail 56498 invoked from network); 4 Jun 2005 13:39:36 -0000
>Received: from unknown (HELO ?192.168.1.101?) (unknown)  by unknown with 
>SMTP; 4 Jun 2005 13:39:36 -0000
>X-Message-Info: JGTYoYF78jFinLvfv9MZy2ASNBqKsPZXYGTkGXsqofA=
>Mailing-List: contact user-help@struts.apache.org; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <ma...@struts.apache.org>
>List-Help: <ma...@struts.apache.org>
>List-Post: <ma...@struts.apache.org>
>List-Id: "Struts Users Mailing List" <user.struts.apache.org>
>Delivered-To: mailing list user@struts.apache.org
>X-ASF-Spam-Status: No, hits=1.4 required=10.0tests=DNS_FROM_RFC_POST
>X-Spam-Check-By: apache.org
>X-pair-Authenticated: 24.15.249.119
>User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
>X-Accept-Language: en-us, en
>X-Virus-Checked: Checked
>Return-Path: user-return-137520-mgainty=hotmail.com@struts.apache.org
>X-OriginalArrivalTime: 04 Jun 2005 13:39:58.0908 (UTC) 
>FILETIME=[E69597C0:01C5690A]
>
>I have a jsp that will be passed some params from another application that 
>match the properties defined in the <html:form/>, currently I am doing a
><jsp:usebean scope="session" name="theBean" type="com.blaah.bean"/>
><jsp:setProperty property="*"/>
>
>
>The question is if use "request" scope the form doesn't get the params 
>populatted, is there another way todo this that is more struts style. I 
>have to use the MyPage.jsp rather than a action because of the user could 
>come from a legacy application.
>
>Thanks
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>



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