Re: Struts and Windows Authentication

2008-02-01 Thread Cory D. Wiles
At my job we authenticate our users directly using Active Directory using container managed security. What container are you using? On Feb 1, 2008 4:48 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/2/1, Arun [EMAIL PROTECTED]: Hi, I have a web application in which I need to

Radio Button Validation - Struts 2

2007-10-17 Thread Cory D. Wiles
How does one use server-side validation (requiredstring) for radio buttons? Thanks, Cory

Setting/Accessing List Size on JSP

2007-10-01 Thread Cory D. Wiles
How do I set/display the size of my list in the result of my jsp? I am able to check for the size in my iterator tag, but I would like to be able to display the size as a property. I have tried the following and it didn't work. s:set name=myListSize value=%{#attr['myList'].size}/ s:property

Re: Setting/Accessing List Size on JSP

2007-10-01 Thread Cory D. Wiles
I was able to get it like: s:set name=myListSize value=%{myList.size}/ On 10/1/07, Gabriel Belingueres [EMAIL PROTECTED] wrote: try: s:set name=myListSize value=myList.size()/ 2007/10/1, Cory D. Wiles [EMAIL PROTECTED]: How do I set/display the size of my list in the result of my jsp? I

Re: [S2] ScopedModelDriven issues [newbie]

2007-09-29 Thread Cory D. Wiles
Wouldn't you also have to include the SessionAware interceptor in your myForm stack as well as implement the SessionAware Interface or is that over kill for scopedModelDriven? On 9/28/07, ghodgins [EMAIL PROTECTED] wrote: Does anyone have a working example using the scopedModelDriven

Re: Struts Tag Question

2007-09-28 Thread Cory D. Wiles
This is how I do it: /* drugClassPropsSrv is my map */ s:if test=drugClassPropsSrvc.size 0 s:iterator value=%{drugClassPropsSrvc} id=prop tr th scope=rows:property value=#prop.key//th s:if test=#prop.value eq 'Yes'

Wildcard in package.properties for form validation (S2)

2007-09-26 Thread Cory D. Wiles
Does anyone have a possible solution for using wild cards in error messages for form validation? In my package.properties I have: arc.screen.required.error.message = {0} is a required field How does my validation need to be formatted to accept a parameter for the message? !DOCTYPE validators

Re: Wildcard in package.properties for form validation (S2)

2007-09-26 Thread Cory D. Wiles
I looked at that documentation but don't understand why the name property is being used as opposed to the label property. On 9/26/07, Dave Newton [EMAIL PROTECTED] wrote: http://struts.apache.org/2.x/docs/localizing-output.html --- Cory D. Wiles [EMAIL PROTECTED] wrote: Does anyone have

Validation Bypassed

2007-09-25 Thread Cory D. Wiles
I am having trouble outputting my validation error messages. I know that the validation is being fired off, but the actionmessages/errors aren't being displayed. Validator File: !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN

Re: Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread Cory D. Wiles
The problem is that the container is out of memory. There are a number of different ways to either up the memory for the container, but it might be easier to just kill the embedded tomcat process and then redeploy the app inside of netbeans. Thanks, Cory On 9/24/07, kushi [EMAIL PROTECTED]

Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
What is considered the best practice for accessing request parameters inside of an action? For example if I have a URL: steptwo.action?previousaction=index.action then how do I access previous action? Thanks, Cory

Re: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
beforehand. There are a few tutorials available online (including my own at http://www.wantii.com/wordpress/?cat=3) -W -Original Message- From: Cory D. Wiles [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 3:30 PM To: Struts Users Mailing List Subject: Accessing Request

Re: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
be creating parameters on the fly based on some other criteria. Most of the time, you should be able to stick to the getters/setters. If a time comes that your request processing doesn't fit into that model, then implement parameteraware. -Wes -Original Message- From: Cory D. Wiles [mailto

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Cory D. Wiles
Example code: s:iterator value=%{drugClassPropsSrvc} id=prop tr th scope=rows:property value=#prop.key//th s:if test=#prop.value eq 'Yes' th scope=rows:property value=#prop.value//th /s:if

Re: [S2] action mappings help

2007-09-19 Thread Cory D. Wiles
If you are trying to truly redirect then the below line is your problem. It is trying to forward not redirect. jsp:forward page=/myapp/subfolder/welcome.action/ Use: % String redirectAction = /myapp/subfolder/welcome.action; response.sendRedirect(redirectAction); % On 9/19/07, Eugen

Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
I have an action that returns a hash map that I need to output both the key and value, but I can't figure out how to access each property with s:iterate. Any suggestions would help. The HashMap is being set in my action and returned populated (verified with s:debug/). // Action snippet Iterator

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
-Original Message- From: Cory D. Wiles [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 2:28 PM To: user@struts.apache.org Subject: Iterate Hashmap with s:iterate I have an action that returns a hash map that I need to output both the key and value, but I can't figure out

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
It is still not working the way that I want to, but I do appreciate the help. I'll just have to keep plugging away at it. Thanks, Cory On 9/12/07, Dave Newton [EMAIL PROTECTED] wrote: The OGNL manual. http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html --- Cory D. Wiles

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
to work OK, though I'm a little curious about the inclusion of the double parentheses at the end of entrySet -- OGNL, as far as I am concerned, is a bit of strange beast. Josh On 9/12/07, Cory D. Wiles [EMAIL PROTECTED] wrote: It is still not working the way that I want to, but I do appreciate