Text formatting

2008-04-16 Thread Hartrich, James CTR USTRANSCOM J6
Struts2.0.9 Has anyone successfully formatted a number 555 into 555-. MyAction.properties: format.telephone={0,number,###-} My.jsp: s:action name=myaction/ s:text name=format.telephone s:param name=value value=myTeleValue/

interceptor throwing global exception

2008-03-26 Thread Hartrich, James CTR USTRANSCOM J6
I'm struggling with configuring struts.xml global-results and global-exception-mappings for any exception thrown from an interceptor. What do I need to do to keep a request out of my action and instead go to the configured global-result? James smime.p7s Description: S/MIME cryptographic

2.0.9 UnknownClassVersionError

2007-08-15 Thread Hartrich, James CTR USTRANSCOM J6
I'm getting an UnknownClassVersion error during struts2.0.9 deployment to tomcat with java 1.5.0.0.3 Is struts 2.0.9 entirely compiled in java 6? James Hartrich

S2: HashMap - from jsp to action

2007-08-08 Thread Hartrich, James CTR USTRANSCOM J6
I'm iterating a collection (keys) from s:action to get corresponding hashmap (values) from aforementioned s:action then creating multiple s:select. Does anyone know how to construct a hashmap with ognl on a jsp? What type is then needed on the action to populate the hashmap? James

RE: Need Assistance Locating Redirect Bug

2007-07-16 Thread Hartrich, James CTR USTRANSCOM J6
Sorry I didn't get back to you today. My cpu fan died over the weekend. Lol, help finally arrived and I'm back in business. I'm out of the office tomorrow, so I'll try you Wednesday. -Original Message- From: Ferguson, Jason M TSgt 375 CSPTS/SCE [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: [Struts 2] Tiles plugin tutorial?

2007-07-10 Thread Hartrich, James CTR USTRANSCOM J6
Your web.xml file can have a listener for StrutsTilesListener. Make sure your TilesInterceptor is implemented. -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:54 PM To: 'Struts Users Mailing List' Subject: RE: [Struts 2] Tiles plugin

nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
How would one iterate a bean's collectionhashmap row values by key of bean's collectionstring columnName? Here's what I have on the jsp: s:iterator id=row value=bean.tableColumnData status=rowStatus s:iterator id=columnName value=bean.tableColumns status=status s:property

RE: nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
Quick follow up to correct myself. This works: s:property value=#row[(#columnName)]/ I referenced the following documentation http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/expressionEva luation.html James -Original Message- From: Hartrich, James CTR USTRANSCOM J6 [mailto

RE: ParameterInterceptor

2007-06-07 Thread Hartrich, James CTR USTRANSCOM J6
Try name=foo.bar rather than name=Foo.bar in your jsp. The how and why is out of my scope. Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 3:35 PM To: Struts Users Mailing List Subject: ParameterInterceptor I think I

s2 app reload

2007-04-20 Thread Hartrich, James CTR USTRANSCOM J6
I want to add a new namespace to the struts.xml on the fly. Is there a way to detect this change and reload the app context? I'm trying to avoid reloading the app in the tomcat manager. James - To unsubscribe, e-mail: [EMAIL

RE: [s2] checkboxlist tag problem

2007-04-19 Thread Hartrich, James CTR USTRANSCOM J6
Looks like you need s:checkboxlist name=user.roles instead of name=user.roles.roleId. Be sure roles is set on the user object from the action. I'm doing two collections. #1 for the full list of checkboxes and #2 for the boxes I want pre-checked. What are you doing with the attribute id=roles?

s:action S2 Tiles

2007-04-11 Thread Hartrich, James CTR USTRANSCOM J6
Does anyone know of any existing issues with result type of stream using s:action within tiles? I'm getting an illegal state exception when using s:action executeresult = true The struts.xml result type = stream and the stream is actually html to render on the client/browser. If I skip the

RE: Tiles 2 woes

2007-04-11 Thread Hartrich, James CTR USTRANSCOM J6
Layout.jsp %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles; % tiles:insertAttribute name=bar/ Tiles.xml definition name=foo template=/Layout.jsp put name=bar value=/bar.jsp/ /definition Hope this helps. -Original

RE: populating a bean

2007-04-06 Thread Hartrich, James CTR USTRANSCOM J6
So you are going from the jsp to the action, correct? That being the case, you are doing this correctly so far. Make certain to have an encapsulated property for accountBean in your accountManager action. On submit the accountBean object will be constructed and setFirstName will be called. The

dojo and struts2 s:combobox

2007-03-23 Thread Hartrich, James CTR USTRANSCOM J6
Has anyone experienced a problem with s:combobox name=object.property? I think the . is throwing dojo for a loop. What happens is the onSelect event stops working if I use the . notation -- name=object.property Any suggestions?

s:checkboxlist

2007-03-20 Thread Hartrich, James CTR USTRANSCOM J6
Is there a way to pre-check boxes that meet criteria? I have 2 lists, listA is for all the checkboxes and listB is for checkboxes that will be pre-checked. s:checkboxlist label=Registration list=#allreglist.regList listKey=regId listValue=regNm

S2 s:optiontransferselect

2007-03-08 Thread Hartrich, James CTR USTRANSCOM J6
Has anyone experienced a problem setting a list into the action using s:optiontransferselect? Is there a specific theme that must be used? I'm getting a null in my action. In my tag I have name=available, and in my action I have a global/encapsulated List named available. -Original

S2 Tiles exception

2007-02-22 Thread Hartrich, James CTR USTRANSCOM J6
struts2-core-2.0.5.jar xwork-2.0.0.jar S2-tiles-plugin-2.0.5 tiles-core-2.0-20070130.184344-3.jar tiles-api-2.0-20070130.184344-3.jar I have an org.apache.tiles.TilesException from BasicTilesContainer.java. Does anyone know if the following configuration is incorrect? Thanks! 1) web.xml

RE: Empty request parameters with enctype set to multipart/form-data

2007-02-15 Thread Hartrich, James CTR USTRANSCOM J6
I believe there was a previous problem with FilterDispatcher.doFilter() Cheers! -Original Message- From: Karsten Voges [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 9:17 AM To: Struts Users Mailing List Subject: Re: Empty request parameters with enctype set to

S2: static-parameters

2007-02-06 Thread Hartrich, James CTR USTRANSCOM J6
Null beans are not being instantiated in the action on request. Where are static parameters such as CREATE_NULL_OBJECT set on the action? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Need help debugging Struts application

2007-02-02 Thread Hartrich, James CTR USTRANSCOM J6
Sounds like you have a problem interpreting the index within your nested c:forEach. Share your jsp iteration code. -Original Message- From: Himstedt, Maik [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 9:24 AM To: 'user@struts.apache.org' Subject: Need help debugging Struts

RE: General question

2007-02-01 Thread Hartrich, James CTR USTRANSCOM J6
Are you talking about different browser windows or just new tabs in the same browser? Perhaps try an application scoped variable that tests the current user, allowing only one instance of the user to operate the app. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent:

RE: [s2] multi part plugin

2007-01-31 Thread Hartrich, James CTR USTRANSCOM J6
And the same thing I reported last month. Corrected with a new FilterDispatcher class implementing Filter StrutsStatics. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 7:40 PM To: Struts Users Mailing List Subject: Re: [s2] multi part

S2 - allowedTypes

2007-01-24 Thread Hartrich, James CTR USTRANSCOM J6
The allowedTypes param of FileUploadStack is working correctly however upon return input (S2 default) I'm losing request parameters. How can I configure S2 to return a specific inputUpdate? Or how can I retrieve my request params within my actions.input()?

RE: Accessing files from file server

2007-01-11 Thread Hartrich, James CTR USTRANSCOM J6
I believe what you need to do is start your tomcat service as a tomcat-user who specifically has access to the file server. -Original Message- From: Priya Khanna [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 1:39 AM To: user@struts.apache.org Subject: Accessing files from