configured via annotations) and have a security layer be responsible for which
methods can be called - this not only would prevent url parameters being set
but also prevent restricted fields of any object being updated.
Marcus.
-Original Message-
From: J. Garcia [mailto:jogaco
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
o.apache.org
I have used this framework as part of a Spring based web app using a custom
realm to authenticate users stored in CouchDB and also implemented a JPA /
Hibernate realm (DAO), it's easy enough to get to grips with, active and
helpful mailing list and it seems to be catching on..
Ch
cation is being accessed from the same browser (Firefox,
Chrome, IE etc.) once a session is created then that is the same session unless
you destroy it. Your browser has a cookie with the jsessionid and that cookie
is for the site from that browser across all windows not per browser window.
Marcus.
roach work in Eclipse when developing too?
Anyone have any food for thought on this? Are there any other alternatives
such as deploying jsp in jar files (pre-compilation and corresponding
web.xml path mapping is a non starter)?
Cheers,
Marcus
methodologies becomes a real chore. I
would be happy to 'pollute' my entity model with validation annotations if
the annotations could be utilised by a range of frameworks.
Cheers,
Marcus
the underlying implementation for JPA
would be hibernate.. job done.
In answer to your second question, afaik Seam may be worth a look if you're
after ejb webapps..
Marcus
-Original Message-
From: maurizio.cucchi...@gmail.com [mailto:maurizio.cucchi...@gmail.com] On
Behalf Of Maurizi
set of tags in your
jsp may look like
< myTagLib:select name="region" onchangeAction="countiesForRegion"
onChangeTarget=" county" />
< myTagLib:select name="county" />
This would be a handy feature in a new struts tag to be fair, perh
t be so easy but
in reality it probably wouldn't be too much trouble to put something on the
stack as part of the action to tell the view which external results to
show.. I'll come back to that :)
Again, cheers for the ideas,
Marcus.
-Original Message-
From: Dave Newton [mailto:dave
ike this and how
you tackled similar scenarios or if maybe another framework is more suited?
You'll have to bear with me here since all my work thus far has had no need
to collaborate data from multiple sources in one page.
Regards and thanks in advance,
Marcus
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,
M
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
etters ,does that work?
On 9 May 2011 16:54, "Chris Pratt" wrote:
Even if Spring considers it valid, that doesn't mean that other packages
will be able to treat immutable, non-JavaBeans as JavaBeans.
(*Chris*)
On Mon, May 9, 2011 at 3:39 AM, Marcus wrote:
You can if you want to u
nd strings as spring beans. For
example autowiring does not work for them.
Try the following:
1) inject literal directly
Instead of
http://www.jetbrains.com
"Develop with pleasure!"
-Original Message-
From: Marcus [mailto:mar...@marcusbond.co.uk]
Sent: Monday, May 09, 20
n, 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 and prove the
problem I have created a project with a single static html file, and a
single action in struts.xml
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
for any params
to be applied earlier?
Regards,
Marcus
On 17/12/2010 20:02, Altenhof, David Aron wrote:
One approach I've through of is to create an interceptor that would parse
through your -validation.xml (assuming one uses them) and then only allow
parameters that have an associated valid
tical apache struts2" will produce a
handy link.. The book seems to do an ok job all around the Struts2
landscape and introduces Spring and hibernate too.. Can't say I've
followed it word for word but I have used it for the odd tidbit of
information here and there.
Marcus
On 11/11/
d application flow and not the intricacies of getting hold of
sessions and beginning / ending transactions etc.
Regards,
Marcus.
On 11/11/2010 14:33, Altenhof, David Aron wrote:
Greg-
Thanks for bumping my memory on when the page gets rendered. I remember reading
that somewhere, but forgot whe
name of the action?
Any suggestions here are greatly appreciated!
Web technologies being used are Struts2, Tiles2 and JSP.
Regards,
Marcus
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
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
*
success_windowsmobile
foo
bar
I can imagine others have had to do something similar in terms of
delivering different views to the same action depending upon user agent
so it would be good to get some community involvement.. I'd happily code
it up.
Marcus
A
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
name of the action?
Any suggestions here are greatly appreciated!
Web technologies being used are Struts2, Tiles2 and JSP.
Regards,
Marcus
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
Hi, I want to add an image that works as a reset button -
I got:
Unfortunatelly, this only works initially - when the user has submitted
the page once
it doesn't seem to work anymore.
Any idea, what's wrong?
Th
that they need to get the underlying
Map, then call get(String) using the supplied property.
Make sense?
-Adam
Make sense? YES!
And it works, works, works... ;-)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Is there a way of adding hotkeys to a form field in struts?
I would like to add the keys F1-F4 to my form fields 1-4.
Thx,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
a map? I am not using one..
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
o! ;-)
javax.servlet.ServletException: Unable to find a value for "description" in object of class
"org.apache.struts.validator.DynaValidatorForm" using operator "."
However, this does work!!!
???
Marcus
---
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
2.2 means 2.0-ish, I assume?
Marcus
Dave Newton schrieb:
Marcus wrote:
Any ideas?
What does your web.xml DOCTYPE look like? Irritatingly enough, you have
to tell Tomcat to go ahead and be 2.0-is
"myBean" I used my dynaActionForm - but it didn't work.
My struts-config:
My properties file:
valueAdded=Value {0} added.
My JSP:
value="true">
arg0="${MyDynaActionForm.descripti
>It's awfull, but assuming you have myDynaForm in some scope should work
Yes, indeed! ;-)
Isn't there something more struts like (using tags..)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
t will work.
It's not an error, it's just a message to the user.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the value
worked, and as a "proof" I want to redisplay the value the user typed in.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Where do you want to print this message ?
I type in my value into a textbox.
Forward to action.
Action adds value, forwards to jsp.
Now jsp should say:
Value "myValue" has been added.
(With the value of "myValue" printed!)
What type of data do you us
Pass the argument {0} as follows:
I tried that,
but then it writes literally:
Value value has been added.
But what need the VALUE of hte variable "myValue" to be printed.
:-(
Marcus
-
To unsubscribe, e-ma
Hi,
I want to print a message like this:
myValueAdded=my value{0} has been added.
How can I fill in the corresponding value?
Thx,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
if you are a new bee, you should try to find your beehive!!!
LOL!
-Ursprüngliche Nachricht-
Von: xavier prad [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Juni 2006 15:51
An: user@struts.apache.org
Betreff: can i use swings instead of jsp in struts
Heloo I am a new bee
I am devlopin
a new value. That's importanted, because the app will run on a
touchscreen...
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I've got a form, that focuses on the first
textbox when the page is loaded.
When an error occurs, I want to focus on the
textbox with the first error.
How can that be achieved???
Thanks,
Marcus
-
To unsubscribe, e
od for
each value!)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Nope,
this was too fast - it does not work, because it now always changes the
image - seems like it always finds the error message! :-(
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Sorry,
ignore my message, this was dumb!
Now it does work! :-)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
x27;t work :-(!
Thanks in advance,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is there a way to create an image button that IS a reset button?
I tried this:
and this:
But unfortunately, it didn't work! :-(
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
am using a
DynaActionForm...)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
s errors = new ActionErrors();
>errors.add("MyError", new ActionError("error.MyError") );
>saveErrors(request,errors);
But that is deprecated.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ant to display these errors to the user -
The problem is I can't do those error validation in my ActionForm,
because only after doing the action I will know wether or not it
succeeded -
so how can I then set the appropiate errormessages and forward to t
>
No, I don't need a regular image, I need a "customized submit button".
The reason is, I need a submit button that is bigger then the regular
submit buttons, because this app needs to be usable on a touch
Hi,
I am looking for an example of how to create an image button
in Struts.
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Maven takes the jar file like "struts-1.2.9.jar" and puts em into
\WEB-INF\lib - I am just not sure if the "1.2.9" ending is fine -
before it was just struts.jar. Could this be the problem?
If so, how to avoid it?
Marcus
-Ursprüngliche Nachricht-
Von: David Fri
e tld file! But struts-logic.tld is included
in "WEB-INF"!
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Does anyone of you have an example project.xml and project.properties
file
to use Struts with Maven?
Thanks,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
}$
-
However, there seems to be an error, because I get thrown an error:
java.lang.ClassCastException:
org.apache.struts.validator.DynaValidatorForm
Any ideas whats wrong? Maybe my regular expression is incorrect?
Thanks,
Marcus
I am just trying to use a DynaActionForm.
Now I would like to check out the ValidateURL method -
however it doesn't accept an url like:
http://www.myUrl.com/
Is there any page available giving examples of valid
urls, or so?
I had a look in the API
http://struts.apache.org/struts-action/struts-co
Actually, YES, this DID help! Thanks!!!
In struts-config, I had the line:
Now I changed it to:
What's the difference?
>The message resources are loaded by the class loader
Is there maybe a configuration file to tell the loader which files and
classes to load? I am using eclipse.
>maybe the whitespace? try to remove it...
>mypage.title=My page title
>> mypage.title =My page title
No, that's not it.
Thanks anyway.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
r the location of your
properties files?
Thx,
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
works
fine on the scanner, when typing in the code manually, just when using
this damn scanner itself, the getMethod returns null.
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
HttpServletRequest request,
HttpServletResponse response ){
MyBean myBean = (MyBean)form;
String myValue = myBean.getMyValue();
System.out.println("MyValue: "+ myValue); // Returns NULL
Any idea, whats wrong?
Thanks,
Marcus
--
Hello,
The Struts supports different resource bundle in the validation.xml?
The dtd http://jakarta.apache.org/commons/dtds/validator_1_1.dtd allows
the bundle attribute to the msg and arg tags, but the validator ignore this
attribute.
Marcus
ignore this
attribute.
Marcus
gnored...
Is it correct? Help me, please!! I´m looking for about this
problem a few days... but i didn´t find anything...
Thank you very much,
Marcus Ferreira - Curitiba/Paraná/Brazil
i didn´t find anything...
Thank you very much,
Marcus Ferreira - Curitiba/Paraná/Brazil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
71 matches
Mail list logo