Re: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Richard_Shearin

OK, I think that I've fixed it now.

In tip #9, there is a ">" at the end of the first line leaving what appears
to be an extra ">" at the end of the 2nd line. I originally noticed this
but being fairly new to Struts, I just assumed that it was there for a
reason. However, after getting a syntax error when loading the page and
removing the ">" so that the 2nd line became part of the first, everything
worked fine.

Original:


SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
 

Corrected:


 

Richard



   
 
"Nicolas De
 
Loof"  To: "Struts Users Mailing List" <[EMAIL 
PROTECTED]>                 
 Subject: Re: Using rewrite to reference 
HTML Assets - Tip #9 Question
   
 
07/02/2003 
 
09:48 AM   
 
Please respond 
 
to "Struts 
 
Users Mailing  
 
List"  
 
   
 
   
 




Did you include the taglib definition on JSP header :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

Look at generated HTML to see if  tag has been fully
translated by JSP compiler.

Nico.


> Just signed up to the mailing list a few minutes ago so as you would
> probably expect, I have a question that I am hoping someone can help me
> with.
>
>  I'm trying to reference two javascript files but am unable to do it
> successfully using the example in tip#9.
>
> Everything works fine when I use
>
> 
> 
>
> when I run the app in Netbeans with Tomcat but when I move the app to
> another server and it gets an application name, it loses the context
> relative URL so I tried to code it using the html rewrite as tip#9
> suggested but get an object expected error (it can't find the js files)
> when I click on the linked image.
>
> Can someone tell me what I am doing wrong or what else I can try to get
> this to work? I have been unable to find any documentation or examples
> elsewhere.
>
>
> Here's the applicable code:
>
> 
>
> 
>SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
> 
> 
>SRC='<html:rewrite page="/js/calendar.js"/>'>
> 
>
> 
>
>
> 
> 
>
>  border="0"/>
>
> 
> 
>
>
> Thanks!
>
> Richard
>
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you.
>
> ***
>
>
> -
> 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: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Nicolas De Loof
About the syntax error, just change

> 
>SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
...

to

<SCRIPT language='javascript'
   SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
...
(no more ">" after language attribute)

About your context, I don't know why it would'nt work. What server are you using ?

Nico.

>
> Yes, the taglib def for html and other tags are in the header and all tags
> (html, logic, etc.) work fine everywhere else.
>
> Here's the generated html:
>
> <SCRIPT language='javascript'>
>SRC='/js/overlib_mini.js'>
> 
> 
>SRC='/js/calendar.js'>
> 
>
> Also, I noticed that I get a syntax error on the 2nd  when I load
> the page.
>
> Richard
>
>
>
>
>
>         "Nicolas De
>             Loof"  To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
>  @cgey.com> Subject: Re: Using rewrite to 
> reference HTML Assets - Tip #9 Question
>
> 07/02/2003
> 09:48 AM
> Please respond
> to "Struts
> Users Mailing
> List"
>
>
>
>
>
>
> Did you include the taglib definition on JSP header :
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> Look at generated HTML to see if  tag has been fully
> translated by JSP compiler.
>
> Nico.
>
>
> > Just signed up to the mailing list a few minutes ago so as you would
> > probably expect, I have a question that I am hoping someone can help me
> > with.
> >
> >  I'm trying to reference two javascript files but am unable to do it
> > successfully using the example in tip#9.
> >
> > Everything works fine when I use
> >
> > 
> > 
> >
> > when I run the app in Netbeans with Tomcat but when I move the app to
> > another server and it gets an application name, it loses the context
> > relative URL so I tried to code it using the html rewrite as tip#9
> > suggested but get an object expected error (it can't find the js files)
> > when I click on the linked image.
> >
> > Can someone tell me what I am doing wrong or what else I can try to get
> > this to work? I have been unable to find any documentation or examples
> > elsewhere.
> >
> >
> > Here's the applicable code:
> >
> > 
> >
> > 
> >SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
> > 
> > 
> >SRC='<html:rewrite page="/js/calendar.js"/>'>
> > 
> >
> > 
> >
> >
> > 
> > 
> >
> >  > border="0"/>
> >
> > 
> > 
> >
> >
> > Thanks!
> >
> > Richard
> >
> > **
> > This message is intended only for the designated recipient(s).  It may
> > contain confidential or proprietary information and may be subject to
> > the attorney-client privilege or other confidentiality protections.
> > If you are not a designated recipient, you may not review, use, copy
> > or distribute this message.  If you receive this in error, please
> > notify the sender by reply e-mail and delete this message.  Thank you.
> >
> > ***
> >
> >
> > -
> > 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]
>
>
>
>
>
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you.
>
> ***
>
>
> -
> 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: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Raible, Matt
You might try a the HTML4/XHTML standard way of writing this:



Notice the all lowercase attributes and the  is on the same line.
And ype, this is backwards compatible with all browsers to my knowledge.

Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 8:28 AM
To: Struts Users Mailing List
Subject: Re: Using rewrite to reference HTML Assets - Tip #9 Question



Yes, the taglib def for html and other tags are in the header and all tags
(html, logic, etc.) work fine everywhere else.

Here's the generated html:


   SRC='/js/overlib_mini.js'>


   SRC='/js/calendar.js'>


Also, I noticed that I get a syntax error on the 2nd  when I load
the page.

Richard




 

"Nicolas De

Loof"  To: "Struts Users Mailing
List" <[EMAIL PROTECTED]>     
             Subject: Re: Using rewrite to
reference HTML Assets - Tip #9 Question
 

07/02/2003

09:48 AM

Please respond

to "Struts

Users Mailing

List"

 

 





Did you include the taglib definition on JSP header :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

Look at generated HTML to see if  tag has been fully
translated by JSP compiler.

Nico.


> Just signed up to the mailing list a few minutes ago so as you would
> probably expect, I have a question that I am hoping someone can help me
> with.
>
>  I'm trying to reference two javascript files but am unable to do it
> successfully using the example in tip#9.
>
> Everything works fine when I use
>
> 
> 
>
> when I run the app in Netbeans with Tomcat but when I move the app to
> another server and it gets an application name, it loses the context
> relative URL so I tried to code it using the html rewrite as tip#9
> suggested but get an object expected error (it can't find the js files)
> when I click on the linked image.
>
> Can someone tell me what I am doing wrong or what else I can try to get
> this to work? I have been unable to find any documentation or examples
> elsewhere.
>
>
> Here's the applicable code:
>
> 
>
> 
>SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
> 
> 
>SRC='<html:rewrite page="/js/calendar.js"/>'>
> 
>
> 
>
>
> 
> 
>
>  border="0"/>
>
> 
> 
>
>
> Thanks!
>
> Richard
>
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you.
>
> ***
>
>
> -
> 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]





**
This message is intended only for the designated recipient(s).  It may
contain confidential or proprietary information and may be subject to
the attorney-client privilege or other confidentiality protections.
If you are not a designated recipient, you may not review, use, copy
or distribute this message.  If you receive this in error, please
notify the sender by reply e-mail and delete this message.  Thank you. 

***


-
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: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Richard_Shearin

Yes, the taglib def for html and other tags are in the header and all tags
(html, logic, etc.) work fine everywhere else.

Here's the generated html:


   SRC='/js/overlib_mini.js'>


   SRC='/js/calendar.js'>


Also, I noticed that I get a syntax error on the 2nd  when I load
the page.

Richard




   
 
"Nicolas De
 
Loof"  To: "Struts Users Mailing List" <[EMAIL 
PROTECTED]>     
             Subject: Re: Using rewrite to reference 
HTML Assets - Tip #9 Question
   
 
07/02/2003 
 
09:48 AM   
 
Please respond 
 
to "Struts 
 
Users Mailing  
 
List"  
 
   
 
   
 




Did you include the taglib definition on JSP header :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

Look at generated HTML to see if  tag has been fully
translated by JSP compiler.

Nico.


> Just signed up to the mailing list a few minutes ago so as you would
> probably expect, I have a question that I am hoping someone can help me
> with.
>
>  I'm trying to reference two javascript files but am unable to do it
> successfully using the example in tip#9.
>
> Everything works fine when I use
>
> 
> 
>
> when I run the app in Netbeans with Tomcat but when I move the app to
> another server and it gets an application name, it loses the context
> relative URL so I tried to code it using the html rewrite as tip#9
> suggested but get an object expected error (it can't find the js files)
> when I click on the linked image.
>
> Can someone tell me what I am doing wrong or what else I can try to get
> this to work? I have been unable to find any documentation or examples
> elsewhere.
>
>
> Here's the applicable code:
>
> 
>
> 
>SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
> 
> 
>SRC='<html:rewrite page="/js/calendar.js"/>'>
> 
>
> 
>
>
> 
> 
>
>  border="0"/>
>
> 
> 
>
>
> Thanks!
>
> Richard
>
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you.
>
> ***
>
>
> -
> 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]





**
This message is intended only for the designated recipient(s).  It may
contain confidential or proprietary information and may be subject to
the attorney-client privilege or other confidentiality protecti

Re: Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Nicolas De Loof
Did you include the taglib definition on JSP header :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

Look at generated HTML to see if  tag has been fully translated by JSP 
compiler.

Nico.


> Just signed up to the mailing list a few minutes ago so as you would
> probably expect, I have a question that I am hoping someone can help me
> with.
> 
>  I'm trying to reference two javascript files but am unable to do it
> successfully using the example in tip#9.
> 
> Everything works fine when I use
> 
> 
> 
> 
> when I run the app in Netbeans with Tomcat but when I move the app to
> another server and it gets an application name, it loses the context
> relative URL so I tried to code it using the html rewrite as tip#9
> suggested but get an object expected error (it can't find the js files)
> when I click on the linked image.
> 
> Can someone tell me what I am doing wrong or what else I can try to get
> this to work? I have been unable to find any documentation or examples
> elsewhere.
> 
> 
> Here's the applicable code:
> 
> 
> 
> 
>SRC=''>
> 
> 
>SRC=''>
> 
> 
> 
> 
> 
> 
> 
> 
>  border="0"/>
> 
> 
> 
> 
> 
> Thanks!
> 
> Richard
> 
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you. 
> 
> ***
> 
> 
> -
> 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]



Using rewrite to reference HTML Assets - Tip #9 Question

2003-07-02 Thread Richard_Shearin
Just signed up to the mailing list a few minutes ago so as you would
probably expect, I have a question that I am hoping someone can help me
with.

 I'm trying to reference two javascript files but am unable to do it
successfully using the example in tip#9.

Everything works fine when I use




when I run the app in Netbeans with Tomcat but when I move the app to
another server and it gets an application name, it loses the context
relative URL so I tried to code it using the html rewrite as tip#9
suggested but get an object expected error (it can't find the js files)
when I click on the linked image.

Can someone tell me what I am doing wrong or what else I can try to get
this to work? I have been unable to find any documentation or examples
elsewhere.


Here's the applicable code:




   SRC=''>


   SRC=''>














Thanks!

Richard

**
This message is intended only for the designated recipient(s).  It may
contain confidential or proprietary information and may be subject to
the attorney-client privilege or other confidentiality protections.
If you are not a designated recipient, you may not review, use, copy
or distribute this message.  If you receive this in error, please
notify the sender by reply e-mail and delete this message.  Thank you. 

***


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