Re: Batch files from JSP

2006-08-02 Thread Akshay Ahooja
- Original Message - From: Akshay Ahooja To: Struts Users Mailing List Sent: Tuesday, August 01, 2006 11:35 PM Subject: Batch files from JSP Hi, This is not entirely a struts question, but how would I execute a batch from on the server from a jsp? If the .bat is in the sa

Batch files from JSP

2006-08-01 Thread Akshay Ahooja
Hi, This is not entirely a struts question, but how would I execute a batch from on the server from a jsp? If the .bat is in the same file as the jsp calling it. I tried Runtime rt = Runtime.getRuntime(); Process pr= rt.exec("db.bat"); But it gives errors. java.io.IOException: Create

Re: Dynamic Sort depending on the field requested by user.

2006-07-14 Thread Akshay Ahooja
Hi Anil, I have a similar section of a project that I am working on. I am using AJAX DOJO for the sorting. It is working for me great so far. If you go to www.dojotoolkit.org and download the scripts...They have a sortable table widget that you can wrap around any table. It is very simple to use

Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
l your help, Akshay On 7/13/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 7/13/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote: > I tried using not work out 1. While Struts html:form tag will properly parse out the query parameter out of "action" attribute, it is n

Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
s you care about the page refreshing. -Adam -Original Message----- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 July 2006 09:43 To: Struts Users Mailing List Subject: Re: Calling a struts action from Javascript I am using Dojo AJAX Inline Edit widget - and when the save

Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
If you just want to submit the form, you don't even need J/S, you can use which will render a button to submit the form (it just needs to be inside the elements. -Adam -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 July 2006 08:59 To: Struts

Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
Hi, Does anyone know how to call a Struts action using Javacript... I am using: ... I know for regular form tags () you can use: document.formname.submit ()... How would you do it for ? I have to use this because I am using the Struts Bridge in Jetspeed-2... Thanks, Akshay

Re: Action names whithout .do

2006-07-12 Thread Akshay Ahooja
I believe you would have to change your URL Pattern in Web.XML ex. Change action *.do To: action /search/* It might make more sense to use a more general pattern such as: action /go/* And then you can use /go/search for your