So you have two different JSPs and two different form beans, one mapped to each JSP, but you're trying to access the bean for JSP 'A' from JSP 'B' or vica versa?

Unless you take some action to make the form bean for the other JSP available, you won't be able to access it. Telling Struts 'use bean A in JSP A' wont make bean A available in JSP B.

Perhaps you could post the relevant code and configuration showing what you're trying to do, but basically you need to manually expose bean A to JSP B or bean B to JSP A (whichever way round you need).

L.

dumbQuestionsAsker _ wrote:
OK let me explain another way.

I got a JSP "A" which contain a javascript that put into a text input a string which represent a dynamically generated form to be stored into a database.

In this form I defined an input text input which has to be red by a JSP "B".This input text has a default value <bean:write......

A has a different bean than B.

So when I submit my String containing my "bean:write" tag from "A", it is parsed, and it seems that the application is trying to read the Bean of "B" which is not loaded.

Is is better explained ?

Thanx in advance for your help.


From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: Re: form generation
Date: Tue, 04 Oct 2005 14:44:03 -0400

dumbQuestionsAsker _ wrote:

Hi everybody,
I got a little problem using Struts with Javascript.
Im trying to generate an HTML form which has to be submitted as a String. In my form I got an input which has to contain a bean property which doesn't comes from the current bean but from the one who will focus on the form.
So I have a

Cannot find bean searchFormBean in any scope error.

the current bean is deployFormBean this is where the problem is (into a javascript):

<input type='hidden' name='typeDep' value='<bean:write name="searchFormBean" property="dbbAttribut(TYPE_DEPLOIEMENT)"/>'>"


I'm not sure what you mean by a form that 'has to be submitted as a String', but the problem being reported is that searchFormBean is not defined. How do you set that up? Is it populated by an action before the JSP is displayed?

L.


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


_________________________________________________________________
Apprenez à lutter contre le spam ! http://go.msn.fr/10-channel/80-security/spam/default.asp



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

Reply via email to