turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amanda Edwards" <Amanda.Edwa...@airmantech.com>
Subject Screens & Redirect & XML & loads of hassle
Date Wed, 03 Apr 2002 16:27:16 GMT
Hi Folks,
=20
Still trying to get to grips with Turbine!
=20
Anyway the problem I'm having is that I call my action class, which then
parses an xml file, and depending on the element that comes back from
the xml file I need to display a certain screen.
=20
Ok so in the action class I think I need to use setTemplate(RunDate
data, "SomeScreen.vm");
=20
But the problem is that when the screen is displayed it contains no form
field values, i.e. the java class that sits behind the screen doesn't
seem to be called to populate the screen.
=20
Maybe I should be doing this differently?
=20
My html looks like the following
=20
<form method=3D"POST" name=3D"form1"
action=3D"$link.setPage("GenericQueue.vm").setAction("GenericQueueRecords=
"
)">
           =20
            #if ($data.Parameters.nextTemplate)
                        <input type=3D"text" name=3D"nextTemplate"
value=3D"$data.Parameters.nextTemplate">
            else
                <input type=3D"text" name=3D"nextTemplate"
value=3D"EnterNotices.vm">   =20
            end
=20
=20
My java class currently look like:
=20
public class GenericQueueRecords extends SecureAction
{
public void doGetrecs( RunData data, Context context ) throws Exception
{
boolean template =3D getValueFromXML();
=20
                        if (template)
                        {
                                    setTemplate(data, "AcCabinForm.vm");
                        }
                        else=20
                        {
                                    setTemplate(data, "AcCabin.vm");
                        }
            }
}
=20
Any help would be appreciated.=20
_______________________________=20
Amanda Edwards
Aircraft Management Technologies=20
p: +353 1 845 7254=20
f:  +353 1 806 1025=20
e:  <mailto:amanda.munro@airmantech.com> amanda.edwards@airmantech.com=20
w:
<outbind://8-000000009FA5961FE368094292D08BEB69BD89D70700E51C581E6A4B704
19EE95ECAF247F88700000000F3410000E51C581E6A4B70419EE95ECAF247F8870000000
0F57F0000/www.airmantech.com> www.airmantech.com=20
=20

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message