incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kinicky <kini...@gmail.com>
Subject using a cookie ticket to login
Date Mon, 08 Jun 2009 18:26:34 GMT
Hi all!

i have a cookie with the user information and i want JSPWiki to reads it and
authenticate the user. In my application i use the above code to pass the
paremeter with the information of the cookie to JSPWiki:

    <form id="myform" method="post" action="<%=appURL%>" >
        <input type="hidden" name="value" value="<%=cookieValue%>" >
    </form>
    <!-- Java Script is used to auto submit the form -->
    <script type="text/javascript">
        document.getElementById('myform').submit();
    </script>

Where appURL is the Login.jsp.

But in Login.jsp i'm not able to confirm if i'm receiving the correct value.
Only in LoginForm.jsp or LoginContent.jsp i'm able to print some info in the
screen.. but i only get "null".

I usually try to use "system.out.println()" or javascript "alerts()" but
none of these works in Login.jsp... only in the other two pages(LoginForm
and LoginContent) but printing "null".

Any ideas of how can i know if the value in Login.jsp is correctly?

tks for the help!

Paulo.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message