RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-25 Thread Shabbir Khadir Mohammed
HI Bernhard,

Thanks for your valuable response. It worked fine.

Regards
Shabbir

-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 1:56 PM
To: 'Struts Users Mailing List'
Subject: AW: How to Show gif image instead of html button in the forms for 
html:submit tag ?


Good morning Shabbir!

try this:
html:image page=/images/enter.gif property=submit value=Enter/

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image. 

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
use html:image
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image

Nico.

- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:15 AM
Subject: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image.

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
if you want to use localizable buttons this is not a good approach.
because you are not able to nested tags in tags.

you are not able to do this:

html:image page=../bean:message key=images.buttons.url//Apply.gif/ 
property=submit value=Enter/

so i use this:

 html:link href=javascript:reportfilterForm.submit();
   img src='../bean:message key=images.buttons.url//Apply.gif' border='0'/
 /html:link

and this is browser-indepentend. as far as i know input type=image... is 
IE-specific.


-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 09:28
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


use html:image
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image

Nico.

- Original Message -
From: Shabbir Khadir Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:15 AM
Subject: How to Show gif image instead of html button in the forms for
html:submit tag ?



Hi All
Hope all are doing well.
I am using following code for form submit in one of the JSP.
html:submit property=submit value=Save/
It is displaying normal html button.
On clicking this button form will be submitted to corresponding action.

Now my question is,

Instead of normal html button for submit, I want to display a GIF
image and form should be submitted to corresponding action (WITH OUT
using Java Script) on clicking that image.

If any one has any info do share with me.

Thanks  Regards
Shabbir


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
This should work too :

bean:define id=localImage type=String
  bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/

 and this is browser-indepentend. as far as i know input type=image...
is
 IE-specific.

input type=image is HTML 3.2, not browser dependent (notice Struts doesn't
use any browser specific tags).

Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
html:image page=%= localImage % property=submit/

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 10:07
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


This should work too :

bean:define id=localImage type=String
  bean:message key=images.buttons.url/
/bean:define
html:image page=%= localImage % property=submit/

1. Might be. dont know. 
   but you should avoid using scriptlets in your code.
   and this is scriptlet.


 and this is browser-indepentend. as far as i know input type=image...
is
 IE-specific.

input type=image is HTML 3.2, not browser dependent (notice Struts doesn't
use any browser specific tags).

Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
 bean:define id=localImage type=String
   bean:message key=images.buttons.url/
 /bean:define
 html:image page=%= localImage % property=submit/

 1. Might be. dont know.
but you should avoid using scriptlets in your code.
and this is scriptlet.


Not scriplet !

JSP scriptlet is :
%
String localImage = request.getAttribute( ..
%

JSP runtime expression (RTEXP) is :
xxx:tag attribute=%= variable % /

Notice the = in %= %. This is right that you can (but should not) do
java computation inside a RTEXP, as in scriptlet.

RTEXP is the only way to set JSP tags attribute ro a runtime value.

Nico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
Don't feel it as an agression Georg,

I agree with you it's a good practice to avoid scriplet in JSP, and myself I
never use it and suggest never using it. They're is alway a way to do
without scriptlet, (if not, perhaps your beans are not well designed for you
webapp, or think about building a custom JSP tag for it).

My response was only to show scriptlet is not uses the same way as RTExp,
that is the only way to put runtime values as attribute of a custom tag.

Nico.


hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Mouratidis, Georg
hi nico,

i didnt feel it as an agression.
but my english is not that best so i wanted do prevent any discussion
that would request a better english.

so sorry if i hurt you.

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:58
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


Don't feel it as an agression Georg,

I agree with you it's a good practice to avoid scriplet in JSP, and myself I
never use it and suggest never using it. They're is alway a way to do
without scriptlet, (if not, perhaps your beans are not well designed for you
webapp, or think about building a custom JSP tag for it).

My response was only to show scriptlet is not uses the same way as RTExp,
that is the only way to put runtime values as attribute of a custom tag.

Nico.


hi guido,

you can do whatever you want.
but i will avaoid using scriptlets in my code.
i think thats the reason why struts came into life.

and now i wnat to stop further discussions about this theme.

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]
Sent: Montag, 24. Februar 2003 11:38
To: Struts Users Mailing List
Subject: Re: How to Show gif image instead of html button in the forms
for html:submit tag ?


you should, you should...
don't forget... philosophical purity should always yield to pragmatism

Nicolas De Loof wrote:

1. Might be. dont know.
   but you should avoid using scriptlets in your code.
   and this is scriptlet.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]