You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anton Epple <ep...@genomatix.de> on 2002/07/07 11:57:29 UTC

Re: applet-servlet as view component : problem solved!

Hello list,

it's allways the same: I tried and tried, and shortly after I decided to
post here, I found my mistake by chance.

Toni





----- Original Message -----
From: "Anton Epple" <ep...@genomatix.de>
To: <st...@jakarta.apache.org>
Sent: Saturday, July 06, 2002 7:25 PM
Subject: applet-servlet as view component


Hello,

I'm trying to build a struts-based web-application that uses an applet to
display information. I've created an action that retrieves data from a
database, when called from an applet:

8<--------------------->8
<action path="/helloWorld" name="HelloWorldForm" scope="session"
type="de.genomatix.strutswebinterface.HelloWorldAction"
input="/GraphEditor.class" validate="false">
    <forward name="success" redirect ="true" path="/HelloWorldServlet" />
</action>
8<--------------------->8

HelloWorldServlet as a view component should send back an Object to the
applet via HTTP-tunneling.
I can call the action from my applet, The HelloWorldForm is instanciated
correctly, the ActionServlet forwards to the Servlet, and I can send Objects
back to the Applet.
The Problem is: I don't know how I can Access the HelloWorldForm-bean which
I have created with my servlet. So far I can only send Objects that I've
created with the HelloWorldServlet.

Can anybody tell me, how I can access the ActionServlet from my Servlet?


Toni








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