ot;formbean");
String xxx = oFormeBean.getXXX();
From: "Andrew Martin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: bean:define
Date: Thu, 8 Feb 2007 09:04:05 +0100
I am having problems defining a bean wit
I am having problems defining a bean with a Session Object value.
I want to retrieve the Object within the JSP and display navigation depending
on the values within the session
Any ideas?
I can only get it working when I check directly in JSP for the the session
within the logic:present tag. I
Hello.
When I try to define the following typed variable on a page, I get a
ClassCastException:
Looking at the generated servlet code, the error occurs at this line:
totAquisicao = (java.lang.Double)
_jspx_page_context.findAttribute("totAquisicao");
What am I doing wrong or missing?
Tha
ks for the help,
Shawn
On 6/15/06, Samere, Adam J <[EMAIL PROTECTED]> wrote:
The bean:define tag can create new attributes and scripting variables of
type String or create a copy of an existing bean or property on an
existing bean. The standard jsp:useBean covers creating a new instance
of
The bean:define tag can create new attributes and scripting variables of
type String or create a copy of an existing bean or property on an
existing bean. The standard jsp:useBean covers creating a new instance
of any class with a default constructor, so why duplicate that
functionality in a
Thanks, this works.
Can you explain to me why I couldn't do the same thing with bean:define?
On 6/15/06, Samere, Adam J <[EMAIL PROTECTED]> wrote:
There are probably numerous ways to accomplish this, what I like to do
is define/instantiate the Map using the tag, then set the
key/
-
From: Garner Shawn [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 11:24 AM
To: user@struts.apache.org
Subject: [HELP] bean:define and Map
I get a can not set null value form paramsMap.
How do I specify the key, value pairs?
This is to pass into html:link name="" f
I get a can not set null value form paramsMap.
How do I specify the key, value pairs?
This is to pass into html:link name="" for request parameters when
they click on the link.
Thanks.
Shawn
-
To unsubscribe, e-mail: [EMAIL
p (a.jsp). This jsp includes a few other jsps (using
> attribute="b"/>, where b=b.jsp).
>
> Now, if I have a bean:define in a .jsp (eg property="prop" id="prop1" />), prop1 is usable in a.jsp, but not in
> b.jsp(the included or inserted jsp). Is
Hey guys,
We us Struts with tiles and here is something, I am having some trouble
with.
I have a main jsp (a.jsp). This jsp includes a few other jsps (using
, where b=b.jsp).
Now, if I have a bean:define in a .jsp (eg ), prop1 is usable in a.jsp, but not in
b.jsp(the included or inserted jsp
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
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 that "myValue1
cannot be resolved" and "myValue2 cannot be resolved".
How
Hi!
You would normally populate the list in an action not in the jsp.
Tamas
On 9/13/05, starki78 <[EMAIL PROTECTED]> wrote:
>
> Hi if have the following simple example.
> A Hashtable is created and used for a options-list.
> Is it possible with bean:define to create the
&
Hi if have the following simple example.
A Hashtable is created and used for a options-list.
Is it possible with bean:define to create the
Hashtable without java-code?
When does it make sense to use the bean:define tag in this example
or generally?
Thanks a lot for suggestions
Starki
ROTECTED]
Sent: Tuesday, May 03, 2005 6:22 PM
To: Struts Users Mailing List
Subject: Re: Combining html:image and bean:define
Chris,
Firstly, it looks like hard work using an and then
defining an "onclick" event - why don't you just wrap a link around an
image - i.e. somethin
Chris,
Firstly, it looks like hard work using an and then
defining an "onclick" event - why don't you just wrap a link around an
image - i.e. something like...
Secondly, struts provides the pageKey and titleKey attributes on the
and tags which make it easier to use message
resources for th
schen
Sent: Tuesday, May 03, 2005 4:13 PM
To: Struts Users Mailing List
Subject: Combining html:image and bean:define
Hi all,
I'm using Struts 1.1, and just received from another team updates to a
JSP page that look like this:
However, these aren't working -- in the source of the gene
Hi all,
I'm using Struts 1.1, and just received from another team updates to a
JSP page that look like this:
However, these aren't working -- in the source of the generated HTML,
the JSP tags are not getting converted to the appropriate scripting
variable and are just getting rendered as-is.
-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
Hello Guys,
Please help I have to display the contents of my arraylist object
I have this code on my jsp
[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 2004 11:43 PM
Subject: Re: Need an alternative to bean:define
My condolences :-( I now see your rock and hard spot.
It's not about bleeding edge though. Of course, what co
;[EMAIL PROTECTED]>
Sent: Thursday, November 04, 2004 11:43 PM
Subject: Re: Need an alternative to bean:define
My condolences :-( I now see your rock and hard spot.
It's not about bleeding edge though. Of course, what counts in that
regard is your clients' opinion of what bleedi
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 2004 12:25 PM
Subject: RE: Need an alternative to bean:define
I should point out that it isn't my company that has the restrictions. My
employer would quite happily move to the bleeding
ay, November 03, 2004 5:17 PM
To: Struts Users Mailing List
Subject: Re: Need an alternative to bean:define
I would question anyone who told me I had to use something that is going
away in the future (most of Struts' taglibs), instead of using a standard
technology (the JSTL).
Are they fully-a
" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 2004 1:06 PM
Subject: RE: Need an alternative to bean:define
Thanks Matt, but I think my problem is that I'm using Struts 1.1 (and
can't
change it)
me()); %>
It works, I was just hoping for a nicer solution.
Thanks for everyone's input!
-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 1:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Need an alternative to bean:defi
Janice,
Does this snippet work if you move all of the bean:defines insidea of your
logic:iterate?
I haven't tested this myself, but I strongly suspect that the problem is the
fact that bean:define declares the variable in the resulting servlet code
that gets generated. It's trying to
Janice,
Does this snippet work if you move all of the bean:defines insidea of your
logic:iterate?
I haven't tested this myself, but I strongly suspect that the problem is the
fact that bean:define declares the variable in the resulting servlet code
that gets generated. It's trying to
From: "Janice" <[EMAIL PROTECTED]>
> Thanks Matt, but I think my problem is that I'm using Struts 1.1 (and
can't
> change it)
> According to: http://struts.apache.org/userGuide/struts-bean.html#define
> You can't re-define in 1.1. There must be a workaround?
Honestly, I'd last 2.5 seconds in a pl
serGuide/struts-bean.html#define
You can't re-define in 1.1. There must be a workaround?
TIA,
J
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 10:32 AM
To: Struts Users Mailing List
Subject: Re: Need an alternative to bean:define
Ja
EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 10:32 AM
To: Struts Users Mailing List
Subject: Re: Need an alternative to bean:define
Janice -
I do multiple bean:defines (with values, not with name/property
attributes) in some of my jsps, and never have problems, and am
therefore assumin
...of course END your previous bean:define instead of opening a new
one :)
Matt
[snip rest of content]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
bean:define
Is JSTL an option? I find Struts Logic tag hard to read! If so, I think this
should do:
HTH. Of course this is from top of my head, i haven't tried it.
ATTA
On Tue, 02 Nov 2004 16:16:25 -0800, Janice <[EMAIL PROTECTED]> wrote:
My brain has stopped working. I need an
bean:define
Is JSTL an option? I find Struts Logic tag hard to read! If so, I think this
should do:
HTH. Of course this is from top of my head, i haven't tried it.
ATTA
On Tue, 02 Nov 2004 16:16:25 -0800, Janice <[EMAIL PROTECTED]> wrote:
> My brain has stopped worki
an alternative to bean:define.
>
> What I'm TRYING to do is iterate through a list, displaying a certain bit of
> code only when its different than the last iteration (grouping).
>
> Here's a snip:
>
>
>
&
My brain has stopped working. I need an alternative to bean:define.
What I'm TRYING to do is iterate through a list, displaying a certain bit of
code only when its different than the last iteration (grouping).
Here
Hi,
I am using tag to define a conditional attribute to use it
somewhere else. So when I am using this id that variable is expecting an
"int" value. I have my tag as below.
I am using it as below
But since defaultsort is expecting an integer,
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
should be able to just do:
Paul
> -Original Message-
> From: Kris Barnhoorn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 29, 2004 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: bean:define vs c:set
>
>
> Hi,
>
> First of all I&
Hi,
First of all I'd like to thank the contributors of this mailinglist. I'm
using struts for over 1.5 years now and i always found answers in
archives.
In this mailinglist and in the contrib/el there is often suggested that
the best way to prepare for smooth transition to JSP 2.0 is to use el
t
47 matches
Mail list logo