You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/08/22 19:33:28 UTC
svn commit: r235761 -
/beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml
Author: rich
Date: Mon Aug 22 10:33:23 2005
New Revision: 235761
URL: http://svn.apache.org/viewcvs?rev=235761&view=rev
Log:
Some fixes to the sample code...
Modified:
beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml
Modified: beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml?rev=235761&r1=235760&r2=235761&view=diff
==============================================================================
--- beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml (original)
+++ beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/pageflow/pageflow_altering.xml Mon Aug 22 10:33:23 2005
@@ -113,8 +113,8 @@
<source>
@Jpf.Action(
- forwards = {
- @Jpf.Forward( name="success", path="<strong>login.jsp</strong>" );
+ forwards={
+ @Jpf.Forward(name="success", path="<strong>login.jsp</strong>")
}
)
public Forward login()
@@ -131,8 +131,8 @@
<source>
@Jpf.Action(
- forwards = {
- @Jpf.Forward( name="success", path="<strong>terms.jsp</strong>" );
+ forwards={
+ @Jpf.Forward(name="success", path="<strong>terms.jsp</strong>")
}
)
public Forward login()
@@ -148,8 +148,8 @@
<source>
@Jpf.Action(
- forwards = {
- @Jpf.Forward( name="success", path="login.jsp" );
+ forwards={
+ @Jpf.Forward(name="success", path="login.jsp")
}
)
public Forward acceptTerms()
@@ -168,25 +168,17 @@
<source>
@Jpf.Action(
- forwards = {
- @Jpf.Forward( name="success", path="<strong>mypage.jsp</strong>" );
+ forwards={
+ @Jpf.Forward(name="success", path="<strong>mypage.jsp</strong>")
}
)
public Forward processSignUp(SignUpForm form)
{
// record the user's sign-up information.
-
- ...
...
// perform automatic login for the user.
-
- HttpServletRequest request = getRequest();
- HttpSession session = request.getSession();
-
- session.setAttribute( "authenticated_user",
- form.getUsername() );
-
+ getSession().setAttribute( "authenticated_user", form.getUsername() );
return new Forward( "success" );
}
</source>