aspose file tools*
The moose likes Servlets and the fly likes targeting the client frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "targeting the client frame" Watch "targeting the client frame" New topic
Author

targeting the client frame

surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
i am sending my username and password to the servlet through form's post method, when i find those data are not valid after processing them,i want to give an error method in some other frame of the client's window and display those form field's in the recent frame. how can i tell over the server side to identify a particular frame to provide a response...


SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61658
    
  67

You can't. The response will appear in the window or frame in which the request was originally targetted. If you want the reponse to appear in another frame, you must target the request to that other frame.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
Thanks Bear,
but as you have said, How will i Target the request to other frame??
help me with a piece of code.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61658
    
  67

Use the target attribute on the form or link.
surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
Thanks Bear.It works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: targeting the client frame