----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
[EMAIL PROTECTED] wrote:
> Hi friends.
> I am using frames in a CRF application.My problem is as follows:
> I press a button in my left frame. It calls a servlet. This servlet does
> some operations using DOM in an XML file and after that i want to
> present the result of the process in my right frame.
The answer to this is to name the frames and on the hyper link to the
servlet specify what the target frame is. In this way I have no problems
getting the output on the right hand side.
ie
after a index page is set up as follows
<FRAMESET COLS=25%,*>
<FRAMESET ROWS=25%,*>
<FRAME SRC="area.html" NAME="areas_area">
<!FRAME SRC="test/CVSProject.ListCommands"
NAME="commands_area">
<FRAME SRC="commands.pjhtml" NAME="commands_area">
</FRAMESET>
<FRAME SRC="intro.html" NAME="main_area">
</FRAMESET>
which is -----------------------
area ! !
! !
-------- ! Main area !
commands! !
-------- !-------------!
then in the commands.pjhtml you have a hyper link like so
<a href="/test/CVSProject.Update" TARGET="main_area">Update project (to
newest version)</a>
The key is the TARGET tag, this tell the server in which frame to
display the output.
I hope that helps you.
One thing I do have a problem with and that is trying to get the whole
page (ie all the frames) to refresh when a new session is created.
Whatever I tried all I got was a copy of the web site inside the main
area frame. This meant I had a duplicate of the site but only the frames
in main area had the new session id.
Rob
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]