Re: SQL ExcuteQuery

2009-12-07 Thread Avlesh Singh
Use #executeUpdate instead. Cheers Avlesh On Tue, Dec 8, 2009 at 11:37 AM, Nguyen Xuan Son wrote: > sorry saini but i dont see any different from your answer > thank you > > 2009/12/8 Sushim Saini > > > hi Nguyen Xuan Son > > use > > pstmtname.executeQuery() instead of pstmtname.executeQuery()

RequestProcessor and contentType response header

2009-06-20 Thread Avlesh Singh
I am using Struts 1.2.7 I wrote a Filter which intercepts all requests and applies response headers (based on some external configuration) to it. All response headers applied in my Filter other than "Content-Type" were obeyed and sent to the client. Content-Type was always "text/html". After a lot

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
Did not get a response yet :( Is this a dev list question or my assumptions are correct? Cheers Avlesh On Sat, Jun 20, 2009 at 8:21 PM, Avlesh Singh wrote: > I am using Struts 1.2.7 > I wrote a Filter which intercepts all requests and applies response headers > (based on some

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
uts. > Thanks for approving the solution. Thanks again, Dave. Cheers Avlesh On Sun, Jun 21, 2009 at 5:59 PM, Dave Newton wrote: > Avlesh Singh wrote: > >> Did not get a response yet :( >> > > It's also the weekend. > > Is this a dev list question >

Re: RequestProcessor and contentType response header

2009-06-21 Thread Avlesh Singh
tive. Why should the RequestProcessor overwrite? > >> > >> Overriding the request processor is the normal way to add behavior to > apps > >>> running that version of Struts. > >>> > >> Thanks for approving the solution. > >

Re: Display only 100 chars of a string

2009-06-22 Thread Avlesh Singh
Cheers Avlesh On Mon, Jun 22, 2009 at 9:07 PM, Stefano Tranquillini < stefano.tranquill...@gmail.com> wrote: > Hi all. > there's a possibility inside a jsp to display only the first 100 chars > or the first 10 words of a string? > if i have a long string, can i display only the first 100 chars

Re: Stripping Out Characters (Parenthesis)

2009-07-10 Thread Avlesh Singh
Sounds weird. Can you post your form code in the jsp? Cheers Avlesh On Sat, Jul 11, 2009 at 12:46 AM, Ratner Glenn A wrote: > Nobody can tell me why struts removes the parenthesis characters out of > string entered into a text box? > > We have a work around but I've got to think somebody knows

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Avlesh Singh
Never thought of using a taglib? Cheers Avlesh On Sun, Jul 12, 2009 at 8:49 AM, Anthony Frasso wrote: > Hello all, and thank you in advance. > > I'm relatively new to struts 2, as I started working with the > framework about 6 months ago on a part time basis. I'm struggling to > solve a proble

Re: JSP Recursion and the Struts include Tag

2009-07-11 Thread Avlesh Singh
here that handles this sort of > thing? Or are you suggesting writing a custom taglib? > > Regards, > Anthony Frasso > > On Sat, Jul 11, 2009 at 23:22, Avlesh Singh wrote: > > Never thought of using a taglib? > > > > Cheers > > Avlesh > > > >

Latest Ant Contrib - AntWebTasks

2009-08-30 Thread Avlesh Singh
My apologies if this is not the right place to break this news. I have added some zing to the existing WAR task and made it do a lot more with this contrib - http://code.google.com/p/ant-web-tasks/ I would love to hear from everyone - Ant users, developers. Cheers Avlesh