Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
@Christian I don't know if it does or not, IMHO there is something that is not proper consistent between the nested property and the plain property (looking at the code, I realize that theoretically only when the user runs s2 in dev mode, this kind of exception should be throwned). My guess is tha

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
> > I think you're thinking about it backwards. It doesn't start with the > bean, inspect every property, attempt to find data and convert that data to > the proper format, then inject it into the bean. Chris is right: take a look at row 292 of [1] [1] http://svn.apache.org/viewvc/struts/struts2

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
Hi Paul, you hit the nail on the head: if you try to get http://localhost:8080/struts.action?whatever=whaever_value you won't see any exception (in no-dev mode). On the contrary, when you use a nested property, ognl change the target object. For example if you use a "a" property, Ognl uses as a tar

Re: Submit image button sends coordinates

2011-07-26 Thread Chris Pratt
I think you're thinking about it backwards. It doesn't start with the bean, inspect every property, attempt to find data and convert that data to the proper format, then inject it into the bean. It starts with the data on hand (in this case all the GET/POST parameters) and attempts to find a home

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
I see, I am one of those who always want to see whats going on Interesting read. Might be worth to compile a wiki entry? On Tue, Jul 26, 2011 at 3:46 PM, Maurizio Cucchiara wrote: > There are different schools of thought, this is kind of question that has > multiple answers: please, take a look

Re: Submit image button sends coordinates

2011-07-26 Thread Paul Benedict
I don't understand that. Perhaps I haven't programmed Struts 2 enough, but I thought Struts (1 or 2) only captured what's defined in the model and ignores the other request parameters. Is it acting differently because of nested properties? On Tue, Jul 26, 2011 at 9:54 AM, Chris Pratt wrote: > Tha

Re: Submit image button sends coordinates

2011-07-26 Thread Chris Pratt
That's exactly what's happening, but it's also warning (in devmode only) when it can't set one so that you, the developer, can make the right decision for your program. (*Chris*) On Tue, Jul 26, 2011 at 6:50 AM, Paul Benedict wrote: > Just a question, if I may :-) Doesn't Struts 2 have the abi

Re: Submit image button sends coordinates

2011-07-26 Thread Paul Benedict
Just a question, if I may :-) Doesn't Struts 2 have the ability to only set the properties that are defined on the bean? On Tue, Jul 26, 2011 at 8:46 AM, Maurizio Cucchiara wrote: > There are different schools of thought, this is kind of question that has > multiple answers: please, take a look a

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
There are different schools of thought, this is kind of question that has multiple answers: please, take a look at http://struts.1045723.n5.nabble.com/S2-OgnlValueStack-Error-setting-expression-warnings-after-upgrade-from-struts-2-to-struts-2-1-7-td3495667.html On 26 July 2011 14:58, Christian Gro

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
> @Christian > Good workaround, > in my defence I can say that I have no problem to change the log level, > thank to maven I can have different profile with different log level. hehe yes I have a similar setup I guess. But "expected exceptions" make me always nervous, even in development mode ,-)

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
Aaron's advice suggested me another way to obtain what you are looking for: you could simple blacklist x & y parameters through the parameters interceptor. Maurizio Cucchiara Il giorno 26/lug/2011 12.30, "Aaron Brown" ha scritto: > You may be able to write an interceptor that strips X and Y from

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
@Christian Good workaround, in my defence I can say that I have no problem to change the log level, thank to maven I can have different profile with different log level. Maurizio Cucchiara Il giorno 26/lug/2011 12.26, "Christian Grobmeier" ha scritto: > Thanks Maurizio. > > I don't want to reduc

Re: Submit image button sends coordinates

2011-07-26 Thread Aaron Brown
You may be able to write an interceptor that strips X and Y from your cgi parameters. You would need to set the interceptor prior to the default interceptor that assigns params to your action set methods. On Jul 26, 2011 5:50 AM, "Maurizio Cucchiara" wrote: > Hi Christian, > unfortunately IIRC th

Re: Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
Thanks Maurizio. I don't want to reduce my error level, now I created something weird. Not nice, but it works: private Submit submitCoord = null; public Submit getSubmit() { return submitCoord; } public void setSubmit(String submit) {

Re: Submit image button sends coordinates

2011-07-26 Thread Maurizio Cucchiara
Hi Christian, unfortunately IIRC there is no way to avoid that OGNL tries to find the property accessor. Adding this row in your log4j.xml (properties) should mute this log message (which it should not be a warning message) On 26 July 2011 11:27, Christian Grobmeier wrote:

Submit image button sends coordinates

2011-07-26 Thread Christian Grobmeier
Hi, using: Sends the following to my action: submit => [ Submit ] submit.x => [ 40 ] submit.y => [ 7 ] x / y are coordinates of my click, defined by w3c. Now they are sent to my action, and OGNL tries to set it. Which leads to: > Error setting expression 'submit.x' with value '[Ljava.lang.Stri

Re: Context Root for Image Button src attribute

2008-04-29 Thread Jeromy Evans
Jukka Välimaa wrote: Getting the context path in jsp is something struts doesn't really support--something I've had trouble with many times. One way to get around the problem is scriptlet like Jim showed you. Recently, we used url tag for the same purpose: I agree it's strange it's not

Re: Context Root for Image Button src attribute

2008-04-29 Thread Jukka Välimaa
ey <[EMAIL PROTECTED]> wrote: > I did something like src="<%=request.getContextPath()%>/images/header.gif" > > On Tue, Apr 29, 2008 at 12:51 AM, Yellek <[EMAIL PROTECTED]> wrote: > > > > > I am trying to write an image button of the form: > >

Re: Context Root for Image Button src attribute

2008-04-29 Thread Jim Kiley
I did something like src="<%=request.getContextPath()%>/images/header.gif" On Tue, Apr 29, 2008 at 12:51 AM, Yellek <[EMAIL PROTECTED]> wrote: > > I am trying to write an image button of the form: > > name="search"/> > > where context-root

Context Root for Image Button src attribute

2008-04-28 Thread Yellek
I am trying to write an image button of the form: where context-root is the configured context root of my web application. Can anyone suggest a good way to dynamically populate the context root? I am assuming that the src string is being interpreted via OGNL but I can't figure o

RE: Reset Image Button

2006-06-06 Thread Samere, Adam J
2006 7:50 AM To: Struts Users Mailing List Subject: Reset Image Button 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 unsu

RE: Reset Image Button

2006-06-06 Thread Sahil Gupta
- From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 5:20 PM To: Struts Users Mailing List Subject: Reset Image Button 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! :-( M

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: [

RE: Image Button

2006-06-01 Thread Samere, Adam J
: Thursday, June 01, 2006 7:47 AM To: Struts Users Mailing List Subject: AW: Image Button > 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 usabl

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 touchscreen... Marcus - T

RE: Image Button

2006-06-01 Thread Samere, Adam J
Or you could just put javascript in the onclick handler for a regular image. -Original Message- From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 5:59 AM To: Struts Users Mailing List Subject: Image Button Hi, I am looking for an example of

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]

Re: default submited image button

2006-01-10 Thread Michael Jouravlev
On 1/10/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: > > Hello, > > I've a form with a text input field and two buttons : one > to "add new user" and one for "search" > > My porblem is when I type [Return] from input field, the form is &g

default submited image button

2006-01-10 Thread Nicolas De Loof
Hello, I've a form with a text input field and two buttons : one to "add new user" and one for "search" My porblem is when I type [Return] from input field, the form is submited with some strange image button informations : - on IE, non image button (x,y position)

Re: image button for file upload

2004-08-23 Thread Michael McGrady
After all our talk, you and Erik are not interested in this solution, Dean? That surprises me. Anyway, I have got it working and am thinking about putting it on the wiki. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [OT] PROBLEMS SOLVED BELIEVE IT OR NOT: Re: image button for file upload

2004-08-23 Thread struts lover
PROTECTED] > > Sent: Monday, August 23, 2004 1:27 PM > > To: Struts Users Mailing List > > Subject: [OT] PROBLEMS SOLVED BELIEVE IT OR NOT: > Re: image > > button for file upload > > > > > > Thanks to all who addressed this issue. I thought > out of

RE: [OT] PROBLEMS SOLVED BELIEVE IT OR NOT: Re: image button for file upload

2004-08-23 Thread Ed Yu
-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Monday, August 23, 2004 1:27 PM > To: Struts Users Mailing List > Subject: [OT] PROBLEMS SOLVED BELIEVE IT OR NOT: Re: image > butt

[OT] PROBLEMS SOLVED BELIEVE IT OR NOT: Re: image button for file upload

2004-08-23 Thread Michael McGrady
Thanks to all who addressed this issue. I thought out of the box and solved this apparently unsolveable problem. All the credit goes to the matrix. THERE IS NO SPOON! Anyone interested in the solution? Michael McGrady - To u

Re: image button for file upload

2004-08-23 Thread Michael McGrady
THE BOTTOM LIINE IS THAT WE NEED TO SEND THE FOLLOWING (except with post): browse=jakarta-service.log&submit.x=20&submit.y=6 With this, we can tell which submit button was sent and what the file is. - To unsubscribe, e-mail: [EMAIL

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Slattery, Tim - BLS wrote: As a result, the value being sent with file is not really the name of the file, but, rather, the location of the file combined with the x and y coordinates of the place the button was clicked. I could do a work around with this in the model. But that particular relat

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Erik Weber wrote: I see. I just want the button to look like the other buttons in my application. So, I suppose I could take a screen shot of a submit button that is styled just how I want it, and use that to make an image button. Then it would appear to be just like all the other buttons on

RE: image button for file upload

2004-08-23 Thread Slattery, Tim - BLS
> I see. I just want the button to look like the other buttons in my > application. So why not use ? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: image button for file upload

2004-08-23 Thread Slattery, Tim - BLS
> As a result, the value being sent with file is not really the name of > the file, but, rather, the location of the file combined with > the x and y coordinates of the place the button was clicked. > I could do a work around with this in the model. But that particular > relationship between t

Re: image button for file upload

2004-08-23 Thread Erik Weber
I see. I just want the button to look like the other buttons in my application. So, I suppose I could take a screen shot of a submit button that is styled just how I want it, and use that to make an image button. Then it would appear to be just like all the other buttons on my application

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Erik Weber wrote: Tim, thank you. Could I change the input type to "submit" instead of "image"? I just want my "browse" button to look just like all my other submit buttons . . . Erik One of the problems with "submit", Erik, is that you cannot identify multiple instances of submit tags. So, i

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Slattery, Tim - BLS wrote: You are a life saver. This is so cool. However, the "browse" button in this case is not a browse button but, rather, a submit button. Can you leave this as it is and also give us a submit button? Thanks a ton. This should show my partners in this crime that a su

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Slattery, Tim - BLS wrote: You are a life saver. This is so cool. However, the "browse" button in this case is not a browse button but, rather, a submit button. Can you leave this as it is and also give us a submit button? Thanks a ton. This should show my partners in this crime that a su

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Slattery, Tim - BLS wrote: So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a computer crash. Absolutely right, this won't work in Mozilla. IE allows this kind of addressing, but it's non-stan

Re: image button for file upload

2004-08-23 Thread Erik Weber
Tim, thank you. Could I change the input type to "submit" instead of "image"? I just want my "browse" button to look just like all my other submit buttons . . . Erik Slattery, Tim - BLS wrote: So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this?

RE: image button for file upload

2004-08-23 Thread Slattery, Tim - BLS
> You are a life saver. This is so cool. However, the > "browse" button in this case is not a browse button but, > rather, a submit button. Can you leave this as it is and > also give us a submit button? Thanks a ton. This should > show my partners in this crime that a submit is > defini

Re: image button for file upload

2004-08-23 Thread Michael McGrady
Slattery, Tim - BLS wrote: So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a computer crash. Absolutely right, this won't work in Mozilla. IE allows this kind of addressing, but it's non-stan

RE: image button for file upload

2004-08-23 Thread Slattery, Tim - BLS
> So far I have this, Erik, which works in IE but not in > Mozilla. Anyone have any other ideas on this? I did > this before but lost it in a computer crash. > > > > src='browse.gif'> > Absolutely right, this won't work in Mozilla. IE allows this kind of addressing, but it's non-standard

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, I thought you said you hadn't actually done the upload. That's what I'm talking about. So, even if you can get a file path to show up in a text input in response to hitting a browse image button, I still think it will not work, even in IE. Even thou

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, I thought you said you hadn't actually done the upload. That's what I'm talking about. So, even if you can get a file path to show up in a text input in response to hitting a browse image button, I still think it will not work, even in IE. Even though you are on a missi

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, I'm still researching on the web and alot of what I am seeing is that it is not possible. There is mention that this is strongly controlled by the browser for security purposes, to prevent malicious websites from uploading files on the client box by just doing javascr

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, I'm still researching on the web and alot of what I am seeing is that it is not possible. There is mention that this is strongly controlled by the browser for security purposes, to prevent malicious websites from uploading files on the client box by just doing javascript hacks. Seems to ma

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. W

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. W

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael McGrady wrote: Hi, Dean, I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla. What does the jsp do? Ar

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Michael, Sure. Basically I want to do the same thing you are apparently questing for: the ability to replace standard browser buttons with images. I have an application that I want to retrofit to this, and I have used LookupDispatchAction and other approaches in it. I have

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Michael, Sure. Basically I want to do the same thing you are apparently questing for: the ability to replace standard browser buttons with images. I have an application that I want to retrofit to this, and I have used LookupDispatchAction and other approaches in it. I have a wizard (workflow) typ

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Dean A. Hoover wrote: Wow, you've been busy. Just getting back to look at what has been suggested. I did a little poking around on the internet and found: If you want to do the button thing with the forms, you first have to learn how to do it with the html and only then take it to struts. Stru

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Erik Weber wrote: Awesome. Now, do you have any idea how I could change the font or the text of the button, without actually making it an image? Well that is an entirely different matter, Erik, and a much simpler one. But, it is not the problem I have. I am trying to put together for struts o

Re: image button for file upload

2004-08-22 Thread Dean A. Hoover
Wow, you've been busy. Just getting back to look at what has been suggested. I did a little poking around on the internet and found: http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20398679.html It uses 2 forms to do this. Can't get it to (really) work. Can't get yours to work either. I ha

Re: image button for file upload

2004-08-22 Thread Erik Weber
Awesome. Now, do you have any idea how I could change the font or the text of the button, without actually making it an image? Michael McGrady wrote: So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a compute

Re: image button for file upload

2004-08-22 Thread Michael McGrady
So far I have this, Erik, which works in IE but not in Mozilla. Anyone have any other ideas on this? I did this before but lost it in a computer crash. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: image button for file upload

2004-08-22 Thread Michael McGrady
No worries, Erik! Let's roll our own. We can work together on this. The key for a starter is using the attribute of style='display:none' in the tag, i.e. I am looking around for more. When we get a workable solution for IE, it probably won't work for Mozilla, etc. and we can go from there

Re: image button for file upload

2004-08-22 Thread Erik Weber
Well I was mistaken. He did not know of a way to customize the button, only that you can customize the text field with CSS. He made the text field flush with the button and tuned the colors so that the text field and button appeared to be one custom element. But it's still the same old button.

Re: image button for file upload

2004-08-22 Thread Michael McGrady
Erik Weber wrote: I hope one of you guys will post an example when you figure out how to do this . . . I have a friend who has a site with custom file upload forms (using image buttons). Perhaps I will ask him about it . . . Erik Michael McGrady wrote: Ergo, research should begin on Any id

Re: image button for file upload

2004-08-22 Thread Erik Weber
I hope one of you guys will post an example when you figure out how to do this . . . I have a friend who has a site with custom file upload forms (using image buttons). Perhaps I will ask him about it . . . Erik Michael McGrady wrote: Ergo, research should begin on Any ideas? Dean Hoover

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Ergo, research should begin on Any ideas? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To

Re: image button for file upload

2004-08-21 Thread Michael McGrady
HTML DOM FileUpload Object previous next FileUpload Object For each instance of an HTML tag on a form, a FileUplo

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Dean A. Hoover wrote: I've been reading some interesting methods for using image buttons on forms in place of the familiar "Submit" style browser generated buttons. There is one automatically generated button that I am still puzzled on how to use an image for it, though. That's t

Re: image button for file upload

2004-08-21 Thread Michael McGrady
One of the problems you run into with this is that there are differing behaviors between IE and the other browsers. Michael McGrady wrote: Leandro Melo wrote: I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Leandro Melo wrote: I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don't think it's possible to use an image for this button. That's not because of struts, it's how the browsers implement thier html. --- "Dean A

Re: image button for file upload

2004-08-21 Thread Leandro Melo
I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don't think it's possible to use an image for this button. That's not because of struts, it's how the browsers implement thier html. --- "Dean A. Hoover" <[EMAIL

image button for file upload

2004-08-21 Thread Dean A. Hoover
I've been reading some interesting methods for using image buttons on forms in place of the familiar "Submit" style browser generated buttons. There is one automatically generated button that I am still puzzled on how to use an image for it, though. That's the one for do file uploading, as in:

Re: html:file using an image button

2004-08-10 Thread Ovidiu EFTIMIE
I'm using html:file and it works just fine . In my previous reply I made a copy&paste from the generated html. The most important lines are these 2 document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; On Tue, 10 Aug 2004 12:21

Re: html:file using an image button

2004-08-10 Thread Michael McGrady
At 10:14 AM 8/10/2004, you wrote: Use something like this function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; } Will this work with ?

Re: html:file using an image button

2004-08-10 Thread Ovidiu EFTIMIE
Use something like this function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; } Ovidiu On Tue, 10 Aug 2004 08:27:49 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > At 07:41 AM 8/10/20

Re: html:file using an image button

2004-08-10 Thread Michael McGrady
At 07:41 AM 8/10/2004, you wrote: Michael McGrady wrote: Is there a way to hide the standard browse button and use an image for the button instead? Michael, I don't believe this is part of the HTML spec, so in short, no. Every browser uses a different button for browsing. I don't believe that eve

Re: html:file using an image button

2004-08-10 Thread Ruth, Brice
Michael McGrady wrote: Is there a way to hide the standard browse button and use an image for the button instead? Michael, I don't believe this is part of the HTML spec, so in short, no. Every browser uses a different button for browsing. I don't believe that even CSS can control this. -- Brice

html:file using an image button

2004-08-10 Thread Michael McGrady
Is there a way to hide the standard browse button and use an image for the button instead? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]