struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject RE: Javascript and Struts
Date Thu, 13 Jun 2002 21:55:36 GMT
At 5:43 PM -0400 2002/06/13, Leonardo Maciel wrote:
><a href="javascript:openWindow('reportDelivery', 
>'/budsDev/jsp/reportDeliveryQP.jsp',1,350,300)">
>
>or if you want open the page with reportNav action (that's what I use):
>
><a 
>href="javascript:openWindow('reportDelivery','fullPath/reportNav.do?action=Load',1,350,300)">

The problem with this one is that you end up hardcoding the web app 
context path into your JSP, which makes it less portable; my 
response, which uses <html:rewrite>, defers to Java classes to add in 
"fullPath" dynamically.


>or, not sure if they work, if you realy wants to use html:link:
>
><html:link  page="" 
>onclick="javascript:openWindow('reportDelivery','fullPath/reportNav.do?action=Load',1,350,300)"
>
>or
><html:link 
>href="javascript:openWindow('reportDelivery','fullPath/reportNav.do?action=Load',1,350,300)"
>

<html:rewrite> is designed for situations like this -- both of these 
examples also end up with hardcoding "fullPath" (the web app context 
path).

Joe




>
>-----Original Message-----
>From: Villegas, Courtney [mailto:VillegaC@tri-met.org]
>Sent: Thursday, June 13, 2002 4:54 PM
>To: 'Struts Users Mailing List'
>Subject: Javascript and Struts
>
>
>Is it possible to mix javascript and struts?  I want to create a popup
>window that is opened through an action.
>
>There was some talk of doing this about a month ago, but I looked on the
>user-list archives and couldn't find any information.
>
>Any help would be greatly appreciated.
>
>Thanks!!!
>Courtney
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


-- 
--
* Joe Germuska    { joe@germuska.com }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble.... As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956
tune in posse radio: <http://www.live365.com/stations/289268>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message