I 'm developing a web application using Struts framework. I need to display alert messages or warning messages based on the input entered in a page.
currently I m implementing it using ActionMessages and I display the error message by forwarding the request to another jsp page and displaying it there but the problem is that I need to make it like a dialog box (alert,prompt) with the message and buttons in the same page where the input is entered. Can anyone suggest ideas.
@Maneesh .. Sorry i was not aware of the forum categories as i am new and Thank you for the help .
@ Kiran.. Thanks for the reply . But it didnt solve my problem.
I will be accessing files respective of the input entered. So i m checking whether the file of the entered input is first existing or not , which i implemented in action.
If the file exists i forward the request to the page where i m going to read the file contents. else i need to display an alert message saying that the file of the chosen input does not exist , in the same page where i got the input. can this be implemented? any ideas?