You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by am...@mhs.cs.ui.ac.id on 2003/07/21 12:31:56 UTC
ui, navigation, link, page, and others
Hello velocity experts,
i want to know what are the methods that $ui,$navigation,$content,and $page
offers ... i'm a new user ... so i'm a little bit confused .. with this ..
code ... please help if anybody have the code library/reference/others .. thank
you
==code==
$page.setStyleSheet("$content.getURI('resources/stylesheets/ncs.css')")
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
$page.setTitle("Please Login")
$page.setBgColor($ui.bgcolor)
#if ( $data.getMessage() )
<font color="#FF0000" size="+1" face="verdana,geneva,helvetica">
$data.getMessage()<br>
</font>
#end
<form method="post" action="$link.setAction("LoginUser")">
<table>
<tr>
#formCell ("User" "username" "")
</tr>
<tr>
#formPasswordCell ("Password" "password" "")
</tr>
<tr>
<td>
<font face="$ui.sansSerifFonts">
<input type="submit" value="Login">
</font>
</td>
</tr>
</table>
</form>
</body>
==code==
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: ui, navigation, link, page, and others
Posted by Nathan Bubna <na...@esha.com>.
amri100@mhs.cs.ui.ac.id said:
> Hello velocity experts,
>
> i want to know what are the methods that $ui,$navigation,$content,and $page
> offers ... i'm a new user ... so i'm a little bit confused .. with this ..
> code ... please help if anybody have the code library/reference/others ..
thank
> you
well, this is actually a question that should be asked on the turbine-user
list, but i'll try to point you in the right direction:
those $references are Turbine objects. they are made available to velocity by
the Turbine framework (via the PullService). if you look in your
TurbineResources.properties, you should be able to find the pull service
section where the classnames and context keys for these objects are specified.
once you know the classname, you can look up the class in the Turbine
javadocs. the methods available to you in the template are all of the public
ones.
Nathan Bubna
nathan@esha.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org