aspose file tools*
The moose likes JSP and the fly likes fieldset  and form problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "fieldset  and form problem" Watch "fieldset  and form problem" New topic
Author

fieldset and form problem

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, i create a fieldset which contain a form, when i click the summit button, i would like to display a page which replace the current form, meaning the new display page will inside the fieldset now ...how to i do it ? can anyone guide me ?



test.html is simple information to display "hello"..anyone can guide me ? thank you !
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
When you use the action, it replaces the current page.
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
mr. Eric Pascarello , i actually want the the action call page to put inside my fieldset ...can i do that ? thank you !
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are going to have to use use a server side language to replace the content or you have to use JavaScript to change the innerHTML of the document.

Eric
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Alvin,

You could look at using an <iframe> but I prefer Eric's suggestion to use a server-side solution, e.g. JSP. If you don't want (or need) to complicate your page to the extent of JSP you could look into the SSI (Server Side Includes) capabilities of your web server.

Jules
[ August 26, 2004: Message edited by: Julian Kennedy ]
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
i using jsp, can anyone provide information for this ? thank you !
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I will move this to the jsp forum.

With jsp you need to detect the form submission and determine the include....

Eric
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
meaning using jsp:include ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

As was pointed out before, there is no way to have a response change only part of the page. The best solution (avoiding frames) is to re-create the entire page using JSP and deciding what the content of the fieldset should be using whatever criteria you need to trigger off of.

If you do not want to do that, your only viable alternative is to use an iframe for the fieldset content so that it is its own page that can be replaced without affecting the parent page. But that approach has a lot of tricky nuances that can trip you up if you are not careful.
[ August 27, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thank you, Bear Bibeault, thank for clarification !! so sad ...as i can't change the contains inside fieldset
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Alvin,

Did these suggestions solve your problem? You seem to suggest they didn't. You can achieve pretty much anything you want on a web page using JSP. If you still have a problem please post some more details and maybe we can point you in the right direction.

Jules
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fieldset and form problem