RE: Inline downloading of file with Struts 1.2

2009-11-03 Thread Mike Baranski
-Original Message- From: Daniele Development-ML [mailto:daniele@googlemail.com] Sent: Tuesday, November 03, 2009 8:58 AM To: Struts Users Mailing List Subject: Re: Inline downloading of file with Struts 1.2 Hello, I was wondering if any of the more experience people have suggestion

RE: Adding Json to existing action

2009-10-27 Thread Mike Baranski
I do this to pass parameters, using prototype js: s:set name=foo value=%{'door' + door.id}/ s:set name=form_name value=%{'form_door' + door.id}/ s:set name=door_description value=getText(#foo)/ s:if test=door.state == 1 s:url id=door_url

RE: Show jsps from different directories based on theme

2009-10-21 Thread Mike Baranski
If you're using S2, you could always return the 'theme1' or 'theme2' result in your action class and have the mapping for it. That's absolutely a disgusting idea, think about 10 themes, and add to that user installable themes... A switch() at end of each of the action methods... no way.

Show jsps from different directories based on theme

2009-10-20 Thread Mike Baranski
So, I want to ship 2 versions (or more) of my views. The will be in /pages/jsps/theme1/x.jsp and /pages/jsps/theme2/x.jsp I want the user to be allowed to set the theme, and my result tag in the xml be something like: /pages/jsps/{selected_theme}/x.jsp Can I do that?

RE: How to get value of tag attribute from OGNL?

2009-10-13 Thread Mike Baranski
Why not use this? http://struts.apache.org/2.1.6/docs/set.html -Original Message- From: Alex Siman [mailto:aleksandr.si...@gmail.com] Sent: Tuesday, October 13, 2009 9:25 AM To: user@struts.apache.org Subject: Re: How to get value of tag attribute from OGNL? OK, I figured out how to get

RE: Do something based on existence of action error - How?

2009-10-09 Thread Mike Baranski
I put the following in a DIV at the top of every page: %@ taglib prefix=s uri=/struts-tags % s:include value=/pages/common/jsps/header.jsp / body div id='top_div' h1s:text name=co_title//h1 s:include value=/pages/common/jsps/menu.jsp

Custom Property Tag

2009-10-06 Thread Mike Baranski
I need to show certain fields to certain users based on permissions (per-user). I was going to create a custom s:property tag, which would access an IUser object on the value stack. In the tag, it will do: If (getUser().canAccess('property_name')) Then Render the tag/value Else Render nothing

RE: Custom Property Tag

2009-10-06 Thread Mike Baranski
is pretty simple, check the source of the bean that the struts-default.xml defines for an example). -Wes On Tue, Oct 6, 2009 at 10:36 AM, Mike Baranski list-subscripti...@secmgmt.com wrote: I need to show certain fields to certain users based on permissions (per-user).  I was going to create

RE: Create new theme in struts Tutorial

2009-10-01 Thread Mike Baranski
This should get you started, it took me forever to figure it all out... http://mikeski.net/site/node/16 -Original Message- From: Eduard Neuwirt [mailto:eduard.neuw...@googlemail.com] Sent: Wednesday, September 30, 2009 3:33 PM To: Struts Users Mailing List Subject: Re: Create new theme

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
sure it's something stupid). Thanks! -Original Message- From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] Sent: Wednesday, September 23, 2009 2:17 PM To: 'Struts Users Mailing List' Subject: RE: Interceptor IOC with Spring Doh! Sorry for the goose chase, I'll review my code

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
Subject: Re: Interceptor IOC with Spring What do you have default-autowire set to in your applicationContext.xml? (*Chris*) On Thu, Sep 24, 2009 at 8:08 AM, Mike Baranski list-subscripti...@secmgmt.com wrote: OK, I'm stuck. applicationContext.xml (snipped): bean id=sMCBaseAction class

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
, 2009 at 8:45 AM, Mike Baranski list-subscripti...@secmgmt.com wrote: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:util=http://www.springframework.org/schema/util; xsi:schemaLocation=http

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
for it to your interceptor. See if that one gets injected, but not the original. (*Chris*) On Thu, Sep 24, 2009 at 8:54 AM, Mike Baranski list-subscripti...@secmgmt.com wrote: Yes, and my other interceptor has my data source injected, and it's setup the same way... -Original Message

Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
Correct me if I'm wrong, please, but if I have an interceptor, it should get injected by spring. I have a bean I'm expecting, the set method written, and the bean defined in applicationContext. My main struts.xml has: constant name=struts.objectFactory

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
and results do net get dependencies injected. If you implement BeanFactoryAware, or ApplicationContextAware it will pass you the bean factory or the context. I will take a look at this, as it has been bothering me for a while. musachy On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski list-subscripti

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
*) On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski list-subscripti...@secmgmt.com wrote: Correct me if I'm wrong, please, but if I have an interceptor, it should get injected by spring. I have a bean I'm expecting, the set method written, and the bean defined in applicationContext. My main

RE: Calling an init method on an interceptor

2009-09-17 Thread Mike Baranski
Users Mailing List Subject: Re: Calling an init method on an interceptor Mike Baranski wrote: I'm using Spring IOC, and need struts to call an init() method on an interceptor *after* spring does its injection. If you can detect in code when all the injections are done (all associated private

RE: Calling an init method on an interceptor

2009-09-17 Thread Mike Baranski
-Original Message- From: Marty Milligan [mailto:milligansisl...@gmail.com] Sent: Thursday, September 17, 2009 11:43 AM To: Struts Users Mailing List Subject: Re: Calling an init method on an interceptor On Thu, Sep 17, 2009 at 10:19 AM, Mike Baranski list-subscripti...@secmgmt.com wrote

RE: Calling an init method on an interceptor

2009-09-17 Thread Mike Baranski
-Original Message- From: Marty Milligan [mailto:milligansisl...@gmail.com] Sent: Thursday, September 17, 2009 2:16 PM To: Struts Users Mailing List Subject: Re: Calling an init method on an interceptor On Thu, Sep 17, 2009 at 1:03 PM, Mike Baranski list-subscripti...@secmgmt.com wrote

Calling an init method on an interceptor

2009-09-16 Thread Mike Baranski
I'm using Spring IOC, and need struts to call an init() method on an interceptor *after* spring does its injection. Can someone help, I'm stumped... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

RE: [S2] Accessing objects in the Spring context?

2009-09-09 Thread Mike Baranski
Why not have a base action that has the setters and getters (which extends ActionSupport), put the methods in there, and have all your actions extend that instead of ActionSupport. Mike. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Tuesday, September 08, 2009

Interceptor question

2009-09-09 Thread Mike Baranski
I have a question about an interceptor. If I run an interceptor on an action, then redirect, is the same interceptor run on the redirected-to action? I'm redirecting to a change password page if a password is over x days old, so do I need to specify a different interceptor stack for the change

RE: Session variables in s:radio buttons - preselection and formatting?

2009-09-02 Thread Mike Baranski
For #1, I don't know. For #2, I did exactly that, see here: http://mikeski.net/site/node/16 Mike. -Original Message- From: Dave Belfer-Shevett [mailto:d...@homeport.org] Sent: Wednesday, September 02, 2009 4:34 PM To: Struts Users Mailing List Subject: Session variables in s:radio

RE: ResourceBundle with DB backend

2009-08-31 Thread Mike Baranski
: ResourceBundle with DB backend - Original Message From: Mike Baranski list-subscripti...@secmgmt.com To: Struts Users Mailing List user@struts.apache.org Sent: Friday, August 28, 2009 9:22:06 AM Subject: RE: ResourceBundle with DB backend I've done it, you just implement the proper classes

RE: Next GA release?

2009-08-28 Thread Mike Baranski
Try this thread: http://www.nabble.com/2.1.8--to25119398.html -Original Message- From: Robert Graf-Waczenski [mailto:r...@lsoft.com] Sent: Friday, August 28, 2009 7:46 AM To: Struts Users Mailing List Subject: Next GA release? Hi, some time ago there was a release of Struts V 2.1.7 in

RE: ResourceBundle with DB backend

2009-08-28 Thread Mike Baranski
I've done it, you just implement the proper classes and tell your application to use them instead. I use a derby back-end. I can post a tutorial later if you'd like. -Original Message- From: Tommy Pham [mailto:tommy...@yahoo.com] Sent: Friday, August 28, 2009 12:17 PM To:

RE: ResourceBundle with DB backend

2009-08-28 Thread Mike Baranski
-Original Message- From: Tommy Pham [mailto:tommy...@yahoo.com] Sent: Friday, August 28, 2009 12:44 PM To: Struts Users Mailing List Subject: Re: ResourceBundle with DB backend - Original Message From: Mike Baranski list-subscripti...@secmgmt.com To: Struts Users Mailing List

Redirect NullPointerException

2009-08-26 Thread Mike Baranski
action name=savePassword class=com.secmgmt.struts2.actions.auth.SavePassword result name=success type=redirect param name=actionNameindex/param param name=namespace/default/param

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
Lindholm [mailto:greg.lindh...@gmail.com] Sent: Wednesday, August 26, 2009 10:18 AM To: Struts Users Mailing List Subject: Re: Redirect NullPointerException A stack trace and some context might help you get an answer. On Wed, Aug 26, 2009 at 10:16 AM, Mike Baranski list-subscripti...@secmgmt.com wrote

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
Thanks, that worked. -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Wednesday, August 26, 2009 10:33 AM To: Struts Users Mailing List Subject: Re: Redirect NullPointerException 2009/8/26 Mike Baranski list-subscripti...@secmgmt.com: OK, the form

Password Input

2009-03-06 Thread Mike Baranski
s:password label=Password name=password1 value=%{''} size=10 maxLength='15' / That, for some reason, is calling getPassword... can someone tell me why it is not blank with the value explicitly set? - Mike Baranski O: 919 788 9200 F

Problem passing interface implementing object to an action from a jsp

2009-02-04 Thread Mike Baranski
make the thing recognize that setDoor(IDoor cd) will take that parameter? Thanks, Mike. - Mike Baranski O: 919 788 9200 F: 919 510 0037 M: 919 395 0620 m...@secmgmt.com CVI Authorized User Number: CVI-20080925-1020950

RE: Problem passing interface implementing object to an action from a jsp

2009-02-04 Thread Mike Baranski
and setter. Mike Baranski on 04/02/09 16:28, wrote: Here's my delima: I have an interface to represent a Door, called IDoor I have an interface to represent a DoorProvider, called IDoorProvider. I use Spring to inject the DoorProvider implementation for the particular application to get lists

RE: Problem passing interface implementing object to an action from a jsp

2009-02-04 Thread Mike Baranski
) method, and just passed the ID into the action from the jsp. Thanks for the help. Mike. - Mike Baranski O: 919 788 9200 F: 919 510 0037 M: 919 395 0620 m...@secmgmt.com CVI Authorized User Number: CVI-20080925-1020950

Tags Help

2009-01-27 Thread Mike Baranski
. - Mike Baranski O: 919 788 9200 F: 919 510 0037 M: 919 395 0620 m...@secmgmt.com CVI Authorized User Number: CVI-20080925-1020950 - Warning: The information contained in this message may be privileged and confidential and protected

RE: Tags Help

2009-01-27 Thread Mike Baranski
How exactly would you do it? There are 0-40 (possibly set) user field values, and I only want to show the ones that have values, and not the ones that don't. Thanks, Mike. - Mike Baranski O: 919 788 9200 F: 919 510 0037 M: 919 395 0620