RE: bean:define

2007-02-08 Thread Yee Kai Lai
class FormBean() { private String xxx; public String getXXX() { return this.xxx; } public void setXXX(String xxx) { this.xxx = xxx; } } session.setAttribute("formbean",new FormBean().setXXX("")); FormBean oFormeBean = (FormBean)session.getAttribute("formbean"); String xxx = oForme

Re: bean:define in including jsp

2006-04-24 Thread Vinit Sharma
Hi Dilip, You can define the bean in tiles def to use it across the pages. The tag is used to associate a value to an attribute. It allows specifying the attribute name and its value. The attribute value will be retrieved by its name. The value can be specified in several ways: > as a bean defin

Re: bean:define errors in eclipse 3.1.1 WTP

2005-11-21 Thread Rahul Akolkar
On 11/21/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > I try to edit my JSP in Eclipse 3.1.1 WTP (Web Tools Project) however I get > errors on variables defined by ID tags for example: > > > > > > > <%=(myValue1 + "-" myValue2)%> > > > > The above snip of code will result in Eclipse telling me

RE: Bean:define : Newbie Question

2004-11-10 Thread Girish Kumar K. P.
-Original Message- From: Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 4:45 PM To: Struts Users Mailing List Subject: Re: Bean:define : Newbie Question Hi Peng

Re: Bean:define : Newbie Question

2004-11-10 Thread Peng Tuck
Uh, you already have defined it using . Check the original code snippet you sent. You're just referring to the wrong bean in . To be clear you might want to have a look see at the taglib docs right here http://struts.apache.org/userGuide/struts-bean.html#define Richard wrote: Hi Peng. Please tel

Re: Bean:define : Newbie Question

2004-11-10 Thread Richard
Hi Peng. Please tell me what how exactly should I do it? Should I define bean user then define bean originatingHost which is an attr of user object? On Wed, 10 Nov 2004 17:52:54 +0800, Peng Tuck <[EMAIL PROTECTED]> wrote: > So in you should refer to the bean you defined, using > right ? > >

Re: Bean:define : Newbie Question

2004-11-10 Thread Peng Tuck
So in you should refer to the bean you defined, using right ? Richard wrote: yes its an arraylist On Wed, 10 Nov 2004 15:50:36 +0800, Peng Tuck <[EMAIL PROTECTED]> wrote: Hi Richard, You use to define a bean with a id of user but yet in you refer to originatingHost ? I think it sho

Re: Bean:define : Newbie Question

2004-11-10 Thread Richard
yes its an arraylist On Wed, 10 Nov 2004 15:50:36 +0800, Peng Tuck <[EMAIL PROTECTED]> wrote: > Hi Richard, > You use to define a bean with a id of user but yet > in you refer to originatingHost ? >I think it should be refering to user instead for . > Also is originatingHost a collec

Re: Bean:define : Newbie Question

2004-11-09 Thread Peng Tuck
Hi Richard, You use to define a bean with a id of user but yet in you refer to originatingHost ? I think it should be refering to user instead for . Also is originatingHost a collection ? Richard wrote: Hello Guys, Please help I have to display the contents of my arraylist object I hav

RE: bean:define vs c:set

2004-07-29 Thread Kris Schneider
or the upgrade to tomcat 5. > > > Kris. > > -Oorspronkelijk bericht- > Van: Craig McClanahan [mailto:[EMAIL PROTECTED] > Verzonden: donderdag 29 juli 2004 18:25 > Aan: Struts Users Mailing List > Onderwerp: Re: bean:define vs c:set > > You are correct tha

RE: bean:define vs c:set

2004-07-29 Thread Kris Barnhoorn
nahan [mailto:[EMAIL PROTECTED] Verzonden: donderdag 29 juli 2004 18:25 Aan: Struts Users Mailing List Onderwerp: Re: bean:define vs c:set You are correct that does not create a scripting variable, so you can't use the specified identifier in a scriptlet. The question, though, is why are

Re: bean:define vs c:set

2004-07-29 Thread Craig McClanahan
You are correct that does not create a scripting variable, so you can't use the specified identifier in a scriptlet. The question, though, is why are you still using a scriptlet expression? Why not use an EL expression instead? or, to avoid needing to do the in the first place: The a

RE: bean:define vs c:set

2004-07-29 Thread Paul McCulloch
creates a scoped attribute AND a scripting variable, whereas just created the scoped attribute. In your example you are making use of the scripting variable feature (as the data is already available as a scoped attribute). But, with JSP2, all tags magically become EL aware (I believe). So you sh