You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mark Lybarger <Ma...@CBC-Companies.com> on 2003/01/24 20:31:43 UTC

pass the data around

Sorry, it's Friday, and I'm i'm fairly new to Turbine.  Our project is using
Turbine, Velocity, Intake and probably a 1/2 dozen other services from the
Turbine project.  Here's my problem.  I need to pass a directive between 3
pages.  Currently, we're passing data between these forms using intake and
hidden form input fields.  The directive I need to add doesn't quite fit
into a business object too well to map to an intake group/field.

So, Here's what I need to do: in an action method, set a value for the next
form to use to determine if some fields should be read-only.  Hold that
value for use by 2 other forms. In JSP, i might do something like:

<input type="hidden" name="DisableInput"
value="<%=request.getParameter("DisableInput")%>"/>

Then any page/link that needed to disable input could put the proper value
into the request.  

Mark Lybarger
Mark.Lybarger@cbc-companies.com
CBC Companies
614.442.3741


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: pass the data around

Posted by "Jeffrey D. Brekke" <jb...@wi.rr.com>.
Mark Lybarger <Ma...@CBC-Companies.com> writes:

> Sorry, it's Friday, and I'm i'm fairly new to Turbine.  Our project is using
> Turbine, Velocity, Intake and probably a 1/2 dozen other services from the
> Turbine project.  Here's my problem.  I need to pass a directive between 3
> pages.  Currently, we're passing data between these forms using intake and
> hidden form input fields.  The directive I need to add doesn't quite fit
> into a business object too well to map to an intake group/field.
> 
> So, Here's what I need to do: in an action method, set a value for the next
> form to use to determine if some fields should be read-only.  Hold that
> value for use by 2 other forms. In JSP, i might do something like:
> 
> <input type="hidden" name="DisableInput"
> value="<%=request.getParameter("DisableInput")%>"/>
> 
> Then any page/link that needed to disable input could put the proper value
> into the request.  

FWIW, we've use session scoped pull tools for this type of behavior.

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: pass the data around

Posted by Derick Fernando <de...@xenocex.com>.
Hello,

If I understand you correctly, you might try something like:

$data.Parameters.getString("disableInput")
and you can add it to a  link using,
$link.setPage("Screen.vm").addPathInfo("disableInput","true")
or using the addQueryData method.

Hope that helps,
Derick

----- Original Message -----
From: "Mark Lybarger" <Ma...@CBC-Companies.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Friday, January 24, 2003 11:31 AM
Subject: pass the data around


> Sorry, it's Friday, and I'm i'm fairly new to Turbine.  Our project is
using
> Turbine, Velocity, Intake and probably a 1/2 dozen other services from the
> Turbine project.  Here's my problem.  I need to pass a directive between 3
> pages.  Currently, we're passing data between these forms using intake and
> hidden form input fields.  The directive I need to add doesn't quite fit
> into a business object too well to map to an intake group/field.
>
> So, Here's what I need to do: in an action method, set a value for the
next
> form to use to determine if some fields should be read-only.  Hold that
> value for use by 2 other forms. In JSP, i might do something like:
>
> <input type="hidden" name="DisableInput"
> value="<%=request.getParameter("DisableInput")%>"/>
>
> Then any page/link that needed to disable input could put the proper value
> into the request.
>
> Mark Lybarger
> Mark.Lybarger@cbc-companies.com
> CBC Companies
> 614.442.3741
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>