can't see the jsp file.
In the action class you are not using modeldriven as you said in the
first email.

2008/8/4 aum strut <[EMAIL PROTECTED]>:
> Hi,
>
> I tried all things and its again not working still action is getting called
> 2 times for each call to this Register Action i am attaching the
> Register.jsp,Struts.xml as well as the action class please have a look at it
> and point me where i am doing the mistake.
>
>
> Thanks in Advance
> -aum
>
> On Fri, Aug 1, 2008 at 5:37 PM, Joachim Ansorg <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> you use the same action to render the welcome screen and Registrer.jsp.
>>
>> So this means that when you display the welcome screen execute() is called
>> and when you display the Registrer.jsp page.
>>
>> Either use two separate actions or just return null in execute and have
>> another action method (i.e. save()) which writes into the db.
>> In the page with the submit button link to the action's save method. So
>> execute is used for welcome and save for the registration.
>>
>> Hope that helps,
>> Joachim
>>>
>>> Hi All,
>>>
>>> While developing an application in struts2 i am facing a strange problem
>>> with one of my action namely RegsitrationAction.
>>> i have a jsp page for user registration where there are certain fields
>>> for
>>> the user to be filled for the registration purpose.
>>> i have created a UserProfile bean class with the bean properties for all
>>> the
>>> user registration field.
>>
>> ---------------------------------------------------------------------
>> 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]
>

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

Reply via email to