You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joe Williams <jo...@mindspring.com> on 2003/05/16 19:06:01 UTC

Newbie: Escaping markup in XSP

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