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 su

RE: Adding Json to existing action

2009-10-27 Thread Mike Baranski
I do this to pass parameters, using prototype js: >-Original Message- >From: Struts Two [mailto:struts...@y

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 method

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

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" %>

RE: Custom Property Tag

2009-10-06 Thread Mike Baranski
if you plan to use >Freemarker, you'll have to create a freemarker template manager (which >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 > wrote: >> I need

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 I

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 the

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
second bean with a more typical name, referring >to >the same class and add a mutator 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> w

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
C with Spring > >The only other difference I can see between my (working) example and >yours >is that I used the shortcut > > > >I don't know if there's a difference under the covers or not. > >Also, is the intercept method of your interceptor being called? &g

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
ay, September 24, 2009 11:29 AM >To: Struts Users Mailing List >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...@secm

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
nterceptor have *other* beans injected just fine. Can someone point out where I'm going wrong (I'm sure it's something stupid). Thanks! >-Original Message- >From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] >Sent: Wednesday, September 23, 2009 2:17 PM &g

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
>> >>> And at the top of my applicationContext.xml I have: >>> >>> >>> >>> And my Interceptors are getting injected just fine.  On another >project, I >>> have autowiring turned off, but then you have to define each >interceptor as &g

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
ptor IOC with Spring > >interceptors 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 > >

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: My setter is not getting called, is there anything else I need to do? M.

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 Bara

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 B

RE: Calling an "init" method on an interceptor

2009-09-17 Thread Mike Baranski
09 4:12 PM >To: Struts 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 y

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 c

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 pa

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, 20

RE: Session variables in 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 button

RE: ResourceBundle with DB backend

2009-08-31 Thread Mike Baranski
Users Mailing List >Subject: Re: ResourceBundle with DB backend > >- Original Message >> From: Mike Baranski >> To: Struts Users Mailing List >> Sent: Friday, August 28, 2009 9:22:06 AM >> Subject: RE: ResourceBundle with DB backend >> >> I've

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 >> To: Struts Us

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: user@struts

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

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 : >> OK, t

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
- >From: Greg 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

Redirect NullPointerException

2009-08-26 Thread Mike Baranski
index /default /pages/user-administration/jsps/change-password.jsp Any idea why I get the NullPointerException for that? -

Password Input

2009-03-06 Thread Mike Baranski
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: 919 510 0037 M: 919 395 0620 m...@secmgmt.com CVI Authorized User Number: CVI

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

2009-02-04 Thread Mike Baranski
oor(doorId) 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-200809

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

2009-02-04 Thread Mike Baranski
tell the xwork engine which converter to use for that class 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 S

Problem passing interface implementing object to an action from a jsp

2009-02-04 Thread Mike Baranski
the IDoor interface. The Action returns "input", which (I think) is because it can't figure out how to set the parameter on the UnlockDoorAction. How do I make the thing recognize that setDoor(IDoor cd) will take that parameter? Thanks, Mike. ------

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

Tags Help

2009-01-27 Thread Mike Baranski
ncatenated string of "User" + and then call getText(that_string). Can someone help? Thanks, Mike. ----- Mike Baranski O: 919 788 9200 F: 919 510 0037 M: 919 395 0620 m...@secmgmt.com CVI Authorized User Number: