RE: S2: Struts way of submitting a value on change?

2007-11-15 Thread Hernandez, David
Version 2.1 will supposedly have this feature set. -Original Message- From: James Carr [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 8:33 PM To: Struts Users Mailing List Subject: S2: Struts way of submitting a value on change? Hi All, What is the "struts 2" way of using

RE: access to bean property in struts2

2007-11-15 Thread Hernandez, David
Set the Bean as a member of the Action class and use: -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 11:28 AM To: user@struts.apache.org Subject: access to bean property in struts2 Hello, how can I access a bean properties from a jsp

Form Submission Question

2007-11-15 Thread Hernandez, David
Can anyone point me to a location that outlines the Form submission/processing flow for struts 2? I'm having a bit of a problem deciphering how forms are supposed to be handled. For instance I have a Bean (Building) that I want to update (to a DB) from a form: JSP:

RE: Form Submission Question

2007-11-15 Thread Hernandez, David
Thanks guys. The bootstrap should have an example where the fields are populated by the Action Class's member variables. But I figured it out, I think . . . -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 2:20 PM To: Struts Users Mailing

RE: Form Submission Question

2007-11-15 Thread Hernandez, David
I'm having a problem with my bean going out of scope. The form is populated with the bean information fine, but when I submit building is null? How do I keep it in scope? Do I have to pull it back out of the ActionContext? public class BuildingFormTestAction extends ActionSupport { priva

RE: Form Submission Question

2007-11-15 Thread Hernandez, David
Sorry, The problem was that building has a member variable that is a class (City) which is going out of scope. Building.toString() calls city.getId() throwing the exception and returning null . . . Now, to keep that in scope somehow . . . -Original Message- From: Hernandez, David Sent

RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David
> > slideharmony wrote: >> ok, but I read somewhere that I can do that without setting a >> property User in my action, using the action stack, or something like >> this, I believed that last action I have used should be available, or >> not? >> >> >>

RE: ClassCastException

2007-11-16 Thread Hernandez, David
What line's the Exception being thrown on? -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 9:35 AM To: user@struts.apache.org Subject: ClassCastException Hello, I have a problem saving a bean User. I use the following code: UserDao dao

RE: [S2] autocompler + ajax in 2.0.11

2007-11-16 Thread Hernandez, David
Does it work at all? I thought no ajax tags would work until version 2.1 . . . -Original Message- From: Stefano Greco [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 9:08 AM To: user@struts.apache.org Subject: [S2] autocompler + ajax in 2.0.11 Hi, I'm using autocompler with a

Action Mapping Error

2007-11-16 Thread Hernandez, David
This exception is being thrown: No result defined for action com.lehman.maps.servlet.AdminAction and result success at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct ionInvocation.java:350) Even though I have this in struts.xml: /adminPage.jsp

RE: Form Formatting

2007-11-16 Thread Hernandez, David
truts Users Mailing List Subject: Re: Form Formatting --- "Hernandez, David" <[EMAIL PROTECTED]> wrote: > Is there an easier way than creating a theme to format the layout of > an xhtml theme form? > I really just want some of the fields to be on the same line . . . You

Form Formatting

2007-11-16 Thread Hernandez, David
Is there an easier way than creating a theme to format the layout of an xhtml theme form? I really just want some of the fields to be on the same line . . . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and

RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David
; ok, but I read somewhere that I can do that without setting a >> property User in my action, using the action stack, or something like >> this, I believed that last action I have used should be available, or >> not? >> >> >> >> >>

RE: [S2] Tooltip and simple theme

2007-11-20 Thread Hernandez, David
x27;s > just better in 2.1. > > d. > > --- "Hernandez, David" <[EMAIL PROTECTED]> > wrote: > >> >> Does it work at all? I thought no ajax tags would >> work until version 2.1 >> . . . >> >> -Original Message---

RE: Can struts2 tag embeded inside javascript

2007-11-27 Thread Hernandez, David
Dave is right as usual, but you could always redirect "whatever.js" to a dynamically generated whatever.jsp file. Additionally, there's no reason you can't write: var x = ; inside a JSP file. You're going to have to be more specific, panpan . . . -Original Me

RE: Can struts2 tag embeded inside javascript

2007-11-27 Thread Hernandez, David
Sorry panpan, I didn't see the original msg. Most easily, you can change your .js file to .jsp And I don't see any reason that wouldn't work. Kind of cheesy though. You can map the URL ("/whatever.js") to a servlet which forwards to the "whatever.jsp" file if you want it to be a little cleaner.

RE: S2: concat doesn't work.

2007-11-27 Thread Hernandez, David
You're getting confused about the role of Javascript in your application, panpan. Javascript does not execute at the same time as Java. Java can generate dynamic javascript on the server and send it to a client. The javascript then executes on the client (web browser). You cannot have javascript c

Getting Headers out of the ActionContext

2007-11-29 Thread Hernandez, David
Does anyone know the best way to get Header values out of the ActionContext? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not th

RE: Getting Headers out of the ActionContext

2007-11-29 Thread Hernandez, David
[mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 1:53 PM To: Struts Users Mailing List Subject: Re: Getting Headers out of the ActionContext Cast to the underlying ServletActionContext and get them from the request? d. --- "Hernandez, David" <[EMAIL PROTECTED]> wrote: >

RE: S2 action mapping: How to return to previous action?

2007-12-05 Thread Hernandez, David
I believe it would be easiest to write an interceptor for actions 1 and 2 that invokes the action, then invokes action 3 and then reinvokes the original action. -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 05, 2007 11:03 AM To: Struts Users Ma

RE: OGNL and action property

2007-12-21 Thread Hernandez, David
Try removing the value attribute: Although, I believe Should do the same thing . . . David Hernandez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 3:46 PM To: Struts Users Mailing List Subject: Re: OGNL and action property Hi Da

RE: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread Hernandez, David
Does this stack trace begin with a java.lang.OutOfMemoryError as well? Have you tried increasing the heap space size for your Web Server? Just a thought . . . Regards, David Hernandez -Original Message- From: totojack [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2008 11:35 AM

RE: Struts 2: Can not set Action's property which is an array of Strings

2008-01-28 Thread Hernandez, David
Andriy, Try putting the array in an encapsulating object, i.e. an ArrayList. Regards, David Hernandez -Original Message- From: Andriy Kharchuk [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 4:15 PM To: Struts Users Mailing List Subject: Struts 2: Can not set Action's propert

question

2008-04-23 Thread Hernandez, David
Sorry for such a n00bie question, but I'm having trouble finding any good documentation on this: I want to check in my jsp if the value of a string is equal to a string literal: In java: if(action.equals("set")) { } I've tried to no avail the following (where action is a string on the stack):

Struts2 Jar on JBoss

2008-06-23 Thread Hernandez, David
Hey Guys, I'm trying to deploy several apps built with Struts2 that share a common lib directory. I'm running on JBoss. If I put all the jar's in the server lib directory everything compiles and deploys fine. If I go to an action it is executed, but when it attempts to read the jsp it fails to fin

Re: Struts2 Jar on JBoss

2008-06-23 Thread Hernandez, David
achy Barroso To: Struts Users Mailing List ReplyTo: Struts Users Mailing List Sent: Jun 23, 2008 5:32 PM Subject: Re: Struts2 Jar on JBoss The taglib is in core, so somehow it is not finding struts-core jar. musachy On Mon, Jun 23, 2008 at 5:15 PM, Hernandez, David <[EMAIL PROTECTED]> wrote

RE: Struts2 Jar on JBoss

2008-06-24 Thread Hernandez, David
List Subject: Re: Struts2 Jar on JBoss Yes, that's what I meant, but not what I said, that happens when there is too much multitasking going on :) musachy On Mon, Jun 23, 2008 at 5:47 PM, Hernandez, David <[EMAIL PROTECTED]> wrote: > That's not the case. If the jar isn't pres