• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form not submitting from frame set

 
sasikumar palakkizhi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
action="?action=checkTicket"

It doesn't look like a URL ! What url did you map your controller to ? (in web.xml)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64992
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sasikumar palakkizhi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
struts:tiles
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64992
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic