>-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
I do this to pass parameters, using prototype js:
>-Original Message-
>From: Struts Two [mailto:struts...@y
>> > 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
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?
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
I put the following in a DIV at the top of every page:
<%@ taglib prefix="s" uri="/struts-tags" %>
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
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
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
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
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
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
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
>>
>>> 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
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
>
>
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.
>-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
>-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
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
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
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
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
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
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
>-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
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
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
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
-
>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
index
/default
/pages/user-administration/jsps/change-password.jsp
Any idea why I get the NullPointerException for that?
-
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
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
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
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.
------
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
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:
36 matches
Mail list logo