You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Kinicky <ki...@gmail.com> on 2009/06/08 20:26:34 UTC

using a cookie ticket to login

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.