I think the problem is that you're trying to combine both a static string
("MyWindow=window.open('") with a runtime expression, which doesn't
work...at least the way you have it.  In general, stuff like this:

   <foo:bar baz="bat<%= bif %>bax"/>

Won't work and needs to be written as:

   <foo:bar baz='<%= "bat" + bif + "bax" %>'/>
   
So, for you, try something like this:

   <html:button property="button" value="Monitor" styleClass="MenuButton"
   onclick='<%= "foofoofoo" + proc.getBigBrotherReport + "barbarbar" %>'/>

Replace the "foofoofoo" and "barbarbar" with the appropriate javascript
stuff...something like this (i haven't tested this, of course, so excuse any
single/double quote typos):

   <html:button property="button" value="Monitor" styleClass="MenuButton"
   onclick='<%= "MyWindow=window.open('" + proc.getBigBrotherReport + "',
 
'MyWindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,
   scrollbars=yes,resizable=yes,width=750,height=580');MyWindow.focus(); 
   return false;" %>'/>

chris

> -----Original Message-----
> From: Susmita Pati [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 2:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Re[2]: [Buttons] How do i code this in struts
> 
> 
> My struts wise code
>  <html:button property="button" value="Monitor" 
> styleClass="MenuButton"
> onclick="MyWindow=window.open('<%=proc.getBigBrotherReport)%>',
> 'MyWindow','toolbar=yes,location=yes,directories=yes,status=ye
> s,menubar=yes,
> scrollbars=yes,resizable=yes,width=750,height=580');MyWindow.focus(); 
> return false;"/>
> 
> 
> 
> -----Original Message-----
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: Re[2]: [Buttons] How do i code this in struts
> 
> 
> 
> 
> On Friday, August 30, 2002, 2:32:50 PM, Susmita wrote:
> 
> SP>  How do i change <%= proc.getBigBrotherReport()%> to be 
> struts complaint
> as
> SP> its giving me an error out there....
> 
>     What are you doing "struts-wise" that is giving you the error? Can
>     you paste the struts code you are trying to use vs the non struts
>     code that you just posted.
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

Reply via email to