Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

Replying to How To Connect To Web Server?


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

yeh

Posted 13 May 2006 - 06:46 AM

If you do not want to use cookies, the session info can be encoded in the URL as a parameter. Use the function encodeURL().

yordan

Posted 06 May 2006 - 10:14 PM

and how to maintain session

Maintaining a session will probably be the most critical thing. Maybe you will have to design a cookie in charge to hold the data your session needs.

Jack Cheng

Posted 18 February 2006 - 06:34 PM

Can you elaborate how what you mean by connecting to web server... like what a browser does, or setting up a web server that supports JSP and servlets. For the "browser" thing, you'll need to use sockets, of which you can find more about from the Java API. For the server, you'll need a servlet compliant server, such as Tomcat. For more information on Tomcat, go to its website (tomcat.apache.com).

As for the session, it depends on where you need it. In a JSP, you can just use the implicit object session and call its getAttribute, setAttribute, and removeAttribute methods to modifiy session objects (notice I said objects, so primitive data types don't work). In a servlet, you'll need to first get the session by calling request.getSession() (and this is assuming your servlet is a subclass of HttpServlet, so the request is an HttpServletRequest).

mahender

Posted 12 December 2005 - 02:51 PM

How to connect to a web server using java program and how to maintain session

Review the complete topic (launches new window)