passing javascript variables to JSP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • El Durango

    passing javascript variables to JSP

    I need to pass a javascript to JSP code but I cannot figure it out.
    any help would be appreciated.


  • Andrew Thompson

    #2
    Re: passing javascript variables to JSP

    On Tue, 10 Aug 2004 23:19:27 GMT, El Durango wrote:
    [color=blue]
    > I need to pass a javascript to JSP code but I cannot figure it out.[/color]

    Include the data in a link as the URL params,
    then GET or POST that to the .jsp.

    HTH

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology

    Comment

    • kaeli

      #3
      Re: passing javascript variables to JSP

      In article <3KcSc.3978$WO6 .3680@newssvr24 .news.prodigy.c om>,
      El_Durango@yaho o.com enlightened us with...[color=blue]
      > I need to pass a javascript to JSP code but I cannot figure it out.
      > any help would be appreciated.
      >
      >
      >[/color]

      JSP runs on the server before the client has received a response.
      Javascript runs on the client after the server has terminated the response to
      the client.

      You'll need to submit a client request to the server to do this, either
      through a form (iframe, frame, current window, whatever), a URI/querystring,
      applet, ActiveX, COM, or a dynamic script (not all of those are cross-
      browser).

      --
      --
      ~kaeli~
      Shotgun wedding: A case of wife or death.



      Comment

      Working...