-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
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
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.
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 to get
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
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
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
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
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
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
, 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
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
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
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
*)
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
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
-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
-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
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
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
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
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
: 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
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
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:
-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
action name=savePassword
class=com.secmgmt.struts2.actions.auth.SavePassword
result name=success type=redirect
param name=actionNameindex/param
param name=namespace/default/param
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
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
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
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
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
) 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
.
-
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
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
36 matches
Mail list logo