RE: EJB in Struts Action

2008-10-03 Thread Eric Nelson
I've used EJB3 w/ Struts 2 in JBoss, and we couldn't get DI working in strtus action classes. We had to write context lookup classes. The problem is that struts action classes don't reside in the EJB container, so DI doesn't work correctly. If someone else has figured out how to do this, I'd

RE: Invoking Action Class from JSP

2008-09-30 Thread Eric Nelson
n can be found here:   Hope this helps, Zak - Original Message From: Eric Nelson <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Tuesday, September 30, 2008 11:42:45 AM Subject: Invoking Action Class from JSP Hi all.  I'm looking into how to invoke a Strut's action fr

Invoking Action Class from JSP

2008-09-30 Thread Eric Nelson
Hi all. I'm looking into how to invoke a Strut's action from a JSP page. I'm able to do it pretty easy in Stripes with this code: <[EMAIL PROTECTED] import="simplifile.web.action.ScheduleTransactionAction"%> <[EMAIL PROTECTED] import="net.sourceforge.stripes.action.ForwardResolution"%> <[EM

RE: Unexpected Action processing

2008-09-25 Thread Eric Nelson
This error usually happens when there's a type conversion problem. There is probably a field in your form that is posting to your ActionBean that isn't a part of Strut's standard included type converters. Or, if it is part of the standard converter, you may have formatting problems. For instance,

RE: Url-Parameters only set once

2008-04-07 Thread Eric Nelson
Ah, you're right. Thanks for the correction. --Eric -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, April 07, 2008 9:29 AM To: Struts Users Mailing List Subject: RE: Url-Parameters only set once --- Eric Nelson <[EMAIL PROTECTED]> wrote: > Y

RE: Ognl expressions in Struts 2.1

2008-04-07 Thread Eric Nelson
I ran into this too once I upgraded to 2.0.11. I understand their concern for allowing expressions, but I know that I'm using them correctly and so I decided to modify the TLD and allow all expressions, then just re-jared everything up and all is working fine. That's one solution. The other i

RE: Url-Parameters only set once

2008-04-07 Thread Eric Nelson
You CAN set the property to a different value every time. Most of my action beans implement this behavior just fine. Did you make sure your action bean implements the ParameterAware interface? This binds your action bean properties to the current values in the request scope. --Eric -Origin

RE: The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

2008-04-07 Thread Eric Nelson
Hi Ghan. You're not trying to directly access the JSP are you? For instance, browsing to http://host/emsitem/emsList.jsp? You need to go through the action: http://host/context/list.action, and then make sure that your action bean returns a result string of "SUCCESS", and it will automatically n

RE: tag help

2008-04-03 Thread Eric Nelson
3, 2008 at 4:52 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Use the "id" attribute in the for tag, like id="currInt". > > musachy > > > > On Thu, Apr 3, 2008 at 4:38 PM, Eric Nelson <[EMAIL PROTECTED]> wrote: > > Hi. This question

tag help

2008-04-03 Thread Eric Nelson
guage like: selected>${currInt} Here, currInt is the reference to the current Integer on the value stack. I hope this makes sense. Any help would be greatly appreciated. Thanks, Eric Nelson Software Engineer Program Manager

Parse XML Files

2005-01-27 Thread Nelson
Hi Guys, I'm new to struts and JSP and need to parse and compare XML files. I know you can do this with JSTL tags, but wanting to stick to the struts framework, I want to seperate my business method from my JSPs. Is their a standard way of doing this in struts, maybe using JAXP, or should I s