Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
    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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

HTML Frames and JSP!

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Report post to moderator
i am working on a web application with JSPs. i am having problems with the <Frame> element of HTML.

the index page of my application is index.jsp. It has 2 frames--Frame1->for the login form and ,Frame2-> to start a background application. when the user logins in successfully, Frame1 now displays an main.html page which itself has many frames. one of the frames in main.html contains a JSP. now when i do "response.sendRedirect()" in this JSP , the whole Frame1 is changed, ie the new page is displayed in the complete Frame1 and not in the frame that displayed the JSP which triggered this redirection.i want to retain the main.html page.

how can i retain the frame structure of main.html?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
Set the "target" attribute in your hyperlink or FORM tag. Give it the name of the frame you want the content to appear in.
 
Neeraj Macker
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Report post to moderator
i have already done that but it just doesnt not listen.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
Neeraj,

You should try to keep this conversation to one thread. It get's very confusing for people to follow the conversation and help you if it's spread out across multiple threads.

As far as I can see, this part of the same conversation going on in:
https://coderanch.com/forums/

I'll continue to respond there.

-Ben
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic