Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to acces Framesets from JSP

Status
Not open for further replies.

winston6071

Programmer
Nov 22, 2000
52
AT
Hi
i have a big problem with my jsp Programing, i have 3 frames and a defined frameset, i want to change the left frame by click on the main frame, i create dynamic page and make a parent.FRAMENAME.document.write(VARIABLE) that works fine, but then i logon to my system and there is the JSP file on my mainframe now, and when i try to paste that same line i described here into the JSP to write something into the left frame it tells me FRAMENAME is not an objekt blabla... so it seems that when i use the FRAMENAME in a JSP file from my frameset.html it dont know the variables ????

i need it very urgent and i worked already 3 days on it it could only be a small thing to get the solution,

And does anyone know what the best way is to learn JSP is there an recommendet book ???

please help thanks in forehand
 
From what I get from your post is that you're attempting to do some dynamic html on the client... that works fine. Then your trying to use jsp to do the same thing. This can not be done with jsp... jsp is processed on the server side.

Am I on the right track? That's how I interpretted your problem.

I would recommend any book written by O'Reilly & Associates, Inc.

They have published a jsp authoring book called "JavaServer Pages"... check it out. I buy all my computing/tech books from them.

The ISBN for the JSP book is: 156592746X

I hope this helped! ;-)
- Casey Winans
 
hi
first thanks to your reply

i understand that i cannot change anything on client side cause you only can change anything when you send it to the server.
But when i create a variable and write a site into that for example:

var test = "";

test += &quot;<br>&quot;;
test += &quot;<table border='0' cellpadding='1' cellspacing='1' class='test'>\n&quot;;
test += &quot;<tr>\n&quot;;
test += &quot;<th>testsdlkghjshksjf!</th> </th>\n&quot;; test += &quot;</tr>&quot;;
//alert (test);
parent.frames[1].document.write(test);

or just document.write(test);

then he creates a new site in the actual frame or jsp, and he show me the new site, but i want to create a dynamic html on other frame and refresh this frame that he shows me the new html.
there must be a way to make the document write not on my actual frame it should done on other frame.

thanks for the book i will buy it i had a look on it looks good
i am new to jsp and hope to get it soon :)

is it more clear now what i want to do ???
ciao joe

 
I think I understand what you're trying to do, but i think you'll have to do it on the client via JavaScript, you can pass parameters to your jsp by appending the values to the url you want to open, but once it's sent to the client in JSP, it's dead. The JS will make a new request to the server and process any new variables you are passing. Just pass a URL to the frame instead of a variable and then have that url be a JSP page that does the work...

-Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top