I need help regarding JSP coding and information about the servlet coding ?

2008-12-15 8:19 am
Hi
I need some help regarding JSP(Java Server Page).My question is. When i make a jsp form in html do i need to make a servlet also for that form. Like for Example i am making a Login.html form do i need to write a servlet code also for this login.html.

And the other question is that in JSP do i need to make a database using SQLServer too

回答 (2)

2008-12-15 8:27 am
✔ 最佳答案
In short, yes. To make the form meaningful, you'll have to be able to collect the form input data. And to do that, you'll need a small program (servlet) to receive the data.

If you're going to use a framework such as Struts, then you can create an "Action" instead of writing a whole servlet for receiving the inputs.
2016-11-19 3:36 pm
you may desire to convey something to the table for us that can assist you. For Servlets locate out approximately XHTML, consultation monitoring, Cookies, and HTTPServlet. For JSP locate out approximately XHTML, Scriptlets (which incorporate instructions and cookies), directives, beans, and xml data. better get began!


收錄日期: 2021-05-01 01:02:05
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20081215001935AAyNsGT

檢視 Wayback Machine 備份