You could implement a class that delegates to your bean but only exposes
setters and getters that are appropriate, so in the case of the id then you
could let the user view it (getter) but not allow the setter.
A perhaps even better approach would be to devise a proxying mechanism (perhaps
conf
Is it possible that in your example code there are lines referencing
property instanceCount where they should reference helloCount?
-Original Message-
From: Sam Cyrus [mailto:haminto...@yahoo.com]
Sent: 20 June 2012 17:24
To: Struts send question
Subject: fetching a static variable's valu
Do you mean that they wish to have it running locally or that they want to see
a native UI application rather than a browser application?
If it is the first scenario then why not simply give them a zipped up tomcat
server with the web-app already deployed and either a script to run it or ask
the
Perhaps Apache Shiro may be something you could utilise... you would
implement an LDAP 'realm' or a SQL realm that knows how to lookup
credentials and access privileges etc.
In their lingo "A Realm is essentially a security-specific DAO " and out of
the box they provide a JDBC realm with suggested
What is the reason for the new session? Doesn't sound a great plan.
Anyway you're going to have a problem as this isn't how browsers expect to
work, that said Chrome allows incognito browsing so that might work but it
isn’t generally the expected behaviour.
If the same application is being acces
Has anyone here much experience of separating out actions and associated
jsp's into their own projects (cvs , git whatever) and incorporating these
as artifacts into a larger project (aka the app)?
I want to be able to separate out my JSPs into a number of projects which
could be packaged into
Hi, does anyone know of a validation method in struts that can use your JPA
(or other usage agnostic) annotations to validate the values on form fields?
For example, if I have specified a max length on an entity property and a
mandatory option on another then when updating / creating that entity vi
Have never tried this out with ejb since it isn't isn't my thing but just
the same as a spring / struts (or any other framework) app your service
layer would be called from your struts actions such that struts isn't likely
to know about or care about the fact that the service classes are ejb,
spri
You could always make your own tag as an extension to the standard struts
select tag adding attributes onChangeAction and onChangeTarget and let your new
tag render an appropriate bit of javascript to make an ajax call to the server
and then populate the results into the target item.. such a set
n't know either. It's the service
> layer's job to understand the complexities and related activities that
> go with the basic requests from the Action.
>
> My two cents.
>
> - Aaron
>
> On Sun, Jul 31, 2011 at 12:50 PM, Marcus Bond
wrote:
>> Hi,
>
Hi,
Say I have a form where user can carry out a product search which hits an
action and returns a list of results - easy.. however in response to the
user changing their search criteria I want to also generate some search
terms which would be passed through to Ebay, google ads etc.. but not wi
I had a similar idea of using an interceptor to alter the result code a
while ago and decided that it was a non-starter mainly because every action
would need another mapping for each platform you determined was worthy of
treating differently. I need to sort something out imminently and the
current
land 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
-Original Message-----
From: Marcus Bond [mailto:mar...@marcusbond.me.uk]
Sent: Tuesday, May 31, 201
return "goodbye";
}
resource file has keys:
hello=Hello There!
goodbye=See you later!
page has tags:
This works fine
Nope
Nope
This returns nothing
This returns nothing
This returns nothing
On 31/05/2011 15:38, Jason Pyeron wrote:
-----Original Message-
From: Mar
Hi,
I want to use some view objects in my action that will contain resource
keys and then show these using s:text to resolve the key to it's
translation.. Is this type of thing supported? I know a lot of tags moan
if you try and use any ${foo.bar} type arguments
Cheers,
Marcus
I was having similar issues recently using an older version of struts2
(can't remember which unfortunately) and I upgraded to 2.2.3 which
seems to work fine..
fyi the first example I have is below where selectedUserId is set on the
action I redirect to with the value from user.getId passed as
I have a few examples of this working fine, will post this evening when
I'm home
M
On 13/05/2011 13:57, tdmcgin...@gmail.com wrote:
I didn't think I could send parameters with the chain?
I am really trying to pass the an id from one action to another. I'll
take any suggestions to get this wo
implement java.lang.String, it's immutable
and
doesn't follow the bean spec.
(*Chris*)
On Sun, May 8, 2011 at 2:11 PM, Marcus Bond
wrote:
Hi,
I'm using Struts 2.2.3 and have observed some bizarre behavior when
using
Spring to provide my actions.. In order to simplify this
Hi,
I'm using Struts 2.2.3 and have observed some bizarre behavior when
using Spring to provide my actions.. In order to simplify this and prove
the problem I have created a project with a single static html file, and
a single action in struts.xml which references a bean in my spring
context
David, didn't your original post say that this is an action that loads
an object to display it rather than to modify it? In which case I'm not
sure why you even need to use Preparable (as I'm guessing it's during
prepare that the instance is initialised which makes it available for
struts to po
t versions of the frameworks. I've tried a
couple with limited success.
-David
-Original Message-
From: Marcus Bond [mailto:mar...@marcusbond.me.uk]
Sent: Thursday, November 11, 2010 11:01 AM
To: user@struts.apache.org
Subject: Re: Interceptor attempt
Sorry to jump the thread Dav
Sorry to jump the thread David..
Looks like the ThreadLocal (unique per thread) session using
HibernateUtil or equivalent would be the better bet. I'd question why
you need direct access to the session from within your actions anyway as
you're likely to be calling methods on some service class
Hi,
I am wanting to implement a site such that some actions may have a
different mapping depending upon the device used (e.g. regular browser /
mobile device etc.) but what I don't want to do is have to litter my
actions with this type of logic. It could be at the result mapping level
(i.e. i
Hi Wes, thanks for the post.
I like the idea of being able to decorate screens differently depending
on device without changing much existing code and I can see a use to
this for example for pages being given a different footer to provide
device specific links or adding side menus for devices
to it like the
ServletDispatcherResult do.
(I'm sure Convention plugin must have something like this already working.)
2010/1/29 Marcus Bond :
Interesting, I hadn't thought of that. However a problem I see here with
this approach is that it implies that there would be different versions o
s I will have a getDevice() which will return a string
(e.g. "iPhone" or "blackberry" etc.) based on the User-Agent or
x-wap-profile. I will use an interceptor that reads the user-agent
etc and determines the device type and injects that into my actions.
On Fri, Jan 29, 2010 at 5:57
Thanks for the info Andy, the interceptor seems an appropriate thing
although it does mean there are multiple mappings in struts.xml. This
seems at least a way that allows a site to grow in terms of new views
without impacting upon the application code or exisiting views.
Thinking about it thi
2010/1/28 Marcus Bond :
Hi,
I am wanting to implement a site such that some actions may have a different
mapping depending upon the device used (e.g. regular browser / mobile device
etc.) but what I don't want to do is have to litter my actions with this
type of logic. It could be at the resul
Hi,
I am wanting to implement a site such that some actions may have a
different mapping depending upon the device used (e.g. regular browser /
mobile device etc.) but what I don't want to do is have to litter my
actions with this type of logic. It could be at the result mapping level
(i.e. i
29 matches
Mail list logo