This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

One more jsp:include Question  RSS feed

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends.
i've a a form in my jsp with excel and submit buttons.I want to use this form in all my other jsp's.If i copy-paste this form into all my jsp's they work fine and clicking excel pop-ups the dialog box(open,save etc.).But the moment I am trying to use this through the <jsp:include> tag,i dont know why i've to click the submit button twice to get
the desired results whereas clicking the excel button just starts refreshing the page,no dialog pop ups come.I cant paste the code because it's too big.Do any one of you have any idea why this is happening.Please help me if you do,Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jas,
I suspect it has to do with where the MIME types are declared. Maybe you are declaring headers in the include and the main JSP? It's hard to say without any code though. Maybe you can come up with a small example that illustrates the problem?
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne,
Here's part of my code,see if you can get any clue to help me:
I've this form in my parent jsp:


And here in my child jsp,i am calling the form using this code:



There are no other forms in my child jsp.Everything works fine as long as i am working inside the parent jsp,but the moment i start calling that form from other jsp's,it starts showing this unusual behaviour.I dont know where i am going wrong,can u help me now???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!