RE: Struts1 or Struts2

2009-06-25 Thread Mitchell, Steven
Chris, My opinion is that you will take an initial productivity hit while the team gets accustomed to the new JSP tags. That is what took me the longest. I also switched from Tiles to SiteMesh, which like much better. My recommendation is to pick one person to do the first small, benchmark applic

Gracefully continuing an interrupted action flow

2009-06-19 Thread Mitchell, Steven
Is there a best practice for capturing a user's original destination when interrupting a request with an interceptor with the intention of allowing them to continue on their way later... like form authentication does? In my case I have a "Cookie Enforcer Interceptor" that checks for the presence of

RE: Performance issue with large data(such as images)

2009-06-10 Thread Mitchell, Steven
This is a little off topic, but can anybody recommend a photo resizing utility to run after the upload? I too have a need to allow the user to upload a user photo, which could be stored in a BLOB, but I know it is not that simple. Many sites do post processing to adjust the image resolution, s

RE: Interceptor - Conditional "Redirect" to alternate action

2009-06-08 Thread Mitchell, Steven
the check and return the string if the conditions are met and action.invoke otherwise. -Wes On Mon, Jun 8, 2009 at 10:09 AM, Mitchell, Steven wrote: > I need to put an interceptor after the cookie interceptor that will send > the user to a preference page if a preference cookie is missin

Interceptor - Conditional "Redirect" to alternate action

2009-06-08 Thread Mitchell, Steven
I need to put an interceptor after the cookie interceptor that will send the user to a preference page if a preference cookie is missing rather than let the desired action fire--like a guard condition. If I was using a Filter I would just do a redirect. Eventually I will also add a Flash shared o

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-05 Thread Mitchell, Steven
Changing my mapping to *.action broke my submit buttons. I had to add ".action" to my form action parameter (action="myAction.action"). Is there some other setting to accomplish the same thing? -Original Message- From: Struts Two [mailto:struts...@yahoo.ca] Sent: Thursday, June 04, 2009 7

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
UDPATE: WebSphere 6.1.0.23 did indeed fix our basic auth issue with Struts 2.1.6. It now successfully challenges the user if the try to access a protected Struts action. It did not fix the welcome file issue (using index.html). I think I will retest Wes's suggestion to use index.action with a co

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
s has been very slow. //not really trying to stir the pot (well, maybe a little) -Wes On Thu, Jun 4, 2009 at 12:11 PM, Mitchell, Steven wrote: > Half of this problem has been solved--the important half.  During testing I > disabled security to verify that all of the Struts2 mappings worked

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
ssage- From: Mitchell, Steven Sent: Wednesday, June 03, 2009 4:48 PM To: 'Struts Users Mailing List' Subject: RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml Wes, That was an interesting exercise. I changed my welcome-file to be "index.action", added th

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Mitchell, Steven
've asked the WAS Admin to bump us up to 6.1.0.23 and I'll continue testing tomorrow. Thank you for your suggestion. Steve Mitchell http://www.ByteworksInc.com -Original Message- From: Mitchell, Steven [mailto:steven.mitch...@umb.com] Sent: Wednesday, June 03, 2009 4:18 PM

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Mitchell, Steven
.6 on WAS 6.1 breaks welcome-file in web.xml On Wed, Jun 3, 2009 at 4:54 PM, Mitchell, Steven wrote: [...] > >     Error 404: SRVE0190E: File not found: /secure/MySecureAction.action [...] I don't know about all of the problems, but one thing that might help you understand this a litt

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Mitchell, Steven
I'm down to two issues: BROKEN WELCOME-FILE WebSphere 6.1.0.19 fails to return the welcome-file from the web.xml when presented with the root URL http://myServer/myContext/ of the project. Instead, the request falls through to the Struts2 filter which returns a 404: Error 404: There is no

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-03 Thread Mitchell, Steven
Struts Two, Two steps forward, three steps back. Switching from index.jsp to index.html required some JavaScript to replace <%= request.getContextPath %>, and it behaved differently on WebSphere than Tomcat so I had to check whether the page name was returned. Below is the JavaScript I came up w

Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-02 Thread Mitchell, Steven
Having learned that form-based authentication currently does not currently work with Struts 2.1.x on WAS 6.1 or WAS 7 I stepped back to see what does work. I gutted my web.xml and struts.xml and set about turning things on one at a time. This is what I found: 1. Basic hello world app with

RE: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Mitchell, Steven
I will look at that. Meanwhile, I found that WAS logged an error (this was after the WAS admin tried changing the filter from /* to /[my context]/* --Start of DE processing-- = [5/29/09 13:50:09:369 CDT] , key = javax.servlet.ServletException com.ibm.ws.webcontainer.servlet.ServletWrapper

WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Mitchell, Steven
I'm still trying to get Struts 2.1.6 deployed on WAS 6.1. I'm fighting a couple of related issues. Index.jsp forwards to /MyContext/myNamespace/myAction.action, but gets this error: There is no Action mapped for namespace / and action name . - [unknown location] If I type http://myServer/my

RE: Struts 2 dispatcher does not see namespace and action in URL

2009-05-26 Thread Mitchell, Steven
] Sent: Tuesday, May 26, 2009 1:48 PM To: Struts Users Mailing List Subject: RE: Struts 2 dispatcher does not see namespace and action in URL Do you have Basic or Form based authentication enabled in your web.xml? --- On Tue, 5/26/09, Mitchell, Steven wrote: > From: Mitchell, Steven > S

RE: Struts 2 dispatcher does not see namespace and action in URL

2009-05-26 Thread Mitchell, Steven
, com.ibm.ws.webcontainer.filter.WebAppFilterChain, or com.ibm.ws.wswebcontainer.filter.WebAppFilterManager simply because they are the previous three classes in the stack trace. I'll keep Googling. Any other ideas? -Original Message- From: Mitchell, Steven [mailto:steven.mitch...@um

Struts 2 dispatcher does not see namespace and action in URL

2009-05-26 Thread Mitchell, Steven
I have a Struts 2 application that runs fine under Tomcat 5.5 that will not run on a fully patched version of WebSphere 6.1. The application index.jsp page redirects to a mapped namespace and action, yet the Struts 2 dispatcher does not see the namespace or action. It issues the message "There is

RE: Testing Struts With JUnit

2005-08-19 Thread Mitchell, Steven C
Luiz, Are you aware that there is an extension of Junit made for testing Struts? http://strutstestcase.sourceforge.net/ -Original Message- From: Luiz Godoy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 3:22 PM To: Struts Users Mailing List Subject: Testing Struts With JUnit

RE: Question on log on with SecurityFilter and JDBCRealm

2005-08-19 Thread Mitchell, Steven C
contextInitializer com.umb.optout.view.ContextInitializerFilter contextInitializer /secured/* Steve -Original Message- From: C.F. Scheidecker Antunes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 5:19 PM To: Struts Users Mailing List; Mitchell, Steven C Subject: Re: Question on l

RE: Question on log on with SecurityFilter and JDBCRealm

2005-08-18 Thread Mitchell, Steven C
Have you considered using a Filter to put the extra stuff in your Session? We use an initialization Filter that looks up a User record based on the authenticated user id. We then place that User object both in the Session and a thread local variable so that it is available to all the layers of ou

Passing data between action forms

2005-07-08 Thread Mitchell, Steven C
I'm curious to hear what other people are doing regarding the passing of data between actions. Take for example an advanced search page with validation, drop down lists, the works. Upon successful validation the user should flow to a search results page. Assume the results page is part of someth