Hi Chris,
Reverse engineering, generally the best way to find out anything. Anyways
I'm assuming that what you're talking about here is that you don't
understand the following:

<a class="inglink"
href="$link.setPage("admin,user,FluxUserForm.vm").addPathInfo("usernameDisab
led",$user.UserName).addQueryData("mode","modify")">&nbsp
$l18n.userListInfoUserDetailsMessage &nbsp</a>

$link.setPage("admin,user,FluxUserForm.vm") sets the directory location of
FluxUserFrom.vm, the top level bit is defined by the following. Commas in
this case simply acty as delimiters.

# -------------------------------------------------------------------
#
#  M O D U L E  P A C K A G E S
#
# -------------------------------------------------------------------
module.packages=

addPathInfo("usernameDisabled",$user.UserName).addQueryData("mode","modify")

This simply adds data needed by the corresponding screen class, most likely
FluxUserForm. Of course theres many ways of skinning a cat here, url
encoding, cookie, hidden fields, stateful sessions. Just so happens flux use
url encoding which is an easy to see what going on, especially useful for a
sample app.

So upon invocation of the FluxUserForm screen, it simply parses the http
paramters:

 ParameterParser lParams = aData.getParameters();
 String lMode = lParams.getString("mode");

The lMode value will be modify.

Have I answered your question or made you more confused?
ttys,
James


-----Original Message-----
From: Chris Rafuse [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 14:36
To: [EMAIL PROTECTED]
Subject: TDK Sample Application: Flux


Hello,

I am a student working on a research project at Dalhousie University. I
have been reverse engineering the sample application that comes with
TDK, since the documentation is horrible.

Is there any flux documentation?

I understand how actions work, but what is the action of the following
url, located in the flux section of the sample app:

http://localhost:8080/newapp/servlet/newapp/template/user%2CFluxUserForm.vm/
username/turbine?mode=modify

Specifically, the encoded url and the "username/turbine" portion. Why
use a comma? Is username a form of mapped action? If so where can this
be set?

Thanks, Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to