Re: Using the html:img tag inside html:submit

2007-03-05 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Dave Newton wrote:
>>
http://struts.apache.org/1.2.9/userGuide/struts-html.html#image
> I'm not sure that helps. 

I thought he wanted a graphical button.

d.



 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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



Re: Using the html:img tag inside html:submit

2007-03-05 Thread Laurie Harper

Dave Newton wrote:

--- Asad Habib <[EMAIL PROTECTED]> wrote:

Is their a way to do this?

http://struts.apache.org/1.2.9/userGuide/struts-html.html#image


I'm not sure that helps. The issue is not how to use the  
tag, but how to use it in this context -- which I don't think you can, 
see below:








Can you do that with an  tag?
(I've never tried.)


I don't think so, I think you'd need to use type="button" or one of the 
other form elements. I'm pretty sure an input type="submit" doesn't take 
body content.


L.


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



Re: Using the html:img tag inside html:submit

2007-03-04 Thread Dave Newton
--- Asad Habib <[EMAIL PROTECTED]> wrote:
> Is their a way to do this?

http://struts.apache.org/1.2.9/userGuide/struts-html.html#image

> 
>  altKey="image.rightArrow.alt" border="1">
> 

Can you do that with an  tag?
(I've never tried.)

d.



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



Using the html:img tag inside html:submit

2007-03-03 Thread Asad Habib

Is their a way to do this?

I have the following code but it does not work as expected:


   


Also, using the html:img tag like  instead of 
 does not make a difference.


Any help would be appreciated. Thanks.


- Asad

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



Re: html:img tag question

2005-06-06 Thread Dave Newton

Scott Purcell wrote:


But today, I realized that a lot of sites use a fully qualified: http://mysite/mycontext/images/images/spacer.gif";>
for their sites. I would like to be able to do that. 
 

Why? Seems unnecessary if you're linking to your own site. If you're 
linking off-site, there's no good reason to use the html: tags anyway.



So using html: shortcuts, can this be done? Or do I have to go outside the 
framework?
 


I'm not aware of how it could be done w/o modifying tag source.

Dave



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



Re: html:img tag question

2005-06-06 Thread Aleksandar Matijaca
I believe that doing absolute addressing as you are proposing, is probably 
against all
"best practices" of HTML design. Do some research on best-practices of HTML 
before
doing this...
 Cheers, Alex.


 On 6/6/05, Scott Purcell <[EMAIL PROTECTED]> wrote: 
> 
> Hello,
> 
> I have build a site using the struts framework with a heavy use of the 
> html:img tag like so.
> 
> 
> 
> And it does a great job at including the context of the application and 
> therefore giving me a page source of such:
> 
> 
> And all is happy.
> But today, I realized that a lot of sites use a fully qualified:  src="http://mysite/mycontext/images/images/spacer.gif";>
> for their sites. I would like to be able to do that.
> 
> So using html: shortcuts, can this be done? Or do I have to go outside the 
> framework?
> 
> Thanks,
> Scott
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


html:img tag question

2005-06-06 Thread Scott Purcell
Hello,

I have build a site using the struts framework with a heavy use of the  
html:img tag like so.
 


And it does a great job at including the context of the application and 
therefore giving me a page source of such:


And all is happy. 
But today, I realized that a lot of sites use a fully qualified: http://mysite/mycontext/images/images/spacer.gif";>
for their sites. I would like to be able to do that. 

So using html: shortcuts, can this be done? Or do I have to go outside the 
framework?

Thanks,
Scott


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



Re: html:img tag and modules

2004-08-18 Thread David Erickson
Thanks Kishore, curious what does the pagePattern of the controller actually
do?
-David

- Original Message - 
From: "Kishore Senji" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 2:03 PM
Subject: Re: html:img tag and modules


> module works only when an action is specified.
> But you can set the contextRelative attribute to true in the html:img
> 
> (P.S: contextRelative is deprecated and removed after 1.2)
>
> OR
>
>  given that for that
module
> you set the pagePattern to $P of the controller
> 
>
> OR
>
> using JSTL:
> 
>
> OR
>
> Extend img tag and provide the behaviour you want
>
> Thanks,
> Kishore Senji
>
> -
> 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: html:img tag and modules

2004-08-18 Thread Kishore Senji
module works only when an action is specified. 
But you can set the contextRelative attribute to true in the html:img

(P.S: contextRelative is deprecated and removed after 1.2)

OR

 given that for that module
you set the pagePattern to $P of the controller


OR 

using JSTL:


OR

Extend img tag and provide the behaviour you want

Thanks,
Kishore Senji

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



RE: html:img tag and modules

2004-08-18 Thread Jones, Demian
You guys are hysterical...thanks

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:25 PM
To: Struts Users Mailing List
Subject: Re: html:img tag and modules


Man and I got all excited that someone was replying to my thread and I might
get an answer... but noo it gets highjacked by someone who cant read =D
-David
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 12:16 PM
Subject: RE: html:img tag and modules


>
>
>
>
>
> There is unsubscription information on the bottom of every post.  You may
> get better results that way.
>
>
>
>
>  "Jones, Demian"
>  <[EMAIL PROTECTED]
>  >  To
>"'Struts Users Mailing List'"
>  08/18/2004 02:12  <[EMAIL PROTECTED]>
>  PM cc
>
>    Subject
>  Please respond to RE: html:img tag and modules
>"Struts Users
>Mailing List"
>  <[EMAIL PROTECTED]
>   he.org>
>
>
>
>
>
>
> PLEASE TAKE ME OFF THIS MAILING
>
> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 18, 2004 1:31 PM
> To: Struts Users Mailing List
> Subject: html:img tag and modules
>
>
> Hi I've got a pretty basic problem and I can't seem to understand why the
> html:img tag doesn't support it.  I've got all my images stored under the
> default module in the /images directory.  I want to access them from
> different modules.  I tried 
> and it does not work, it tries to rewrite the url to the current module.
> So
> I goto the api page and look what it says under page:
>
> page The module-relative path, starting with a slash, of the image to be
> displayed by this tag. The rendered URL for this image will automatically
> prepend the context path of this web application (in the same manner as
the
> page attribute on the link tag works), in addition to any necessary URL
> rewriting. You must specify either the page attribute or the src
attribute.
>
> [RT Expr]
>
> note module-relative, which i would assume SHOULD be the specified module.
> But yet under the module attribute it says:
> module Prefix name of a Module that contains the action mapping for the
> Action that is specified by the action attribute. You must specify an
> action
> attribute for this to have an effect.
>
> Note: Use "" to map to the default module.
>
> [RT Expr]
>
> How can this only work for specifying an action???  I cannot use action
> because when I try that it appends .do on to the link, and if i use src it
> wont rewrite anything appropriately... And i dont want to be repeating the
> use of images in images directories in each of my modules... right now I'm
> stuck doing 
> which sucks in my opinion.. what is everyone else doing??
> -David
>
>
>
> -
> 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]

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



Re: html:img tag and modules

2004-08-18 Thread David Erickson
Man and I got all excited that someone was replying to my thread and I might
get an answer... but noo it gets highjacked by someone who cant read =D
-David
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 12:16 PM
Subject: RE: html:img tag and modules


>
>
>
>
>
> There is unsubscription information on the bottom of every post.  You may
> get better results that way.
>
>
>
>
>  "Jones, Demian"
>  <[EMAIL PROTECTED]
>  >  To
>"'Struts Users Mailing List'"
>  08/18/2004 02:12  <[EMAIL PROTECTED]>
>  PM cc
>
>    Subject
>  Please respond to RE: html:img tag and modules
>"Struts Users
>Mailing List"
>  <[EMAIL PROTECTED]
>   he.org>
>
>
>
>
>
>
> PLEASE TAKE ME OFF THIS MAILING
>
> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 18, 2004 1:31 PM
> To: Struts Users Mailing List
> Subject: html:img tag and modules
>
>
> Hi I've got a pretty basic problem and I can't seem to understand why the
> html:img tag doesn't support it.  I've got all my images stored under the
> default module in the /images directory.  I want to access them from
> different modules.  I tried 
> and it does not work, it tries to rewrite the url to the current module.
> So
> I goto the api page and look what it says under page:
>
> page The module-relative path, starting with a slash, of the image to be
> displayed by this tag. The rendered URL for this image will automatically
> prepend the context path of this web application (in the same manner as
the
> page attribute on the link tag works), in addition to any necessary URL
> rewriting. You must specify either the page attribute or the src
attribute.
>
> [RT Expr]
>
> note module-relative, which i would assume SHOULD be the specified module.
> But yet under the module attribute it says:
> module Prefix name of a Module that contains the action mapping for the
> Action that is specified by the action attribute. You must specify an
> action
> attribute for this to have an effect.
>
> Note: Use "" to map to the default module.
>
> [RT Expr]
>
> How can this only work for specifying an action???  I cannot use action
> because when I try that it appends .do on to the link, and if i use src it
> wont rewrite anything appropriately... And i dont want to be repeating the
> use of images in images directories in each of my modules... right now I'm
> stuck doing 
> which sucks in my opinion.. what is everyone else doing??
> -David
>
>
>
> -
> 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]



RE: html:img tag and modules

2004-08-18 Thread amr





There is unsubscription information on the bottom of every post.  You may
get better results that way.



   
 "Jones, Demian"   
 <[EMAIL PROTECTED] 
 >  To 
   "'Struts Users Mailing List'"   
 08/18/2004 02:12  <[EMAIL PROTECTED]>
 PM cc 
   
   Subject 
     Please respond to RE: html:img tag and modules
   "Struts Users   
   Mailing List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   




PLEASE TAKE ME OFF THIS MAILING

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 1:31 PM
To: Struts Users Mailing List
Subject: html:img tag and modules


Hi I've got a pretty basic problem and I can't seem to understand why the
html:img tag doesn't support it.  I've got all my images stored under the
default module in the /images directory.  I want to access them from
different modules.  I tried 
and it does not work, it tries to rewrite the url to the current module.
So
I goto the api page and look what it says under page:

page The module-relative path, starting with a slash, of the image to be
displayed by this tag. The rendered URL for this image will automatically
prepend the context path of this web application (in the same manner as the
page attribute on the link tag works), in addition to any necessary URL
rewriting. You must specify either the page attribute or the src attribute.

[RT Expr]

note module-relative, which i would assume SHOULD be the specified module.
But yet under the module attribute it says:
module Prefix name of a Module that contains the action mapping for the
Action that is specified by the action attribute. You must specify an
action
attribute for this to have an effect.

Note: Use "" to map to the default module.

[RT Expr]

How can this only work for specifying an action???  I cannot use action
because when I try that it appends .do on to the link, and if i use src it
wont rewrite anything appropriately... And i dont want to be repeating the
use of images in images directories in each of my modules... right now I'm
stuck doing 
which sucks in my opinion.. what is everyone else doing??
-David



-
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: html:img tag and modules

2004-08-18 Thread Michael Finger
If you scroll down you'll see:
To unsubscribe, e-mail: [EMAIL PROTECTED]

Sending emails to the list won't get you off it.

-Original Message-
From: Jones, Demian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 11:13 AM
To: 'Struts Users Mailing List'
Subject: RE: html:img tag and modules

PLEASE TAKE ME OFF THIS MAILING

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 1:31 PM
To: Struts Users Mailing List
Subject: html:img tag and modules


Hi I've got a pretty basic problem and I can't seem to understand why
the
html:img tag doesn't support it.  I've got all my images stored under
the
default module in the /images directory.  I want to access them from
different modules.  I tried 
and it does not work, it tries to rewrite the url to the current module.
So
I goto the api page and look what it says under page:

page The module-relative path, starting with a slash, of the image to be
displayed by this tag. The rendered URL for this image will
automatically
prepend the context path of this web application (in the same manner as
the
page attribute on the link tag works), in addition to any necessary URL
rewriting. You must specify either the page attribute or the src
attribute.

[RT Expr]

note module-relative, which i would assume SHOULD be the specified
module.
But yet under the module attribute it says:
module Prefix name of a Module that contains the action mapping for the
Action that is specified by the action attribute. You must specify an
action
attribute for this to have an effect.

Note: Use "" to map to the default module.

[RT Expr]

How can this only work for specifying an action???  I cannot use action
because when I try that it appends .do on to the link, and if i use src
it
wont rewrite anything appropriately... And i dont want to be repeating
the
use of images in images directories in each of my modules... right now
I'm
stuck doing 
which sucks in my opinion.. what is everyone else doing??
-David



-
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: html:img tag and modules

2004-08-18 Thread Jones, Demian
PLEASE TAKE ME OFF THIS MAILING

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 1:31 PM
To: Struts Users Mailing List
Subject: html:img tag and modules


Hi I've got a pretty basic problem and I can't seem to understand why the
html:img tag doesn't support it.  I've got all my images stored under the
default module in the /images directory.  I want to access them from
different modules.  I tried 
and it does not work, it tries to rewrite the url to the current module.  So
I goto the api page and look what it says under page:

page The module-relative path, starting with a slash, of the image to be
displayed by this tag. The rendered URL for this image will automatically
prepend the context path of this web application (in the same manner as the
page attribute on the link tag works), in addition to any necessary URL
rewriting. You must specify either the page attribute or the src attribute.

[RT Expr]

note module-relative, which i would assume SHOULD be the specified module.
But yet under the module attribute it says:
module Prefix name of a Module that contains the action mapping for the
Action that is specified by the action attribute. You must specify an action
attribute for this to have an effect.

Note: Use "" to map to the default module.

[RT Expr]

How can this only work for specifying an action???  I cannot use action
because when I try that it appends .do on to the link, and if i use src it
wont rewrite anything appropriately... And i dont want to be repeating the
use of images in images directories in each of my modules... right now I'm
stuck doing 
which sucks in my opinion.. what is everyone else doing??
-David



-
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]



html:img tag and modules

2004-08-18 Thread David Erickson
Hi I've got a pretty basic problem and I can't seem to understand why the
html:img tag doesn't support it.  I've got all my images stored under the
default module in the /images directory.  I want to access them from
different modules.  I tried 
and it does not work, it tries to rewrite the url to the current module.  So
I goto the api page and look what it says under page:

page The module-relative path, starting with a slash, of the image to be
displayed by this tag. The rendered URL for this image will automatically
prepend the context path of this web application (in the same manner as the
page attribute on the link tag works), in addition to any necessary URL
rewriting. You must specify either the page attribute or the src attribute.

[RT Expr]

note module-relative, which i would assume SHOULD be the specified module.
But yet under the module attribute it says:
module Prefix name of a Module that contains the action mapping for the
Action that is specified by the action attribute. You must specify an action
attribute for this to have an effect.

Note: Use "" to map to the default module.

[RT Expr]

How can this only work for specifying an action???  I cannot use action
because when I try that it appends .do on to the link, and if i use src it
wont rewrite anything appropriately... And i dont want to be repeating the
use of images in images directories in each of my modules... right now I'm
stuck doing 
which sucks in my opinion.. what is everyone else doing??
-David



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



RE: html:img Tag Problem

2004-06-10 Thread Ram Venkataswamy
Hi 

You are missing to close the html:img tag (The tag "html:img" should end
with "/>".)

Empty tags: tags do not have Body - like  or 

Non empty tags : tags with body tag Untitled Document

V.K.Ram
www.m7.com
NitroX for Struts
 
 
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 09, 2004 10:09 PM
To: [EMAIL PROTECTED]
Subject: html:img Tag Problem

In my JSP, I have a html:img tag:


and the above statement gives me the error message:

'According to TLD, tag html:img must be empty, but is
not' 

I am very confused by the error message.  I should
have an empty html:img tag?  Please advise.  Thank you.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

-
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: html:img Tag Problem

2004-06-09 Thread David Friedman
I don't see your closing backslash greater than, />, to end the tag such as:


Regards,
David

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 1:09 AM
To: [EMAIL PROTECTED]
Subject: html:img Tag Problem


In my JSP, I have a html:img tag:


and the above statement gives me the error message:

'According to TLD, tag html:img must be empty, but is
not'

I am very confused by the error message.  I should
have an empty html:img tag?  Please advise.  Thank you.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

-
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]



html:img Tag Problem

2004-06-09 Thread Caroline Jen
In my JSP, I have a html:img tag:


and the above statement gives me the error message:

'According to TLD, tag html:img must be empty, but is
not' 

I am very confused by the error message.  I should
have an empty html:img tag?  Please advise.  Thank you.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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