Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple frames in destination JSP  RSS feed

 
Archanaa Panchal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have a main JSP called index.jsp, which is divided into 3 parts, a tabbed pane, a query-form (which takes user input) and a default page (which displays the results or on initial load, just soem comments.)

i tried to further divide the default JSP to now be two frames. i want the top frame to be blank for 2 out of 3 cases in my app and show the results in the lower frame for those 2 cases.

for the third, i want the result of one stored proc (either passed as a String or as a Collection) to be displayed in the top frame, and the result of another stored proc to be displayed in the lower frame.

i tried to divide the default JSP but what that does is open up a new window (which i know my users wont like!) and it doesnt even display the result of the second proc.

any ideas on what might be the problem/solution? i do not want to post all my source code here, but i will if someone thinks it might be necessary.

please help!!!

thanks,

archie
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One frame == one JSP. If you want to display multiple frames, each must have their own page.
 
Nitin Singh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each of yr frame page should be either a URL tp JSP page or a URL to your action. you can pass query parameter to the action and based on that it will display blank in the top page or results of stored proc.
Do you have any struts related problem in implementing this?
 
Priyadharshini Nagarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i got a rough idea of what u r trying to say...

i dont know whether u r using frames or iframes...

<form action="url" target="framename">
<input type="submit">
</form>

the above code what it does is when the submit button is clicked it will show the result in the corresponding frame that u specified

i would be more clear when you submit your code
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin and Priyadharshini,

JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

thanks,
bear
JSP Forum Bartender
 
Archanaa Panchal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

i do have a separate JSP per frame created. however, i guess its also a Struts problem trying to figure out the correct mapping without the whole application opening up a whole new window.

i am trying to forward (when i have two separate query results) to forward to a JSP which will handle the two-frame-setup, but i guess my problem is that i have a fork on submit fromt he same page. meaning i want to load up one JSP for one condition and another JSP for another condition, and the whole load should happen on submit.

and i am just not able to do this...

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!