Re: multiple forms in one jsp

2003-09-28 Thread Paul Rashidi
Instantiate it yourself from within the action and attact it to the
request object inside of your action.

On Sun, 2003-09-28 at 18:12, Erez Efrati wrote:
> I have a page with two forms. For one an action gets called so I can
> initialize the first form easily. But for the second form in the same
> page, how can it be initialized? 
> 
> Thanks in advance,
> Erez
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Websphere and Struts modules

2003-09-30 Thread Paul Rashidi
Did you make sure your jsp is located withing the module1 subdirectory
of your jsp directory?  They must be located here in order for your
module to be able to reference them correctly.

On Tue, 2003-09-30 at 12:24, Ruben Carvalho wrote:
> Hello everybody,
>  
> I have a stupid error which I think is because of IBM but I can't prove it.
>  
> I'm trying to use modules with IBM, I've configured web.xml like:
>  
> 
>   config
>   /WEB-INF/conf/struts-default.xml
> 
> 
>   config/module1
>   /WEB-INF/conf/struts-module1.xml
> 
>  
> Imagine that I want to use an action inside a JSP. I create a new action-mapping 
> like this:
>  
> type="mypackage.MyAction"
>   attribute="myForm"
>   scope="session">
>   
> 
>  
> In my JSP I put 
>  
> Now, Websphere gives me a warning like this:
> Target /myJSP.jsp cannot be resolved in the context of the following modules: 
> /module1
>  
> I've added
>  
>   
> 
> 
>   
>  
> to struts-config but even without it it doesn't work
>  
> Can somebody help me? Am I doing anything wrong? Or is it possible that Websphere 
> doesn't recognize this?
>  
> Many thanks
>  
> RĂºben Carvalho


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



Re: Cannot retrieve definition for form bean null

2003-10-07 Thread Paul Rashidi
If you don't define a form in the struts config file how can you expect
the form tag to work correctly?  It's whole purpose is to reference the
form attribute in your config and then reference the corresponding form
in the request.  Use the standard html form tag when you don't define a
form for your action ().

On Tue, 2003-10-07 at 23:30, ajay brar wrote:
> hi!
> i had heard that a form bean for a form was optional, not sure why i am 
> getting this error here.
> i have a button on a page and it goes like
>   browse kiosks  value="Submit"/>
> in my struts-config.xml i have defined the following action mapping
>  type="KioskAction"
> scope="request">
>  
> 
> 
> could someone please help with this error.
> 
> thanks
> cheers
> ajay
> 
> _
> Chat via SMS. Simply send 'CHAT' to 1889918. More info at  
> http://ninemsn.com.au/mobilemania/MoChat.asp?blipid=6800
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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