I am starting to get an inferiority complex - lol.

I have tried a million and a half things.  And it seems to boil
down to having the <html:rewrite in the argument to the javascript
that is in the onclick handler.  If I hard code the references it
works like a champ.

<html-el:image page="/Images/${foo.name}Up.jpg"
               onclick="
  switcher ( '/xrm/${foo.name}.do?action=main',
             '/xrm/navigate.do?component=${foo.name}' )"/>

I will use this - except it has the problem of the name of the application
changing, having it hard coded in the app is dangerious.

Help here would be appreciated.

Thanks
Ray Madigan

-----Original Message-----
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 8:15 AM
To: Struts Users Mailing List
Subject: Re: <html-el:image Im stuck, final stage of prototype
development - please


I really need some help here.  Is it that the tag is to long,
too complicated, any help in figuring this out would help.

I started with this tag that works:

<input type="button" value="<c:out value='${foo.name}'/>"
 onclick=" switcher ( '<html-el:rewrite
page="/${foo.name}"/>.do?action=main',
 '<html-el:rewrite page="/navigate.do"/>?component=<c:out
value='${foo.name}' )"/>

This tag works: It is nested in an <html:form action="/foo"> ...
</html:form>

<html-el:image page="/Images/${foo.name}Up.jpg"
               value="<c:out value='${foo.name}'/>" />

But when I add the onclick javascript the jasper compiler pukes.
The tag looks like

<html-el:image page="/Images/${foo.name}Up.jpg"
               value="<c:out value='${foo.name}'/>"
               onclick="
  switcher ( '<html-el:rewrite page="/${foo.name}"/>.do?action=main',
 '<html-el:rewrite page="/navigate.do"/>?component=<c:out
value='${foo.name}' )"/>

The jasper output is:
org.apache.jasper.compiler.ParseException:
/com/mbresearch/main/view/navigate.jsp(93,59) Attribute  has no value
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563)
at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:681)

...

at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
33)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:436)

If I knew what Attribute had no value I could do something.

Is there a debug level that has struts output the tag to standard
output so I can see what is going on?

Im stuck, thanks for your help
Ray Madigan


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

Reply via email to