RE: Struts2 Jar on JBoss

2008-06-24 Thread Hernandez, David
So does anyone know how to get JBoss to look inside the jar (which isn't
in WEB-INF/lib, but the JBoss Server lib) for the struts tld?

David Hernandez

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2008 5:50 PM
To: Struts Users Mailing 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 present then the deployment
fails upon reading struts.xml because the FilterDispatcher cannot be
found. The classes are being loaded from the jar however it's not
looking in the jar for the TLD.
 Regards,
 --Original Message--
 From: Musachy 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:
 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 find the struts tld. See an excerpt from my log below:

 
 2008-06-23 17:12:49,085 DEBUG
 [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering 
 nullPropertyValue 
 [EMAIL PROTECTED]
 50b 99d, [EMAIL PROTECTED], 
 property=org]
 2008-06-23 17:12:49,280 DEBUG
 [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds
in:
 file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/js
 f-i
 mpl.jar
 2008-06-23 17:12:49,420 DEBUG
 [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds
in:
 file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
 2008-06-23 17:12:49,513 ERROR
 [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2
 /Da ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw 
 exception
 org.apache.jasper.JasperException: File /struts-tags not found
at
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
 and

 --Original Message Truncated--

 David Hernandez

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 - - - - - - - - -

 This message is intended only for the personal and confidential use of
the designated recipient(s) named above.  If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited.  This communication is for information purposes only and
should not be regarded as an offer to sell or as a solicitation of an
offer to buy any financial product, an official confirmation of any
transaction, or as an official statement of Lehman Brothers.  Email
transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or
accurate and it should not be relied upon as such.  All information is
subject to change without notice.


 
 IRS Circular 230 Disclosure:
 Please be advised that any discussion of U.S. tax matters contained
within this communication (including any attachments) is not intended or
written to be used and cannot be used for the purpose of (i) avoiding
U.S. tax related penalties or (ii) promoting, marketing or recommending
to another party any transaction or matter addressed herein.




--
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used

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
find the struts tld. See an excerpt from my log below:


2008-06-23 17:12:49,085 DEBUG
[com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
nullPropertyValue
[EMAIL PROTECTED]
99d, [EMAIL PROTECTED], property=org]
2008-06-23 17:12:49,280 DEBUG
[org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
mpl.jar
2008-06-23 17:12:49,420 DEBUG
[org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
2008-06-23 17:12:49,513 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: File /struts-tags not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:51)


Any Help/Advice would be appreciated.

Thanks,
David Hernandez

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 Jar on JBoss

2008-06-23 Thread Hernandez, David
That's not the case. If the jar isn't present then the deployment fails upon 
reading struts.xml because the FilterDispatcher cannot be found. The classes 
are being loaded from the jar however it's not looking in the jar for the TLD. 
Regards,
--Original Message--
From: Musachy 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:
 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
 find the struts tld. See an excerpt from my log below:

 
 2008-06-23 17:12:49,085 DEBUG
 [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
 nullPropertyValue
 [EMAIL PROTECTED]
 99d, [EMAIL PROTECTED], property=org]
 2008-06-23 17:12:49,280 DEBUG
 [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
 file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf-i
 mpl.jar
 2008-06-23 17:12:49,420 DEBUG
 [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
 file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
 2008-06-23 17:12:49,513 ERROR
 [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/Da
 ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException: File /struts-tags not found
at
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand

--Original Message Truncated--

David Hernandez

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.



IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.


s:if 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):

s:if test=%{action.equals('set')}

And 

s:if test=action='set'

Is there a page where I could have found this info?

Thanks in Advance,
David Hernandez

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 property which is an array of
Strings

Hi guys,

My Action has property which is an array of Strings. I'm rendering html
table using this property. What is correct way to update this property
from jsp?

I tried the following but it doesn't work:

1. JSP
s:iterator value=entityList status=rowstatus
s:textfield name=selectedItems[%{#rowstatus.index}]/

2. Action
private String[] selectedItems;

public String[] getSelectedItems(){
return selectedItems;
}

public void setSelectedItems(String[] selectedItems){
this.selectedItems = selectedItems;
}

Exception is
[ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or
set value back on to object |
com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
InstantiatingNullHandler.java:110)| nullPropertyValue
java.lang.InstantiationException: [Ljava.lang.String;
at java.lang.Class.newInstance0(Unknown Source)

I will appreciate any help.

Thanks,
Andriy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
To: user@struts.apache.org
Subject: Re: [S2] Beans list in Dynamic form and ParametersInterceptor
problem


The problem of songs list size is solved using #stat.index. But not the
parameters error.
The list size now is 1, but the element inside is null.
So, it can't create song beans and put it into the list.
In the conversion props file the Element_songs is correctly set to the
Song bean class.
The KeyProperty is useless now using the iterator index? 

Here some logs:
DEBUG (interceptor.ParametersInterceptor:148) - Setting params
songs[1].endDate = [ 01.01.2099 ] [  ] songs[0].endDate = [ 01.01.2099
] songs[0].statusLoad = [ Publish ] songs[0].statusSellable = [ 1 ]
songs[1].songId = [ 9121591 ] songs[1].statusLoad = [ Publish ]
songs[1].statusSellable = [ 1 ] songs[0].songId = [ 9121587 ]
songs[0].startDate = [ 29.11.2007 ] songs[1].startDate = [ 29.11.2007
] ERROR (interceptor.ParametersInterceptor:204) - ParametersInterceptor
-
[setParameters]: Unexpected Exception caught setting 'songs[0].endDate'
on 'class it.telecomitalia.orchestrator.console.actions.ResubmitAction:
Error setting expression 'songs[0].endDate' with value
'[Ljava.lang.String;@16825b5'
(...)


Reading the manual at
http://struts.apache.org/2.0.11/docs/type-conversion.html it says:
Notice the () notation! Do not use [] notation, which is for Maps
only!
but changing the notation from
songs[%{#stat.index}].property
to
songs(%{#stat.index}).property
in the jsp, the form isn't populated.

--
View this message in context:
http://www.nabble.com/-S2--Beans-list-in-Dynamic-form-and-ParametersInte
rceptor-problem-tp15016850p15022328.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OGNL and action property

2007-12-21 Thread Hernandez, David

Try removing the value attribute:
s:hidden name=brand / 
Although, I believe
s:hidden name=brand value=%{brand}/
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 Dave,


 You would not want to use the # character, just brand.


It works without prefixing it with #. Thanks.

To pass brand value to the action specified in the same page, I use
hidden field but it doesn't work. Can you help me with that? I tried
these and none works.

 s:hidden name=brand value=#brand/ s:hidden name=brand
value=%{#brand}/  s:hidden name=brand
value=%{#parameters.brand}/

Is there a way to set brand value as a request value?

Thanks again.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:
script
var x = s:property value=x /;
/script
inside a JSP file.
You're going to have to be more specific, panpan . . .

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 9:44 AM
To: Struts Users Mailing List
Subject: Re: Can struts2 tag embeded inside javascript

--- panpan [EMAIL PROTECTED] wrote:
 I've been struggling for this problem for several days. Please help me

 out.

Okay.

Non-JSP pages aren't compiled into servlets.

A JavaScript file isn't a JSP page, hence is not compiled into a
servlet, hence has zero notion of custom tags.

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 script src=whatever.jsp /
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.

-Original Message-
From: panpan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 9:51 AM
To: user@struts.apache.org
Subject: Re: Can struts2 tag embeded inside javascript


Thank you Dave. Ok, I see.

Do you anyway I can do to solve my problem?

thanks!


newton.dave wrote:
 
 --- panpan [EMAIL PROTECTED] wrote:
 I've been struggling for this problem for several days. Please help 
 me out.
 
 Okay.
 
 Non-JSP pages aren't compiled into servlets.
 
 A JavaScript file isn't a JSP page, hence is not compiled into a 
 servlet, hence has zero notion of custom tags.
 
 d.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context:
http://www.nabble.com/Can-struts2-tag-embeded-inside-javascript-tf488208
2.html#a13972247
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 code evaluated inside your Java expressions as
per your example.

-Original Message-
From: panpan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 27, 2007 12:47 PM
To: user@struts.apache.org
Subject: S2: concat doesn't work.


In one of my JSP page, I have javascript section code  script
type=text/javascript
 var name = 's:property value=additionalInterests[1].bankName/';
 alert(Name:  + name);
 /script/code
It's working. I can see the valud of the Name.


But the below is not working if replace 1 with a variable code
script type=text/javascript
var number = 1;
 var name = 's:property
value=additionalInterests['+number.toString()+'].bankName/';
 alert(Name:  + name);
 /script/code

The result is empty.

Thanks for your helps!
--
View this message in context:
http://www.nabble.com/S2%3A-concat-doesn%27t-work.-tf4883302.html#a13975
923
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Tooltip and simple theme

2007-11-20 Thread Hernandez, David

I would try rendering with XHTML and then copying and pasting the
resultant Tooltip code into my simple themed page. 

-Original Message-
From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 4:22 PM
To: Struts Users Mailing List
Subject: [S2] Tooltip and simple theme

Hi,

I have an application developed ready for test.  Now I have added
requirement for tooltips for a few components.  I just noticed that
tooltip is only available in xhmtl theme.  How should I implement
tooltips in simple theme?  

Thanks a lot for your help,

Jane

-Original Message-
From: Stefano Greco [mailto:[EMAIL PROTECTED]
Sent: Friday, November 16, 2007 9:55 AM
To: Struts Users Mailing List
Subject: Re: [S2] autocompler + ajax in 2.0.11

I think in the URL

http://struts.apache.org/2.x/docs/ajax-tags.html

say how work in 2.1
but I suppose Ajax should work since 2.0

Stefano


- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, November 16, 2007 3:43 PM
Subject: RE: [S2] autocompler + ajax in 2.0.11


 Ajax has been working for quite awhile in S2.0, it'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-
 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 ajax theme
 as in this example:
 
 html
 head
...
 s:head theme=ajax/
 ..
 /head
 body
 s:form ...
 s:url id=getTeams
 value=/getTeams.action/
 s:autocompleter name=team
 key=label.team
 href=%{getTeams}
theme=ajax autoComplete=true
 loadOnTextChange=true
loadMinimumCount=3
 showDownArrow=false /
 /s:form
 /body
 /html
 
 
 If I put theme=ajax as attribute of autocompleter
 tag as the example
 the label is not visible in HTML rendered.
 
 I I dont use the attribute theme in the tag
 autocomplet it doesnt work
 very well especially for the attribute 
 loadOnTextChange=true
 loadMinimumCount=3 showDownArrow=false
 that aren't rendered in HTML result.
 
 I think it's a BUG?
 Or it's a my mystake?
 
 
 

 -
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - - - - - - - - - - - - - -
 
 This message is intended only for the personal and
 confidential use of the designated recipient(s)
 named above.  If you are not the intended recipient
 of this message you are hereby notified that any
 review, dissemination, distribution or copying of
 this message is strictly prohibited.  This
 communication is for information purposes only and
 should not be regarded as an offer to sell or as a
 solicitation of an offer to buy any financial
 product, an official confirmation of any
 transaction, or as an official statement of Lehman
 Brothers.  Email transmission cannot be guaranteed
 to be secure or error-free.  Therefore, we do not
 represent that this information is complete or
 accurate and it should not be relied upon as such. 
 All information is subject to change without notice.
 
 
 IRS Circular 230 Disclosure:
 Please be advised that any discussion of U.S. tax
 matters contained within this communication
 (including any attachments) is not intended or
 written to be used and cannot be used for the
 purpose of (i) avoiding U.S. tax related penalties
 or (ii) promoting, marketing or recommending to
 another party any transaction or matter addressed
 herein.
 
 
 

 -
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded

RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David

In your action:
class Whatever extends ActionSupport{
User user;
public User getUser(){return User;}
public String execute(){//set User}
}
In jsp:
s:property value=user.memberVariable /

-Original Message-
From: slideharmony [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 10:53 AM
To: user@struts.apache.org
Subject: Re: access to bean property in struts2


I have another question:
it is right in struts2 to put beans in session? Assuming to have an
action that retrieve a bean User from the database; the user have a set
of contracts. I want to iterate this set in a jsp page, which ways have
I to do that? I have to put the bean User in session, or is there
something else i can do? maybe using the value stack?



Thilo Ettelt wrote:
 
 You can expose a property or bean to the JSP Expression language
 (${myPropertyOrBean}) by using s:set taglib.
 
 
 - Thilo
 
 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?




 Hernandez, David wrote:
   
 Set the Bean as a member of the Action class and use:
 s:property value=beanVarName.beanMemberName /

 -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 page?
 I have created an action to creare a new account for a generic user,

 and I want to print in a jsp page the full name of the new user. 
 Usually I put the new User object in session and obtained his 
 properties by this way form the jsp page, but probably there is some
other way with strut2.
 thank you
 --
 View this message in context:
 http://www.nabble.com/access-to-bean-property-in-struts2-tf4815028.h
 tml#
 a13774814
 Sent from the Struts - User mailing list archive at Nabble.com.


 
 - To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 - -
 -
 - - - - - - -

 This message is intended only for the personal and confidential use 
 of the designated recipient(s) named above.  If you are not the 
 intended recipient of this message you are hereby notified that any 
 review, dissemination, distribution or copying of this message is 
 strictly prohibited.  This communication is for information purposes

 only and should not be regarded as an offer to sell or as a 
 solicitation of an offer to buy any financial product, an official 
 confirmation of any transaction, or as an official statement of 
 Lehman Brothers.  Email transmission cannot be guaranteed to be 
 secure or error-free.
 Therefore,
 we do not represent that this information is complete or accurate 
 and it should not be relied upon as such.  All information is 
 subject to change without notice.

 
 IRS Circular 230 Disclosure:
 Please be advised that any discussion of U.S. tax matters contained 
 within this communication (including any attachments) is not 
 intended or written to be used and cannot be used for the purpose of

 (i) avoiding U.S. tax related penalties or (ii) promoting, marketing

 or recommending to another party any transaction or matter addressed

 herein.



 
 - To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context:
http://www.nabble.com/access-to-bean-property-in-struts2-tf4815028.html#
a13795735
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate

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 = new UserDao();
User user = new User();
Service.populate(user);
dao.save(utente);
if(user != null){
return SUCCESS;
}

here is the dao.save method:


public User save(User user){
Utente newuser = null;
begin();
newuser = (User)getSession().save(user); commit(); close(); return
newuser; }

this code throws a ClassCastException: java.lang.Long I have mapped all
correctly, i have the same code that works perfectly in struts, but I
get that exception with struts2. Can anybody help me?
--
View this message in context:
http://www.nabble.com/ClassCastException-tf4821639.html#a13794339
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 ajax theme
as in this example:

html
head
   ...
s:head theme=ajax/
..
/head
body
s:form ...
s:url id=getTeams value=/getTeams.action/
s:autocompleter name=team key=label.team
href=%{getTeams}
   theme=ajax autoComplete=true loadOnTextChange=true
   loadMinimumCount=3 showDownArrow=false /
/s:form
/body
/html


If I put theme=ajax as attribute of autocompleter tag as the example
the label is not visible in HTML rendered.

I I dont use the attribute theme in the tag autocomplet it doesnt work
very well especially for the attribute  loadOnTextChange=true
loadMinimumCount=3 showDownArrow=false
that aren't rendered in HTML result.

I think it's a BUG?
Or it's a my mystake?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:

action name=admin class=com.lehman.maps.servlet.AdminAction
method=execute
result/adminPage.jsp/result
result name=input/error.jsp/result
/action

Anyone know why this could be happening?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Form Formatting

2007-11-16 Thread Hernandez, David

Yeah, I wanted to keep the label attribute, I mean it's not a big deal
to add it myself. I was just wondering if there was some shortcut I was
missing. Thanks anyway . . . 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 1:58 PM
To: Struts 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 can always set the theme on a tag-by-tag basis via the theme
attribute:

s:textfield ... theme=simple/

but it may not provide all the functionality you want.

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: access to bean property in struts2

2007-11-16 Thread Hernandez, David

Sorry, if you want to iterate through the contracts, let's say they're
members of User (name contracts) in jsp:
s:iterate value=user.contracts
s:property value=someMemberOfContracts /
/s:iterate

-Original Message-
From: slideharmony [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 10:53 AM
To: user@struts.apache.org
Subject: Re: access to bean property in struts2


I have another question:
it is right in struts2 to put beans in session? Assuming to have an
action that retrieve a bean User from the database; the user have a set
of contracts. I want to iterate this set in a jsp page, which ways have
I to do that? I have to put the bean User in session, or is there
something else i can do? maybe using the value stack?



Thilo Ettelt wrote:
 
 You can expose a property or bean to the JSP Expression language
 (${myPropertyOrBean}) by using s:set taglib.
 
 
 - Thilo
 
 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?




 Hernandez, David wrote:
   
 Set the Bean as a member of the Action class and use:
 s:property value=beanVarName.beanMemberName /

 -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 page?
 I have created an action to creare a new account for a generic user,

 and I want to print in a jsp page the full name of the new user. 
 Usually I put the new User object in session and obtained his 
 properties by this way form the jsp page, but probably there is some
other way with strut2.
 thank you
 --
 View this message in context:
 http://www.nabble.com/access-to-bean-property-in-struts2-tf4815028.h
 tml#
 a13774814
 Sent from the Struts - User mailing list archive at Nabble.com.


 
 - To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 - -
 -
 - - - - - - -

 This message is intended only for the personal and confidential use 
 of the designated recipient(s) named above.  If you are not the 
 intended recipient of this message you are hereby notified that any 
 review, dissemination, distribution or copying of this message is 
 strictly prohibited.  This communication is for information purposes

 only and should not be regarded as an offer to sell or as a 
 solicitation of an offer to buy any financial product, an official 
 confirmation of any transaction, or as an official statement of 
 Lehman Brothers.  Email transmission cannot be guaranteed to be 
 secure or error-free.
 Therefore,
 we do not represent that this information is complete or accurate 
 and it should not be relied upon as such.  All information is 
 subject to change without notice.

 
 IRS Circular 230 Disclosure:
 Please be advised that any discussion of U.S. tax matters contained 
 within this communication (including any attachments) is not 
 intended or written to be used and cannot be used for the purpose of

 (i) avoiding U.S. tax related penalties or (ii) promoting, marketing

 or recommending to another party any transaction or matter addressed

 herein.



 
 - To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context:
http://www.nabble.com/access-to-bean-property-in-struts2-tf4815028.html#
a13795735
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate

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 ajax to submit a value and calling a
method on an action? Currently I am just having a select with a name
that maps to a value via OGNL, then just using javascript to read and
submit the value onchange.

I keep thinking struts does this out of the box?


Thanks,
James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:
s:property value=beanVarName.beanMemberName / 

-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 page?
I have created an action to creare a new account for a generic user, and
I want to print in a jsp page the full name of the new user. Usually I
put the new User object in session and obtained his properties by this
way form the jsp page, but probably there is some other way with strut2.
thank you
--
View this message in context:
http://www.nabble.com/access-to-bean-property-in-struts2-tf4815028.html#
a13774814
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:
s:form action=setBuilding method=POST
s:textfield name=name value=name /
s:textfield name=streetAddress value=streetAddress /
s:textfield name=latitude value=latitude /
s:textfield name=longitude value=longitude /
s:checkbox  name=active value=active /
s:textfield name=zip value=zip /
/s:form

Should I have the bean extend ActionSupport and implement the execute
method? That seems like it would be a violation of the MVC model . . .
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 List
Subject: Re: Form Submission Question

--- Gary Affonso [EMAIL PROTECTED] wrote:
 Dave Newton wrote:
 The action that *processes* the form submission may extend 
 ActionSupport.
 
 Dave knows that, of course, but I didn't want the emphasis on  
 *processes* above to make you think ActionSupport was only 
 appropriate for form processing actions.

Yep, that was a good clarificaton to make :)

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 
{
private static final long serialVersionUID =
6692492667406189130L;
private Building building;
public String init() throws Exception 
{
//Fetch Building from db . . .
return ActionSupport.SUCCESS;
}
public String execute() throws Exception
{
System.out.println(Submitting: );
System.out.println(building);//PRINTS NULL!
return ActionSupport.SUCCESS;
}
public void setBuilding(Building b)
{
building = b;
}
public Building getBuilding()
{
return building;
}
}

Here's the JSP Form:
s:form action=setBuilding method=POST
s:push value=building
s:textfield label=Name name=name /
s:textfield label=Address name=streetAddress /
s:textfield label=Lat name=latitude /
s:textfield label=Long name=longitude /
s:checkbox  label=Active name=active /
s:textfield label=Zip name=zip /
s:submit /
/s:push
/s:form

And Struts.xml exerpt:
action name=form class=BuildingFormTestAction method=init
result/buildingFormTest.jsp/result
result name=input/error.jsp/result
/action
action name=setBuilding class=BuildingFormTestAction
method=execute
result/buildingFormTest.jsp/result
result name=error/error.jsp/result
/action

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 15, 2007 2:20 PM
To: Struts Users Mailing List
Subject: Re: Form Submission Question

--- Gary Affonso [EMAIL PROTECTED] wrote:
 Dave Newton wrote:
 The action that *processes* the form submission may extend 
 ActionSupport.
 
 Dave knows that, of course, but I didn't want the emphasis on  
 *processes* above to make you think ActionSupport was only 
 appropriate for form processing actions.

Yep, that was a good clarificaton to make :)

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: Thursday, November 15, 2007 3:12 PM
To: 'Struts Users Mailing List'
Subject: RE: Form Submission Question

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 {
private static final long serialVersionUID =
6692492667406189130L;
private Building building;
public String init() throws Exception 
{
//Fetch Building from db . . .
return ActionSupport.SUCCESS;
}
public String execute() throws Exception
{
System.out.println(Submitting: );
System.out.println(building);//PRINTS NULL!
return ActionSupport.SUCCESS;
}
public void setBuilding(Building b)
{
building = b;
}
public Building getBuilding()
{
return building;
}
}

Here's the JSP Form:
s:form action=setBuilding method=POST
s:push value=building
s:textfield label=Name name=name /
s:textfield label=Address name=streetAddress /
s:textfield label=Lat name=latitude /
s:textfield label=Long name=longitude /
s:checkbox  label=Active name=active /
s:textfield label=Zip name=zip /
s:submit /
/s:push
/s:form

And Struts.xml exerpt:
action name=form class=BuildingFormTestAction method=init
result/buildingFormTest.jsp/result
result name=input/error.jsp/result /action action
name=setBuilding class=BuildingFormTestAction method=execute
result/buildingFormTest.jsp/result
result name=error/error.jsp/result /action

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 2:20 PM
To: Struts Users Mailing List
Subject: Re: Form Submission Question

--- Gary Affonso [EMAIL PROTECTED] wrote:
 Dave Newton wrote:
 The action that *processes* the form submission may extend 
 ActionSupport.
 
 Dave knows that, of course, but I didn't want the emphasis on 
 *processes* above to make you think ActionSupport was only 
 appropriate for form processing actions.

Yep, that was a good clarificaton to make :)

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this 
communication (including any attachments) is not intended or written to be used 
and cannot be used for the purpose of (i) avoiding U.S. tax related penalties 
or (ii) promoting, marketing or recommending to another party any transaction 
or matter addressed herein.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]