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
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
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
-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
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
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 ?
>
>
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
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
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
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
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
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
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
13 matches
Mail list logo