• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Frameset in JSP not displaying

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A frameset won't have a body.
It has frames.

Each frame is a whole web page with a head and a body.
 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm really sorry

Aravind
 
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic