Hi pawel,
            im not talking about struts validation,im talking abt javascript
validation for my requirement.
please dont confuse it with struts validation framework.

my requirement is different and is no way linked to Struts validation
framework....


Paweł Wielgus wrote:
> 
> Hi Deepak,
> as far as i know validation framework will generate your validation
> javascript automaticly if client side validation is turn on (somewhere
> in configuration maybe). But i haven't used client side validation at
> all so i'm not a good help here.
> 
> Best greetings,
> Pawel Wielgus.
> 
> 2009/11/28, deepakl_2000 <deepakl_2...@yahoo.com>:
>>
>> Hi Pawel,
>>             i need to implement a Javascript function for this in
>> jsp.(not
>> server side validation),how to mix javascript with jsp code.... please
>> help
>> with snippet of code...
>>
>> Deepak
>>
>> Paweł Wielgus wrote:
>>>
>>> Hi Deepak,
>>> read about validation framework in struts2 and about action messages
>>> which should solve your problem.
>>>
>>> Best greetings,
>>> Pawel Wielgus.
>>>
>>> 2009/11/28, deepakl_2000 <deepakl_2...@yahoo.com>:
>>>>
>>>> Hi Struts Experts,
>>>>
>>>> I'm using Struts for Controller,i.e presentation tier.
>>>> IBatis as a Persistence Framework .
>>>>
>>>> Action class --> Service class --> Ibatis .xml file --> Database(SQL
>>>> Sever
>>>> 2000)
>>>>
>>>> I have implemented a Save operation In Service class which inserts a
>>>> record
>>>> in database.
>>>> When the record is successfully inserted into database.
>>>>
>>>> I want to show a Dialog box i.e an alert box saying
>>>> "Records are Saved Successfully" else an alert box "Save Operation
>>>> Unsuccessful",in case records are not saved.
>>>>
>>>> How do i implement this feature in Struts along with Ibatis Framework
>>>> Integration
>>>> Please help........
>>>>
>>>>
>>>>
>>>> 1 Requirement >
>>>> -----------------------
>>>> Save.jsp
>>>> ----------------------
>>>> //do some logical operation and click on Save button
>>>> <html:submit>Save</html:submit>  //call to SaveAction.java depending on
>>>> struts-config.xml (setting/declaration)
>>>>
>>>>
>>>> --------------------
>>>> SaveAction.java
>>>> --------------------
>>>>
>>>> myService.insertData(XYZPOJO1,XYZPOJO2); //call insertData method in
>>>> myService class
>>>> mapping.findforward(); // i want to redirect to Save.jsp and display an
>>>> alert button indicating records are saved or not....??please help
>>>>
>>>> -------------------
>>>> myService class
>>>> -------------------
>>>>
>>>> insertData(...){
>>>>         sqlMap.insert("saveData1",XYZPOJO1);
>>>>         sqlMap.insert("saveData2",XYZPOJO2);
>>>> }
>>>>
>>>>
>>>>
>>>> after insert operation i want to return a value determining whether
>>>> save
>>>> is
>>>> successful or not?? how to proceed.
>>>>
>>>>
>>>> how should this part be implemented in jsp i.e displaying an alert box
>>>> depending on some condition.....please help me (in my case return
>>>> value)
>>>> ???
>>>>
>>>>
>>>>
>>>>
>>>> 2 Requirement > Once i get an alert Box and i click on "ok" button of
>>>> that
>>>> alert box,i want to be re-directed to another jsp page (example:
>>>> MainMenu.jsp")
>>>>
>>>>  i.e   from SaveAction.java --> goto Save.jsp -> display an alert
>>>> accordingly and click on ok button of alert box --> re-direct to
>>>> MainMenu.jsp
>>>>
>>>>
>>>> Deepak
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Alert-Box-issue-in-Struts-tp26545846p26545846.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>> :confused:
>> --
>> View this message in context:
>> http://old.nabble.com/Alert-Box-issue-in-Struts-tp26545846p26554622.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Alert-Box-issue-in-Struts-tp26545846p26560421.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to