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

School Work for a Servlet  RSS feed

 
Ali Arda Orhan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, I'm a newbie and i need some help for my school work. I tried to do search on internet but i went completely lost. My problem is my teacher told me that i have to add a radiobutton on html. According to radiobutton servlet has to choose write parameters on DB or File. And he wants me to add a method to do this work.

1)Get Parameters
2)Choose to write DB or File according to parameters
3)if it is DB create connection and do writing process
4)if it is file create file and do writing process.

Second piece of code should be removed. İnstead of this i have to use a single method. But i don't know how to do this(not writing code). Should i use another servlet or a class will help me?

Sorry for my bad english. Thanks for your answers.



 
Paul Ngom
Ranch Hand
Posts: 355
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arda,
It could.help if you post the html page
containing the radio button.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!