RE: data injection attack

2012-07-04 Thread Marcus Bond
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

RE: fetching a static variable's value from within a JSP page

2012-06-20 Thread Marcus Bond
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

RE: Advice needed: Offline Struts App

2012-03-15 Thread Marcus Bond
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

RE: [OT] Searching for data access framework.

2011-12-05 Thread Marcus Bond
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

RE: To create new session without invalidating existing one

2011-09-29 Thread Marcus Bond
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.

Modularisation of project web artifacts

2011-09-06 Thread Marcus Bond
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

Persistence backed form validation

2011-09-02 Thread Marcus Bond
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

RE: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

2011-08-15 Thread Marcus Bond
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

RE: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Marcus Bond
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

RE: Where to put non action associated data

2011-08-01 Thread Marcus Bond
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

Where to put non action associated data

2011-07-31 Thread Marcus Bond
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

RE: Multi Devices and Multilanguage

2011-06-30 Thread Marcus Bond
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

Re: Dynamic text

2011-05-31 Thread Marcus Bond
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

Re: Dynamic text

2011-05-31 Thread Marcus Bond
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

Dynamic text

2011-05-31 Thread Marcus Bond
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

Re: RedirectAction Help!

2011-05-13 Thread Marcus Bond
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

Re: RedirectAction Help!

2011-05-13 Thread Marcus Bond
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

Re: Strange behaviour with Spring

2011-05-10 Thread Marcus Bond
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

Re: Strange behaviour with Spring

2011-05-09 Thread Marcus
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

Re: Strange behaviour with Spring

2011-05-09 Thread Marcus
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

Strange behaviour with Spring

2011-05-08 Thread Marcus Bond
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

Re: Parameter manipulation

2010-12-17 Thread Marcus Bond
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

Re: Interceptor attempt

2010-11-11 Thread Marcus Bond
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/

Re: Interceptor attempt

2010-11-11 Thread Marcus Bond
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

Modifying action mapping per device type

2010-01-30 Thread Marcus Bond
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

Re: Modifying action mapping per device type

2010-01-30 Thread Marcus Bond
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

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
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

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
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

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
* 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

Re: Modifying action mapping per device type

2010-01-29 Thread Marcus Bond
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

Modifying action mapping per device type

2010-01-28 Thread Marcus Bond
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

on image: Reset

2006-06-14 Thread Marcus
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

[solved] message resources

2006-06-08 Thread Marcus
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

hotkeys

2006-06-08 Thread Marcus
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]

Re: message resources

2006-06-08 Thread Marcus
a map? I am not using one.. Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: message resources

2006-06-08 Thread Marcus
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 ---

Re: message resources

2006-06-08 Thread 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

Re: message resources

2006-06-08 Thread Marcus
"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

Re: message resources

2006-06-08 Thread Marcus
>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

Re: message resources

2006-06-08 Thread Marcus
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]

Re: message resources

2006-06-08 Thread Marcus
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]

Re: message resources

2006-06-08 Thread Marcus
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

Re: message resources

2006-06-08 Thread Marcus
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

message resources

2006-06-08 Thread Marcus
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

AW: can i use swings instead of jsp in struts

2006-06-07 Thread marcus biel \(innoWake gmbh\)
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

AW: focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
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]

focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
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

AW: Image change on error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
od for each value!) Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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

AW: Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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]

Image change on error

2006-06-06 Thread marcus biel \(innoWake gmbh\)
x27;t work :-(! Thanks in advance, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reset Image Button

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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: [

Image Buttons in IE

2006-06-06 Thread marcus biel \(innoWake gmbh\)
am using a DynaActionForm...) Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Validating in Action?

2006-06-06 Thread marcus biel \(innoWake gmbh\)
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]

Validating in Action?

2006-06-01 Thread marcus biel \(innoWake gmbh\)
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

AW: Image Button

2006-06-01 Thread marcus biel \(innoWake gmbh\)
> 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

Image Button

2006-06-01 Thread marcus biel \(innoWake gmbh\)
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]

AW: Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
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

AW: Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
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]

Maven + Struts

2006-05-31 Thread marcus biel \(innoWake gmbh\)
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]

AW: urgent

2006-05-24 Thread marcus biel \(innoWake gmbh\)
}$ - 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

DynaActionForm

2006-05-24 Thread marcus biel \(innoWake gmbh\)
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

AW: AW: Missing message key

2006-05-24 Thread marcus biel \(innoWake gmbh\)
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.

AW: Missing message key

2006-05-24 Thread marcus biel \(innoWake gmbh\)
>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

Missing message key

2006-05-24 Thread marcus biel \(innoWake gmbh\)
r the location of your properties files? Thx, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Struts app on bar code scanner

2006-05-24 Thread marcus biel \(innoWake gmbh\)
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]

Struts app on bar code scanner

2006-05-24 Thread marcus biel \(innoWake gmbh\)
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 --

support for non-default resource bundles in validation

2004-05-17 Thread Marcus Vinicius W. Ferreira
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

support for non-default resource bundles in validation

2004-05-17 Thread Marcus Vinicius W. Ferreira
ignore this attribute. Marcus

Re: Can you help me about Struts validator?

2004-05-13 Thread Marcus Vinicius W. Ferreira
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

Struts validator?

2004-05-13 Thread Marcus Vinicius W. Ferreira
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]