File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Frameset in JSP not displaying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frameset in JSP not displaying" Watch "Frameset in JSP not displaying" New topic
Author

Frameset in JSP not displaying

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Hello Ranchers..
In my JSP page when the user name and password is given correctly it will redirect to a jsp page where i'm using frameset

but in that page i cannot view anything.. is there any problem with this ?

the code is here!!

----------------------------------------------------------------------------
<html>
<head>
<title>
Admin Console
</title>
</head>
<script language="javascript" type="text/javascript" src="../../scripts/test.js"></script>
<%@ page language="java" session="true" import="java.sql.*" %>
<body>
<%
String firstname = (String)session.getValue("firstname");
String lastname = (String)session.getValue("lastname");
Integer admin = (Integer)session.getValue("admin");
Integer status = (Integer)session.getValue("status");

if(firstname==null || status==null || lastname==null || admin==null)
{out.println("session invalidated");
//response.sendRedirect("../../index.htm");
}
else
{
%>
<frameset rows=10%,* frameborder=no framespacing=0 border=1>
<frame src="heading.htm">
<frameset cols=22%,* frameborder=no framespacing=0 border=1>
<frame src="leftmenu.htm" target="master" >
<frame src="body.htm" name="main">
</frameset>
</frameset>
<%
}
%>
</body>
</html>
----------------------------------------------------------------------------
but this page is not showing any thing..
just a white page..
please reply to ranchers..

it is very urgent!!

thank you

regards
Aravind Prasad
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Ranchers..

when i removed the body tag.. it is working perfectly.. i don't know what is this..

please let me know how it is working when the body tag is removed?

thanks in advance
regards!!
Aravind
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

A frameset won't have a body.
It has frames.

Each frame is a whole web page with a head and a body.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Ranchers..
I've a javascript function which scrolls on the status bar..
if i want to run the script.. i want to make use of the body part..
and now it is not working.
so what can i do now!!

please help me

thanks in advance. ranchers!!

regards

Aravind
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Two things...

First:
This is the wrong forum for HTML/Javascript questions.
We have a forum named HTML/Javascript where you would have much better luck with questions like this.

Second:
Please don't ask multiple questions in the same thread.
If you have a new question, start a new thread.
Doing so will make these forums more useful to people using the search feature.

Thank you.
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Thank you Ben.,
Can u please tell me.. where can i put the java script function!!
because i want to execute the function in the status bar..

so please help me..

thanks in advance..

regards
Aravind
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
I'm really sorry

Aravind
 
 
subject: Frameset in JSP not displaying
 
Similar Threads
Calling outside JSP code without waiting for its response.
simple code help urgent
problem using framesets and struts 2.0 please help
Viewing source code in frames.
problems in frame and struts!!!!