Re: [struts] Question regarding OGNL

2008-03-14 Thread Dale Newfield
Martin Gainty wrote: dave is is correct.. The following example without the proceeding situation setup is quite misleading (so here it is) : For example, suppose we are using standard OGNL (not using XWork) and there are two objects in the OgnlContext map: "foo" -> foo and "bar" -> bar and

Help Debugging Struts Question

2008-03-08 Thread Stephanie Oshe
Hi, I'm new to struts. I'm trying to write my own simple application with only 1 jsp, only 1 form bean and only 1 action. I've set a breakpoint in netbeans in the action's execute() method, but the application doesn't stop. I can stop in the BaseServlet so I think it's my struts configuration &

Re: Struts question

2007-09-09 Thread Paul Benedict
I think you're trying to do a nested property but that's not supported that way. The bean name is already specified by "name" so no need to repeat it in "property" ; Paul On 9/9/07, Maya menon <[EMAIL PROTECTED]> wrote: > > Reposting: dont know why junk charachers appear below > I have a quest

Re: Struts question

2007-09-09 Thread Maya menon
Reposting: dont know why junk charachers appear below I have a question about how to retrive the value from a data object in the form bean I have a form bean, TestForm where I declare my dataobject as private testdata[] data; with its getter and setter In my testdata class I have a Strin

Struts question

2007-09-09 Thread Maya menon
> value='mypath'/>">I have a question about how to retrive the value from a > data object in the form bean > value='mypath'/>"> > value='mypath'/>">I have a form bean, TestForm where I declare my dataobject as > value='mypath'/>">private testdata[] data; > value='mypath'/>"> > value

Re: Struts Question - multiple instances of an actionForm

2007-03-13 Thread Dave Newton
--- xyz <[EMAIL PROTECTED]> wrote: > Any hints/ideas on achieving this? Have you considered using indexed properties? d. TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.c

Struts Question - multiple instances of an actionForm

2007-03-13 Thread xyz
user clicks "finish" and all saved data from session along with some common information is to be handled for further processing. Is there any mechanism in Struts supporting multiple instances. Any hints/ideas on achieving this? Thanks -- View this message in context: http://www.na

Re: Need help with simple struts question

2007-01-26 Thread AQureshi
Jim John <[EMAIL PROTECTED]> wrote on 01/26/2007 01:50:45 PM: > I'm very new to struts and have a simple question > > I have a page called mailGroups.jsp which uses some > beans. I forward to mailGroupsEdit.jsp so that I can > use the data from the beans in mailGroups.jsp for > editing. So how do

Need help with simple struts question

2007-01-26 Thread Jim John
I'm very new to struts and have a simple question I have a page called mailGroups.jsp which uses some beans. I forward to mailGroupsEdit.jsp so that I can use the data from the beans in mailGroups.jsp for editing. So how do I get this information from mailGroups to mailGroupsEdit? What do I need t

Re: basic struts question using a Map in an ActionForm

2005-07-18 Thread Craig McClanahan
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > To me, this is very confusing. Why doesn't the html:property tag perform > the same kind of logic as JSTL does? I would think I should be able to > just do... > > > > and not need to create a new accessor method name and the odd syntax (x) ?

Re: basic struts question using a Map in an ActionForm

2005-07-18 Thread Rick Reumann
Rick Reumann wrote the following on 7/14/2005 4:26 PM: Rick Reumann wrote the following on 7/14/2005 4:20 PM: From the FAQ I'm going to try this in my ActionForm.. public Object getStringMapped(String key) { return map.get(key); } public void setStringMapped(String key, Obj

Re: basic struts question using a Map in an ActionForm

2005-07-15 Thread Dakota Jack
Right as rain, Rick! You also can have a getMap() method and use map.name rather than map[1].name. There is some fairly weird code, unfortunately, underlying all this, which makes the creation of an ActionForm as an instrumented Map impossible. However, looking at the code itself is very instruc

Re: basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann
Rick Reumann wrote the following on 7/14/2005 4:20 PM: From the FAQ I'm going to try this in my ActionForm.. public Object getStringMapped(String key) { return map.get(key); } public void setStringMapped(String key, Object value) { map.put(key, value); } When i

Re: basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann
Rick Reumann wrote the following on 7/14/2005 3:17 PM: Ok this is basic, but I'm stumped here at the moment... Imagine a Map of Animals. (Animal has a "name" property) map.put(new Integer(1), new Animal() ); map.put(new Integer(2), new Animal() ); In my Action form this map is in there as: pr

basic struts question using a Map in an ActionForm

2005-07-14 Thread Rick Reumann
Ok this is basic, but I'm stumped here at the moment... Imagine a Map of Animals. (Animal has a "name" property) map.put(new Integer(1), new Animal() ); map.put(new Integer(2), new Animal() ); In my Action form this map is in there as: private Map animalsMap; getAnimalsMap() setAnimalsMap(Map

Re: Struts question

2005-01-17 Thread Hubert Rabago
http://struts.apache.org/faqs/database.html#manager http://struts.apache.org/userGuide/configuration.html#data-source_config Hubert On Mon, 17 Jan 2005 17:59:07 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hubert, > > You wrote "The Struts dev team now recommends you use other faciliti

Re: Struts question

2005-01-17 Thread Renaud . Tarnec
; 17/01/2005 16:53 Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Struts question John, Please send your questions to the Struts user list. The biggest reason is that you'd get a wide audience for your question, with several p

Re: Struts question

2005-01-17 Thread Hubert Rabago
John, Please send your questions to the Struts user list. The biggest reason is that you'd get a wide audience for your question, with several people possibly helping you, and several people benefitting from the answer being shared, too. It's a community effort, but it's the community that benef

Re: Simple struts question. (tiles ... )

2004-06-15 Thread Mark Lowe
wards that look like: Ok, the problem appears to be with the velocity link tool. Which is generating a link like: http://localhost:8080/tsr/ui/select.company.page for the forwards defined above. So not a specific struts question. 2.) I will rephrase this question beca

RE: Simple struts question. (tiles ... )

2004-06-15 Thread Bullard, James
t:8080/tsr/ui/select.company.page for the forwards defined above. So not a specific struts question. 2.) I will rephrase this question because it was unclear. I have an action: edituser this action does some switching based on a parameter passed into the request (It is more

Re: Simple struts question.

2004-06-14 Thread Rick Reumann
Bullard, James wrote: A couple tiles questions. 1.) Is there any way to have a global-forward forward to a tile, It always tells me that such a path does not exist, meaning that rather than recognize the page as tile def it thinks it is a page. Hmm not sure what is wrong. You could try adding co

Simple struts question.

2004-06-14 Thread Bullard, James
A couple tiles questions. 1.) Is there any way to have a global-forward forward to a tile, It always tells me that such a path does not exist, meaning that rather than recognize the page as tile def it thinks it is a page. 2.) I am using the same forms for editing and creating new entity instan