In my struts application. after mapping from the action class to the jsp. the jsp couldnt identify the form bean.the tag tag not identifing my from bean. how can i rectify this problem

I dont know

Questions by jacobnebu

Showing Answers 1 - 2 of 2 Answers

sachin mohite

  • Nov 21st, 2005
 

Hello

 truley speaking at first glance i was not able to make what actualyy your problem is.Then i made a guess

 My Guess is this

    you have a jsp page which has a html:form tag (or simply a form) 

    on its action you call a struts Action Class method and the for bean for the jsp form that you might have given in the struts config is not working

 see if u are a new to struts then this might happen

Check ur code in this steps

The Action Name in ur form tag that u have given (especially the spealling) with the action mapping tag in struts config file

EG : if ur html:form tag in jsp is

<html:form action="/test.do"/>   then ur mapping action in struts config file must be

 <action
            path="/test"
            type="net.com.Test"
            name="TestForm"
></action>

Note now type above is ur Action class path

name is the Form Name that you have given for the form bean

Now check the formbean name with this name (especially the spealling)your form bean must be

<form-bean name="TestForm" type="org.apache.struts.validator.DynaValidatorForm">
      </form-bean>

here type is the class for ur form bean

I hope now it will work if all thinks are right but then too as i said earlier if this is ur problem

plz feel free to speak if it dosent or i am wrong anywhere

  Was this answer useful?  Yes

abirami

  • Nov 23rd, 2005
 

In the struts-config, the form bean should be defined. The form then, shoud be associated with action mapping that you have connecting the action to the class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions