I've used the following style and it's worked
could probably streamline it a bit with a
custom tag or something:

<SCRIPT language="JavaScript">
function openWindow()
{
  window.open( "", "CreateNew",
    "height=500,width=550,resizable=1,scrollbars=1" );
}
</SCRIPT>

<html:link
        page="LoadObject.do?parent=true&action=Edit&type=<%= newType %>&accNum=<%=
accField.value%>"
        target="CreateNew"
        onclick="openWindow();">
 <bean:message key="whatever.the.link.name.is"/>
</html:link>

_\|/_______________________________
  generation-d development
  andrew b forman

> -----Original Message-----
> From: Sidhartha Jain [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: HREF issue
>
>
>
> Hi
> I am waiting for the solution for my problem for someone and
> seems no one is responding to it.I dunno know why this is
> happening.I would highly appreciate if someone could help me
> solve my problem. here i am stating my problem once again.
>
> I am having an issue with <html:link> tag of struts. I think I
> don't know how to use it.
> Actually I have a java script fucntion which looks like this
> function launchEdit(field, accField, relation, newType)
> {
> currentField = document.editForm.field;
> currentAccField = document.editForm.accField;
> isRelation = relation;
> var url =
> 'LoadObject.do?parent=true&action=Edit&type='+newType+'&accNum='+a
ccField.value;
> window.open(url,'CreateNew','height=500,width=550,resizable=1,scro
llbars=1');
> }
> And it needs to be called by passing the parameters that would
> also be dynamic for me (which will change everytime we call it.)
>
> Can Someone throw some light on this issue as to how we achieve
> this functionality .
> I would be highly thankful to you.
>
> Thanks in Advance
> Sidhartha
>
>
>
>
> --
> 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