This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 各位大虾,JAVA servlet紧急求救!
-job(job);
2001-11-19
{541}
(#267113@0)
-
1.servlet间参数传递,这是java web application的基础,post/get/session等方法都行,看看书吧. 2.<a href=...target= >
-eglington(eglington);
2001-11-19
(#267165@0)
-
well, what we learned is Java programming, not servlet or java web application. but the instructor wanted us to us to use servlet to do this. really a headache. anyway, thanks.
-job(job);
2001-11-19
(#267326@0)
-
then what's java programming? you say "i'm proficient in java programming, but i have no idea about get and post". faint...
-xanada(㊣流水);
2001-11-19
(#267382@0)
-
look insideYou can use post, or get in your form. And then use request.getParameter("parameter_name") to extract the value. That's how you pass querystring from a form to the page which process the form.
Other method to pass parameters including use session.
Use session.putValue("Session_vbl_Name", object) to put the value into a session vbl in one page and you can retrieve in any jsp/servlet page inside your application. To do that, just use session.getAttribute("Session_vbl_name").
I hope this helps.
-jeffrey815(Smartiecat);
2001-11-20
{512}
(#268069@0)
-
多谢大虾们!再次请教,3个servlet 和其他JAVA程序之间如何传递参数?(如3个Servlet调用同一个contact list中的数据)
再次感谢!
-job(job);
2001-11-21
(#269049@0)
-
What's your contact list? A database table or a txt file or????
-jeffrey815(Smartiecat);
2001-11-21
(#269314@0)
-
Be very specific about your question if you want to get a good answer.
-jeffrey815(Smartiecat);
2001-11-21
(#269321@0)
-
More details
-job(job);
2001-11-21
{1086}
(#269481@0)
-
Look Inside
-jeffrey815(Smartiecat);
2001-11-21
{797}
(#269536@0)