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

form not submitting from frame set

sasikumar palakkizhi
Greenhorn

Joined: Sep 11, 2005
Posts: 29
Hi All,

I am using a frameset in which there is a left frame and a right frame. The left frame is having four links, which on click should display the respective jsp on right hand side.
This is working fine for me. But, when I submit the right hand side jsp, there are no changes on the screen. What is the reason for this and how can I rectify this.
I haven�t done any configuration of jsp in web.xml. I am using a controller servlet( MVC architecture) and the same is mapped in web.xml with url pattern <B> /Controller </B>

The relevant parts of the code are


The Frameset is



The left frame is



The right frame is



Please help and guide me by providing a solution for this

Is there an alternate better solution for this other than frame set?

thanks and regards

Sasikumar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

action="?action=checkTicket"

It doesn't look like a URL ! What url did you map your controller to ? (in web.xml)


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61180
    
  66

Remove target="second" as redundant since it will submit to the containing frame by default.

You might also want to consider more modern design approaches than framesets which sort of went out of fashion with the new millenium.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sasikumar palakkizhi
Greenhorn

Joined: Sep 11, 2005
Posts: 29
Hi,

thanks for the replies.

I removed the target attribute. Then also it is not working. My web.xml is


Could you tell me what method can be used instead of frameset?

thanking you in advance,

sasikumar
Giovanni Orso
Greenhorn

Joined: Jul 06, 2007
Posts: 4
struts:tiles
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61180
    
  66

I'd not recommend adopting a behemoth like Struts just to try and fix a simple form submit issue.

"Baloo Bear", please see this post or check your private messages for an important message regarding your display name.
[ July 06, 2007: Message edited by: Bear Bibeault ]
sasikumar palakkizhi
Greenhorn

Joined: Sep 11, 2005
Posts: 29
hi,

thanks for the replies. The purpose here is just to demonstrate the use of MVC pattern and I am not allowed to use struts-tiles. What I have done is , I wrote a controller ( that is a servlet) which accepts all input requests from browser.The jsp files are used as views. However simple the structure is, it is more welcome.

Can I go for a table structure, where the the first column includes the left hand side( static) jsp file and the second column the changed ones? Also I thought of using some dhtml set too like using div.Which one is recommended?

Please advise.

thanks and regards

sasikumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form not submitting from frame set