tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Boudreau" <carl.boudr...@notiva.com>
Subject RE: resp.sendRedirect("./Join2?Email_Address=" + EmailAddress);
Date Wed, 14 Nov 2001 20:09:46 GMT
Hey Tom,

Another java developer has sugested another avenue of attack

I have replace that last code snippet with ;

                    if(TxtCheck1.equals(User_Name)) {
                        // User join1 data has been added to Database
                        String Redirect_String = "./ValidUser?firstname=" +
User_Name;
                        WltRedirect myRedirect = new
WltRedirect(Redirect_String);
                        out.println(myRedirect.getRedirect());
                        }

And then built an object;

public class WltRedirect
{
    String redirect;
    String fixedA = "<html><head><META HTTP-EQUIV=\"Expires\" CONTENT=\"Tue,
01 Jan 1980 1:00:00 GMT\">";
    String fixedB = "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><meta
http-equiv=\"Refresh\" Content=\"0; URL=";
    String PassedIn;
    String fixedD = "\"><title>Weekly Love
Tips</title></head><body></body></html>";

    public WltRedirect (String PassedIn)
    {
        redirect = fixedA + fixedB + PassedIn + fixedD;
    }

    public String getRedirect()
    {
        return redirect;
    }
}

This seems to be operating smoothly.


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message