RE: bean:define

2007-02-08 Thread Yee Kai Lai
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

bean:define

2007-02-08 Thread Andrew Martin
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

Typed variables with bean:define

2007-01-04 Thread Ney André de Mello Zunino
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

Re: [HELP] bean:define and Map

2006-06-15 Thread Garner Shawn
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

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
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

Re: [HELP] bean:define and Map

2006-06-15 Thread Garner Shawn
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/

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
- 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

[HELP] bean:define and Map

2006-06-15 Thread Garner Shawn
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

Re: bean:define in including jsp

2006-04-24 Thread Vinit Sharma
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

bean:define in including jsp

2006-04-21 Thread Dilip Ladhani
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

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

bean:define errors in eclipse 3.1.1 WTP

2005-11-21 Thread Garner, Shawn
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

Re: When is it necessary/better to use bean:define?

2005-09-13 Thread Tamas Szabo
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 &

When is it necessary/better to use bean:define?

2005-09-13 Thread starki78
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

RE: Combining html:image and bean:define

2005-05-04 Thread Chris Loschen
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

Re: Combining html:image and bean:define

2005-05-03 Thread Niall Pemberton
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

RE: Combining html:image and bean:define

2005-05-03 Thread Chris Loschen
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

Combining html:image and bean:define

2005-05-03 Thread Chris Loschen
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.

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

Bean:define : Newbie Question

2004-11-09 Thread Richard
Hello Guys, Please help I have to display the contents of my arraylist object I have this code on my jsp

[OT] Re: Need an alternative to bean:define

2004-11-05 Thread Erik Weber
[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

Re: Need an alternative to bean:define

2004-11-05 Thread James Mitchell
;[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

Re: Need an alternative to bean:define

2004-11-04 Thread Eddie Bush
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

RE: Need an alternative to bean:define

2004-11-04 Thread Janice
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

Re: Need an alternative to bean:define

2004-11-03 Thread Eddie Bush
" <[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)

RE: Need an alternative to bean:define

2004-11-03 Thread Janice
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

RE: Need an alternative to bean:define

2004-11-03 Thread Joe Hertz
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

RE: Need an alternative to bean:define

2004-11-03 Thread Joe Hertz
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

Re: Need an alternative to bean:define

2004-11-03 Thread Wendy Smoak
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

Re: Need an alternative to bean:define

2004-11-03 Thread Matt Bathje
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

RE: Need an alternative to bean:define

2004-11-03 Thread Janice
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

Re: Need an alternative to bean:define

2004-11-03 Thread Matt Bathje
...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]

Re: Need an alternative to bean:define

2004-11-03 Thread Matt Bathje
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

RE: Need an alternative to bean:define

2004-11-03 Thread Janice
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

Re: Need an alternative to bean:define

2004-11-02 Thread atta-ur rehman
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: > > > &

Need an alternative to bean:define

2004-11-02 Thread Janice
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

bean:define

2004-10-13 Thread Shabada, Gnaneshwer
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,

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
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&

bean:define vs c:set

2004-07-29 Thread Kris Barnhoorn
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