MatthewL
asked on
respose.sendRedirect() to a specific frame
Hi,
I have a servlet called from one frame that will respond to a different frame. How can I do this?
Currently I have tried:
res.setHeader("Window-targ et","main" );
res.sendRedirect(req.getSc heme() + "://" + req.getServerName() + ":"+ req.getServerPort() + "url here");
Thanks,
Matt
I have a servlet called from one frame that will respond to a different frame. How can I do this?
Currently I have tried:
res.setHeader("Window-targ
res.sendRedirect(req.getSc
Thanks,
Matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then you can't do it.
Probably you should try to change your design logic,
while keeping your business logic about the same.
Why don't you give a brief description of what you are doing?
Probably you should try to change your design logic,
while keeping your business logic about the same.
Why don't you give a brief description of what you are doing?
<a href="your servlet url" target="the name of the second frame" onClick="javascript:docume nt.yourFor mName.subm it();">som ething ..</a>
don't put anything in the href..
say href=""
say href=""
or - you can declare you form as:
<form target="the target frame name" action="your url" form attributes like "action" or "method" >
use standard submit button:
<input type=submit>
</form>
<form target="the target frame name" action="your url" form attributes like "action" or "method" >
use standard submit button:
<input type=submit>
</form>
ASKER
Hi Venci75,
I realised I had misinterpeted your answer. Works perfect now!
Thanks,
Matt
I realised I had misinterpeted your answer. Works perfect now!
Thanks,
Matt
ASKER
I need to do this from within the Servlet as this action will be the result of a submit from one of the child frames.
Matt