First, save the session id and pass as a parameter to future
connections
(You are proboly doing that some where else but I didn't see
that in your code).

Second, some people are not using cookie session ids (cookie
support and netscape's single cookie for all tabs problem),
so save whatever looks like a tag and pass that as parameter
to future connections.

Gang

----- Original Message Follows -----
> greetings,
>
> can anyone out there provide some insight???
>
> we have a home grown portal for our faculty & staff.
> we'd like to integrate ( in a simple way ) crystal
> enterprise reporting.
>
> in a simple way means ...
> * provide a link to crystal enterprise in one of our
> channels, * when clicked, we do a "silent post" to crystal
> with their userid/password,
> * then forward their ePortfolio page to a new browser
> window.
>
> this provides a seamless link from our portal to their set
> of reports :)
>
> the code i'm using is shown below, but it doesn't seem to
> do the trick. when i make the request, crystal redirects
> me back to its logon page :(
>
> has anyone successfully done this???
>
> thanks,
> wallace.
>
>     URL url;
>     URLConnection urlConn;
>     DataOutputStream    printout;
>     DataInputStream     input;
>
>     url = new
> URL("http://crystal.wright.edu/crystal/enterprise9/ePortfo
> lio/en/logon.csp?action=logoff");
>
>     urlConn = url.openConnection();
>     urlConn.setDoInput (true);
>     urlConn.setDoOutput (true);
>     urlConn.setUseCaches (false);
>     urlConn.setRequestProperty("Content-Type",
> "application/x-www-form-urlencoded");
>
>     printout = new DataOutputStream
> (urlConn.getOutputStream ());
>     String content =
>      "usr="    + URLEncoder.encode(userId) +
>      "&pwd="   + URLEncoder.encode(passWd) +
>      "&aut="   + URLEncoder.encode("secEnterprise");
>     printout.writeBytes (content);
>     printout.flush ();
>     printout.close ();
>
>     ServletOutputStream out = response.getOutputStream();
>     response.setContentType("text/html");
>
>     input = new DataInputStream (urlConn.getInputStream
> ());
>     String str;
>     while (null != ((str = input.readLine()))) {
>      out.println(str1);
>     }
>     input.close ();
>
>     out.flush();
>     out.close();
>
> __________________________________________________________
> _________________ To unsubscribe, send email to
> [EMAIL PROTECTED] and include in the body of the
> message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to