bacoAlunos
ENGSOFT2019
BlueGrey
calm
Elegant
Català-Valencià - Catalan
中文 - Chinese (Simplified)
中文 - Chinese (Traditional)
Česky - Czech
Dansk - Danish
Nederlands - Dutch
English - English
Suomi - Finnish
Français - French
Deutsch - German
עברית - Hebrew
हिंदी - Hindi
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
मराठी - Marathi
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Portuguese (Brazil)
Русский - Russian
Slovenčina - Slovak
Slovenščina - Slovenian
Español - Spanish
Svenska - Swedish
Türkçe - Turkish
Oëzbekcha - Uzbek
Subversion Repositories
bacoAlunos
(root)
/
es2018
/
17210
/
src
/
java
/
pt
/
estgp
/
es
/
exemplos
/
hibernate
/
web
/
PaginasServlet.java
@ 2030
- Rev 2030
Rev
Go to most recent revision
|
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
RSS feed
package
pt.estgp.es.exemplos.hibernate.web
;
import
pt.estgp.es.exemplos.hibernate.services.ServicoPaginas
;
import
java.io.IOException
;
public
class
PaginasServlet
extends
javax.
servlet
.
http
.
HttpServlet
{
protected
void
doPost
(
javax.
servlet
.
http
.
HttpServletRequest
request, javax.
servlet
.
http
.
HttpServletResponse
response
)
throws
javax.
servlet
.
ServletException
,
1.
5
.0/docs/api/java/io/IOException.html">
IOException
{
1.
5
.0/docs/api/java/lang/String.html">
String
titulo = request.
getParameter
(
"titulo"
)
;
1.
5
.0/docs/api/java/lang/String.html">
String
idPagina = request.
getParameter
(
"idPagina"
)
;
new
ServicoPaginas
(
)
.
criaSeccaoService
(
idPagina,titulo
)
;
//SO TEM ISTO
//new ServicoPaginas().criaSeccaoService(idPagina,titulo);
request.
setAttribute
(
"id"
,
new
1.
5
.0/docs/api/java/lang/Long.html">
Long
(
idPagina
)
)
;
request.
getRequestDispatcher
(
"apresentaPagina.jsp"
)
.
forward
(
request,response
)
;
}
protected
void
doGet
(
javax.
servlet
.
http
.
HttpServletRequest
request, javax.
servlet
.
http
.
HttpServletResponse
response
)
throws
javax.
servlet
.
ServletException
,
1.
5
.0/docs/api/java/io/IOException.html">
IOException
{
doPost
(
request,response
)
;
}
}