<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic j_security_check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988559#M1605385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Would anyone please be able to shed light on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a web-application uses "j_security_check" , where does it store the name of the original page requested by the user (the one to which user should be redirected after a successful login ) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 07:35:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-16T07:35:45Z</dc:date>
    <item>
      <title>j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988559#M1605385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Would anyone please be able to shed light on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a web-application uses "j_security_check" , where does it store the name of the original page requested by the user (the one to which user should be redirected after a successful login ) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 07:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988559#M1605385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T07:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988560#M1605386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not 100% about SAP but application server usually creates a HTTP session object and stores it there. Check this non SAP [example|http://roneiv.wordpress.com/2008/02/18/jaas-authentication-mechanism-is-it-possible-to-force-j_security_check-to-go-to-a-specific-page/].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 04:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988560#M1605386</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-06-17T04:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988561#M1605387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know another method to check the password and the username???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988561#M1605387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T09:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988562#M1605388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is you problem with j_security_check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 02:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988562#M1605388</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-06-18T02:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988563#M1605389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j_security_check doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 07:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988563#M1605389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: j_security_check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988564#M1605390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have literally just set this up myself and it is working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did was to create a redirect.jsp that contains the path that wanted to redirect to eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;%@ page language="java" %&amp;gt;
&amp;lt;%@ page import = "java.net.URLEncoder" %&amp;gt;
&amp;lt;%
	String redirectURL = "";

	// Check if GET Parameter "redirectURL" is availabel
	redirectURL = request.getParameter ("redirectURL");
	if (redirectURL != null) {
				response.sendRedirect ("http://" + redirectURL);
	} else {
				response.sendRedirect ("/irj/portal/HR/HR");
	}
%&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my web.xml I created a "Servlet Mapping" to "redirect.jsp" with URL pattern "/"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logon form as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;%@ page language = "java"%&amp;gt;
&amp;lt;html&amp;gt;
	&amp;lt;head&amp;gt;
		&amp;lt;title&amp;gt;
			Login Redirect
		&amp;lt;/title&amp;gt;
	&amp;lt;/head&amp;gt;
	&amp;lt;body&amp;gt;
	&amp;lt;TABLE WIDTH=500&amp;gt;
		&amp;lt;TR&amp;gt;
		&amp;lt;TD&amp;gt;

		&amp;lt;FORM name="logonForm" method="post" action="j_security_check"&amp;gt;  
		  &amp;lt;input name="login_submit" type="hidden" value="on"&amp;gt;
		  &amp;lt;input type="hidden" name="login_do_redirect" value="1"/&amp;gt;
		  &amp;lt;input name="j_authscheme" type="hidden" value="default"&amp;gt;
				&amp;lt;p&amp;gt;Please enter Username and Password:&amp;lt;/p&amp;gt;
				&amp;lt;table border="0"&amp;gt;
					&amp;lt;tr&amp;gt;
						&amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Username&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;
						&amp;lt;td&amp;gt;&amp;lt;input type="text" name="j_username" id="j_username"&amp;lt;/td&amp;gt;
					&amp;lt;/tr&amp;gt;
					&amp;lt;tr&amp;gt;	
						&amp;lt;td&amp;gt;&amp;lt;p&amp;gt;Password&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;
						&amp;lt;td&amp;gt;&amp;lt;input type="password" name="j_password" id="j_password"&amp;lt;/td&amp;gt;
					&amp;lt;/tr&amp;gt;
					&amp;lt;tr&amp;gt;
						&amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;
						&amp;lt;td&amp;gt;&amp;lt;input type="submit" name="submit" value="Login" &amp;lt;/td&amp;gt;		
					&amp;lt;/tr&amp;gt;
				&amp;lt;/table&amp;gt;
		&amp;lt;/form&amp;gt;
		&amp;lt;/TD&amp;gt;
		&amp;lt;/TR&amp;gt;
	&amp;lt;/TABLE&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 17:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/j-security-check/m-p/7988564#M1605390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-13T17:16:30Z</dc:date>
    </item>
  </channel>
</rss>

