Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jsp form help

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem...
everytime I visit a jsp i come with a new table that should replace the old table. at present it is just appending and so the form fails in submit....because it has the same name form elements
so theoritcally I want to access the jsp in runtime and remove the old table and add the new table...any ideas?
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using conditional logic to display the different tables ......
 
ammu vasanth
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by satish sathineni:
Try using conditional logic to display the different tables ......



yes.That shud be fine. Let me be more clear.the table comes in a string and i use <% out.write(data) 5> in the jsp jsp is the string of html
5 =% ...and thats all there is to jsp
I am trying to do with some javascript onload and div tags manipulation......what are your ideas?
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ammu, I think you're going to have to post a bit more code and give us some idea of what you're doing and why. My gut feel is that you're trying to do something that's really not a good idea and creating problems for yourself in the process.

Please take care when posting not to include typos and to use punctuation. Posts are often hard enough to read and understand without this kind of error. I'd like to help if I can.

Jules
 
See where your hand is? Not there. It's next to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic