coszmin
10-20-2004, 10:25 AM
Hi guys ,
I've started playing arround with Laszlo a few days ago , and after installing it and reading the documentation , i decided to play arround with some code and examples . I tried writting a login form , that posts data to a jsp . I made the jsp print something on the screen as the post is made to it . I tried the jsp by hitting it with a manually built url .
I then tried running my code , to which the jsp does not react . Here is my code
<canvas height="470" width="750" bgcolor="#F2F2FF" debug="false">
<dataset name="e" src="http:../f5cm/login.g" />
<view name="login" x="400" y="150" width="200" height="150" bgcolor="white" visible="true">
<simplelayout axis="y" spacing="5"/>
<text>please login eh :</text>
<form>
<submit name="logform" data="${e}"/>
<simplelayout axis="y" spacing="5"/>
<edittext name="username" width="100" x="20" y="20">username</edittext>
<edittext name="password" width="100" x="20" y="20">password</edittext>
<button isdefault="true"
onclick="parent.logform.submit()">login</button>
<edittext name="type" width="100" x="20" y="20" >1</edittext>
</form>
</view></canvas>
Everything shows up ok , but as i click on login , the jsp is not hit
any sugestions ?
thanks
I've started playing arround with Laszlo a few days ago , and after installing it and reading the documentation , i decided to play arround with some code and examples . I tried writting a login form , that posts data to a jsp . I made the jsp print something on the screen as the post is made to it . I tried the jsp by hitting it with a manually built url .
I then tried running my code , to which the jsp does not react . Here is my code
<canvas height="470" width="750" bgcolor="#F2F2FF" debug="false">
<dataset name="e" src="http:../f5cm/login.g" />
<view name="login" x="400" y="150" width="200" height="150" bgcolor="white" visible="true">
<simplelayout axis="y" spacing="5"/>
<text>please login eh :</text>
<form>
<submit name="logform" data="${e}"/>
<simplelayout axis="y" spacing="5"/>
<edittext name="username" width="100" x="20" y="20">username</edittext>
<edittext name="password" width="100" x="20" y="20">password</edittext>
<button isdefault="true"
onclick="parent.logform.submit()">login</button>
<edittext name="type" width="100" x="20" y="20" >1</edittext>
</form>
</view></canvas>
Everything shows up ok , but as i click on login , the jsp is not hit
any sugestions ?
thanks