cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Williams" <joe_d_willi...@mindspring.com>
Subject Newbie: Escaping markup in XSP
Date Fri, 16 May 2003 17:06:01 GMT
I'm working through the example apps in Lajos Moczar and Jeremy Aston's
book. The "Trouble Tickets" app asks users to log in, the provides no way to
go straight to view their tickets from the authentication page.

What's the recommended way to solve this? Links in the content below the
code? Or is there a way to escape a hyperlink in the "msg" output?

The java from the top of the XSP follows

Thanks.

Joe

=======================
if (user.equals("MegaBancShares") &amp;&amp; pwd.equals("secret")) {

msg = "User '" + user + "' has been authenticated" +

" - you can now proceed to the support page.";

<xsp-session:set-attribute
name="user"><xsp:expr>user</xsp:expr></xsp-session:set-attribute>;

} else if (user.equals("Jollyville National Bank") &amp;&amp;
pwd.equals("secret")) {

msg = "User '" + user + "' has been authenticated" +

" - you can now proceed to the support page.";

<xsp-session:set-attribute
name="user"><xsp:expr>user</xsp:expr></xsp-session:set-attribute>;

} else {

msg = "Login failed";

}



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message