Some extra FAQs and added comment to samples runall.sh script to explain that it's for dev only.

This commit is contained in:
Luke Taylor 2010-05-03 14:52:14 +01:00
parent e7646a65f4
commit 64d59e1d32
2 changed files with 31 additions and 4 deletions

View File

@ -260,6 +260,26 @@
</para><para>Generally we would recommend applying method security at the </para><para>Generally we would recommend applying method security at the
service layer rather than on individual web controllers.</para></answer> service layer rather than on individual web controllers.</para></answer>
</qandaentry> </qandaentry>
<qandaentry xml:id="faq-unwanted-session-creation">
<question>
<para>Spring Security is creating a session somewhere, even though I've configured it not to,
by setting the <literal>create-session</literal> attribute to <literal>never</literal>.
</para>
</question>
<answer>
<para>This usually means that the user's application is creating a session somewhere,
but that they aren't aware of it. The most common culprit is a JSP. Many people aren't
aware that JSPs create sessions by default. To prevent a JSP from creating a session,
add the directive <literal>&lt;%@ page session="false" %&gt;</literal> to the top of the page.
</para>
<para>
If you are having trouble working out where a session is being created, you can add some
debugging code to track down the location(s). One way to do this would be to add a
<literal>javax.servlet.http.HttpSessionListener</literal> to your application, which
calls <literal>Thread.dumpStack()</literal> in the <literal>sessionCreated</literal> method.
</para>
</answer>
</qandaentry>
</qandadiv> </qandadiv>
<qandadiv> <qandadiv>
<title>Spring Security Architecture Questions</title> <title>Spring Security Architecture Questions</title>
@ -277,11 +297,13 @@
<question><para>How do the namespace elements map to conventional bean <question><para>How do the namespace elements map to conventional bean
configurations?</para></question> configurations?</para></question>
<answer><para>There is a general overview of what beans are created by the namespace <answer><para>There is a general overview of what beans are created by the namespace
in the namespace appendix of the reference guide. If want to know the full in the namespace appendix of the reference guide. There is also a detailed
details then the code is in the <filename>spring-security-config</filename> blog article called <quote>Behind the Spring Security Namespace</quote> on
<link xlink:href="http://blog.springsource.com/2010/03/06/behind-the-spring-security-namespace/">blog.springsource.com</link>.
If want to know the full details then the code is in the <filename>spring-security-config</filename>
module within the Spring Security 3.0 distribution. You should probably read module within the Spring Security 3.0 distribution. You should probably read
the chapters on namespace parsing in the standard Spring Framework reference the chapters on namespace parsing in the standard Spring Framework reference
documentation first. </para></answer> documentation first.</para></answer>
</qandaentry> </qandaentry>
<qandaentry xml:id="faq-role-prefix"> <qandaentry xml:id="faq-role-prefix">
<question><para>What does <quote>ROLE_</quote> mean and why do I need it on my role names?</para></question> <question><para>What does <quote>ROLE_</quote> mean and why do I need it on my role names?</para></question>

View File

@ -1,5 +1,10 @@
#! /bin/sh #! /bin/sh
# $Id$ #
# This script is intended for rapid checking of the sample application configurations
# to ensure they are working. It is for development use only.
#
# To run the web application samples, build them as described on the web site and deploy
# them to a servlet container, such as Apache Tomcat.
# #
# See http://curl.netmirror.org/docs/httpscripting.html # See http://curl.netmirror.org/docs/httpscripting.html
# #