RE: connection pooling

2004-08-16 Thread Jignesh Patel
Suppose I will put following code in my struts-config.xml instead of
tomcat's server.xml will it work as per the expectation for abandoned
connection.


  
 
   
   

   



-Jignesh
On Mon, 2004-08-16 at 18:20, Jim Barrows wrote:
> > -Original Message-
> > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED]
> > Sent: Monday, August 16, 2004 3:16 PM
> > To: Struts Users Mailing List
> > Subject: RE: connection pooling
> > 
> > 
> > Jim,
> >   I understand most part of it now. the only thing that i dont
> > understand is how will the connection pooling be handled. I am using
> > tomcat 5. will the following code(from the link that u sent me) serve
> > the purpose?
> > 
> > 
> > 
> > 
> >  >   property="driverClassName"
> >   value="org.postgresql.Driver" />
> >  >   property="url"
> >   value="jdbc:postgresql://localhost/mydatabase" />
> >  >   property="username"
> >   value="me" />
> 
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
> The short version is that it is handled automagically for you.  No need to borrow or 
> return the connection etc.
> 
> 
> > .
> > .
> > .
> > ..
> > 
> > regards
> > saurabh
> > 
> > 
> > 
> > On Mon, 2004-08-16 at 16:45, Jim Barrows wrote:
> > > > -Original Message-
> > > > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, August 16, 2004 2:42 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: connection pooling
> > > > 
> > > > 
> > > > Jim,
> > > >I am sorry but I am confused now. Just correct me if I am
> > > > wrong I want to call my DAO from my Action class. So 
> > > > the snippet
> > > > that you sent me would go in my DAO class in the function
> > > > getConnection() (or something like that). 
> > > 
> > > Yes, that is correct.  I acutally implment that in my 
> > DaoFactory class, and put the resultant connection from the 
> > data source in the DaoFactory class.  That allows me to 
> > easily de-couple the dao class for testing.
> > > 
> > > >  And if what I said is correct then does it mean that I 
> > > > dont need to
> > > > have a connection pool class and my webserver would 
> > handle everything
> > > > for me.
> > > 
> > > Depends on the web server... websphere has it's own, tomcat 
> > allows you to have several choices, and I have no idea what BEA does.
> > > 
> > > 
> > > > 
> > > > regards
> > > > saurabh
> > > > 
> > > > On Mon, 2004-08-16 at 16:29, Jim Barrows wrote:
> > > > > > -Original Message-
> > > > > > From: Saurabh Bhatla [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, August 16, 2004 2:24 PM
> > > > > > To: Struts Users Mailing List
> > > > > > Subject: Re: connection pooling
> > > > > > 
> > > > > > 
> > > > > > David,
> > > > > >   But i want to make a business layer and call the DAO 
> > > > from there.  I
> > > > > > think that the links that you have sent me couple 
> > > > > > presentation layer and
> > > > > > database tightly. I know i can use EJB for presentation layer 
> > > > > > but I dont
> > > > > > want that as it would be overkill for the small project I am 
> > > > > > working on.
> > > > > > I want to have a connection pool class initialized at 
> > the time the
> > > > > > server starts and then all my DAO  should get the 
> > > > connection from that
> > > > > > pool. Is it possible?
> > > > > >   I am a beginner in this field and I might not understand it
> > > > > > completely. please correct me if i am wrong.
> > > > > 
> > > > > Ah, okay.. I also posted a link to the struts way to do the 
> > > > JNDI data source stuff in that case.. you follow your web 
> > > > app servers guide on how to setup a data source, then you 
> > > > follow the destructions for a normal jndi data source. 
> > Something like:
> > > > > 
> > > > > /**
> > > > >  * 
> > > > >  */
> > > > > public static DataSource getDataSource() throws 
> > > > NamingException {
> > > > > if (ds == null) {
> > > > > Context ctx = (Context) new InitialContext();
> > > > > ds =
> > > > > (DataSource) ctx.lookup(
> > > > > "jdbc/yourDataSource);
> > > > > }
> > > > > return ds;
> > > > > }
> > > > > 
> > > > > > regards
> > > > > > saurabh
> > > > > > 
> > > > > > 
> > > > > > 
> > > > 
> > -
> > > > > > 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]
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > 
> > ---

Re: Connection and Tomcat server

2004-08-16 Thread Jignesh Patel
I can say, this is purely a connection closing problem.

That's the reason when you restart the tomcat it works fine till the
time all the connection in the connection pool utilize and then after it
hangs.

Are u closing your connection in finally block?

-Jignesh
On Mon, 2004-08-16 at 02:14, Rajesh wrote:
> Hai guys
> 
> am still fasing same problem with my struts,tomcat with mysql.
> 
> am working in the environment of tomcat,struts,dbcp,JP2, mysql..
> 
> i developed a site of round 20-50 actions which accesses db through DBCP 
> to MySQL
> 
> i completely debugged my site theroughly, there is no but in my code.
> 
> i uploaded the site to net, after a using the site successfully suddenly 
> my connections is not working .
> 
> i found this by my index page where i am using 2 message board which 
> takes top 5 records from db and displays it in text scrolling javascript
> 
> where ever am connection to mysql through getDataSource(request)  am not 
> gettign connection properly.
> 
> i am properly closing connection in my program
> 
> but when i restart my tomcat then my program start working properlty 
> then after a day or so the same problem arrice.
> 
> can anybody help me to overcome this.
> 
> am fasing the same problem for many days.
> 
> thanks  you
> Rajesh
> 
> -
> 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]



stopping threads when sever stops

2004-08-11 Thread Jignesh Patel
Hi Rick,

We are developing our software using struts and quartz with tomcat.
When we stop our web server it never stops the back end running threads.

We tried by developing separate listener but we never able to shutdown
our application properly.

any suggestion will be helpful on this.

-Jignesh



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



Re: Tomcat5 not logging me in

2004-08-09 Thread Jignesh Patel
It seems your database connection is not getting close.
Your connection pool is not availalble after some time.

Put all connection close code in finally block.


-Jignesh
On Mon, 2004-08-09 at 06:17, Rajesh wrote:
> Hai all
> 
> am using l Tomcat5, MySql, Struts 1.1 Linux.
> 
> i had written a web applicaiton in tomcat with the support given above.
> 
> i tested my site theroughly. its really working fine. but after a day or 
> so, when i try to login first time its not letting me to my home page.
> 
> i think after a concesting access to DB  the connection is freezes.
> 
> below are th full diagnosis of my tomcat and db.
> 
> in my DBCP i have given.
> 
>   
>  value="com.mysql.jdbc.Driver"/>
>  value="jdbc:mysql://ip address/contextname"/>
>  value=""/>
>  value=""/>
>  value="true"/>
>  value="60"/>
>
> my Server status is
> 
> 
> Server Status
> 
> 
> Manager
> List Applications HTML Manager Help 
> Manager Help 
>  Complete Server Status 
> 
> 
> Server Information
> Tomcat VersionJVM Version JVM Vendor  OS Name OS Version 
>  OS 
> Architecture
> Apache Tomcat/5.0.25  1.4.2_02-b03Sun Microsystems Inc.   Linux 
> 2.4.20-020stab009.21.777-enterprise   i386
> 
> 
>   JVM
> 
> Free memory: 42.25 MB Total memory: 63.31 MB Max memory: 63.31 MB
> 
> 
>   http-8080
> 
> Max threads: 15 Min spare threads: 5 Max spare threads: 10 Current 
> thread count: 5 Current thread busy: 1
> Max processing time: 4 ms Processing time: 0 s Request count: 1 Error 
> count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB
> 
> Stage TimeB Sent  B Recv  Client  VHost   Request
> *R*   ?   ?   ?   ?   ?   ?
> *R*   ?   ?   ?   ?   ?   ?
> 
> P: Parse and prepare request S: Service F: Finishing R: Ready K: Keepalive
> 
> 
>   jk8009
> 
> Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current 
> thread count: 8 Current thread busy: 3
> 
> 
> 
> after restarting my tomcat its working fine.
> 
> am fasing the problem many times
> 
> can anybody kindly help me
> 
> thankyou
> Rajesh


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



message of request scope will be displayed with other requests also

2004-08-06 Thread Jignesh Patel

We are using following line of code
saveErrors(request, errors) and
saveMessages(request, messages)

but even the scope of errors and messages are limited to request. It
stores messages in session.
And we will be getting old messages displayed in our page instead of
message limited to particular request. 



-Jignesh





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



concurrency management

2004-07-30 Thread Jignesh Patel
Hi,
How do we will manage concurrency if suppose we have connection pool
which is managed with struts1.1 on tomcat.


And then we have two we server now suppose two connection from two
server try to access the database at the same time. How we can handle?

I know from my previous posting connection pool is thread safe if it one
JVM but what in the case of two JVM.

-Jignesh



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



Re: HttpSessionListener vs. HttpSessionBindingListener

2004-07-30 Thread Jignesh Patel
Hi Geeta,
What I can say that check again your coding because we have application
in place with Servlet2.3, tomcat5.0.19 and struts1.1. And in
sessionDestroyed method I am able to trap the attribute which are
associated with the session. 
It just work fine for us.

-Jignesh 



On Fri, 2004-07-30 at 10:00, Geeta Ramani wrote:
> Hi everyone:
> 
> I would like some clarification regarding the HttpSessionListener. (We are using 
> servlet spec 2.3) 
> 
> Here's what I want to do: When a session expires, either when a user uses the 
> "logout" feature or due to time-out, I want to delete a certain row from the 
> database. The specifics of which row to delete is stored in an attribute in an 
> "user" object in the session. 
> 
> My existing solution which i don't believe works: Write a class that implements the 
> HttpSessionListener and override the sessionDestroyed(HttpSesssionEvent) method. In 
> the sessionDestroyed method, call the HttpSessionEvent.getSession() to get the 
> session, query the session to get the user and carry on.
> 
> However, here's an entry in my logs:
> "java.lang.IllegalStateException: getAttribute: Session already invalidated"
> 
> So i looked up the Javadocs for the HttpSessionListener and indeed here's the 
> description for HttpSessionListener.sessionDestroyed method: 
> 
> Notification that a session was invalidated. . 
> 
> Note the use of the *past* tense!! Thus, for example, it seems you cannot query the 
> session for anything at this point!
> 
> Googling produced this page which seems to describe the problem I am facing. 
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0207&L=servlet-interest&F=&S=&P=32332
> 
> Since this (and others I found like it) are dated over two years ago, I'd like you 
> comments on:
> 
> Proposed solution: Seeing as it seems that I cannot query the session for any 
> attributes after it has already been invalidated, I therefore should make my 
> **User** class implement the HttpSessionBindingListener interface and overwrite the 
> valueUnbound method.
> 
> Is my understanding correct? How do others do this sort of thing?
> 
> Thank you in advance for any replies!
> Geeta
> 
> 
> -
> 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]



tomcat max capacity with struts1.1

2004-07-26 Thread Jignesh Patel
Can anybody write us

How much maximum database connection pool bear by tomcat 5.0.19 with the
struts framework.

How much maximum http connection threads bear by tomcat 5.0.19.


-Jignesh




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



Re: country state swapping in struts

2004-07-09 Thread Jignesh Patel
Thanks,
For information but we are facing one more problem we are able to set
with java script but while givin form update feature it is not working
as expected.

-Jignesh
On Fri, 2004-07-09 at 09:21, Bill Siggelkow wrote:
> There are several different ways of handling this ... the easiest is to 
> just use JavaScript -- you can hard-code JavaScript arrays -- or 
> generate JavaScript arrays using Struts or JSTL tags -- or you can 
> retrieve the list of states on the fly by using an onchange listener on 
> the country field. The latter approach allows the most dynamic ability --
> The JSP below shows how you could change the options displayed in a 
> select based on the selection of a radio button.
> 
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
>Struts รข JavaScript Example
>
>   function getOptions(control) {
>  form = control.form;
>  form.action = "SetOptions.do?someProp=";
>  form.action += control.value;
>  form.submit();
>   }
> 
> 
> 
>
> onclick="getOptions(this);"/> Value 1
> onclick="getOptions(this);"/> Value 2
>SomeProp2:
>
>   
>
>
>
>
> 
> 
> 
> 
> Jignesh Patel wrote:
> 
> > Hi All,
> > In our application when user selects country like USA or Canada in turn
> > it has to show corresponding country's states.
> > 
> > Is there any struts example available for the same.
> > 
> > -Jignesh
> 
> 
> -
> 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]



country state swapping in struts

2004-07-09 Thread Jignesh Patel
Hi All,
In our application when user selects country like USA or Canada in turn
it has to show corresponding country's states.

Is there any struts example available for the same.

-Jignesh





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



Re: duplicate submission

2004-07-08 Thread Jignesh Patel
Does that set a same token which will be used to avoid duplicate
submission.

-Jignesh
On Thu, 2004-07-08 at 09:19, Bill Siggelkow wrote:
> You can add the token to a link URL (html:link or html:rewrite tag) by 
> setting 'transaction="true"'.
> 
> Jignesh Patel wrote:
> > We have specific requirement for generating token in JSP instead of
> > action class to avoid duplicate submission.
> > 
> > Can anybody tell us how to do that.
> 
> 
> -
> 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]



duplicate submission

2004-07-08 Thread Jignesh Patel
We have specific requirement for generating token in JSP instead of
action class to avoid duplicate submission.

Can anybody tell us how to do that.


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



session is not working with jsp

2004-06-19 Thread Jignesh Patel
Hi, I am are trying to call session object in tiles page, but it returns null.
Is there any specific methodology to call session in jsp page. 
Since I am just using session.getAttribute("Parameter") in session.


-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



code won't work to avoid duplicate submit

2004-05-24 Thread Jignesh Patel
Hi All,
Whenever I tried to use Non working Code instead of working code in  
struts-config.xml to take care of duplicate submit. I got the exception as 
shown. I don't understand what wrong I am doing? I am using struts1.1.

Non working Code:




Working code:
 

Exception:

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.lang.NullPointerException

org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:309)
org.apache.jsp.index_jsp._jspx_meth_html_javascript_0(index_jsp.java:350)
org.apache.jsp.index_jsp._jspService(index_jsp.java:161)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: double click submit button problem

2004-05-22 Thread Jignesh Patel
Thanks Denial,
But the code which I have submitted fine, there is no need to add anything 
extra.

-Jignesh
On Friday 21 May 2004 21:36, Daniel Perry wrote:
> If you are calling saveToken(request) before isTokenValid like your code
> suggests, you are probably overwriting the token in the session, so it is
> different to the one being submitted in the form!
>
> It should happen as follows:
>
> In the action that gives the form:
> saveToken(request);
>
> Then in the action the form is submitted to:
>
> if(!isTokenValid(request){
>//token vaildation failed so send to error page (or straight onto
> success page if desired)
>return mapping.findForward("failure");
> }else{
>   resetToken(request);
>   // do some work as token is ok
>   return mapping.findForward("success");
> }
>
> Daniel.
>
> > -Original Message-
> > From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> > Sent: 21 May 2004 17:05
> > To: Struts Users Mailing List
> > Subject: double click submit button problem
> >
> >
> > Hi,
> > To avoid double click  problem we implemented code in our execute
> > method as
> > follows
> > saveToken(request);
> > if(!isTokenValid(request){
> >//submit
> >mapping.forward(target);
> > }else{
> >   resetToken(request);
> > }
> > but then the page is not working as expected whenever we double
> > click the page
> > is not getting submitted at all, can anybody suggest what wrong I
> > am doing.
> > For your information we are using one Action class per form so I
> > am setting
> > saveToken method in execute method as per form.
> > --
> > Jignesh Patel
> > Project Leader
> > 
> > Bang Software Technolgy Pvt. Ltd.
> >
> >
> >  (E) [EMAIL PROTECTED]
> >
> >  (T) 091 484 3942132
> >
> >
> >  B-4, Smart Business Centre,
> >  Infopark, SDF IT Building,
> >  Kusumagiri P.O.,Kakkanad,
> >  Kochi - 682030,
> >  Kerala,
> >  India.
> >
> >  Information contained in this transmission to the named
> > addressee, including
> > any attachments thereto, should be
> >  considered the proprietary and confidential information of the
> > sender.  As a
> > condition for viewing the information,
> >  the sender agrees to keep the information confidential, to  refrain from
> > disclosing the information, directly or
> >  indirectly, and to refrain from any actions that would  constitute or
> > facilitate unauthorized access to the
> >  information without express permission from the sender. The
> > recipient also
> > acknowledges and agrees to respect
> >  sender's intellectual property rights in and to the
> > information.  If the
> > recipient of this transmission is not
> >  the named addressee, the recipient should immediately notify the
> > sender and
> > destroy the information transmitted
> >  without making any copy or distribution thereof.
> >
> > -
> > 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]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



double click submit button problem

2004-05-21 Thread Jignesh Patel
Hi,
To avoid double click  problem we implemented code in our execute method as 
follows 
saveToken(request);
if(!isTokenValid(request){
   //submit
   mapping.forward(target); 
}else{
  resetToken(request);
}
but then the page is not working as expected whenever we double click the page 
is not getting submitted at all, can anybody suggest what wrong I am doing.
For your information we are using one Action class per form so I am setting 
saveToken method in execute method as per form.
-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: struts is giving error on weblogic81

2004-05-18 Thread Jignesh Patel
Well, We solved the problem, there is a one file commonspool.jar which is 
missing.
Once we added in war file it worked fine.
But then we started getting another error as given below(ie. try block too 
large), which is because of big size of jsp page. But which works absolutely 
fine on tomcat. We searched in net and found that it can be solved by 
breaking jsp and pieces and then using include tag, but then  again for one 
page we need to develop two form beans as we are using to jsps. Any 
suggestion to avoid this kind of situation.

jakarta.apache.org and port: 80.> 
>  'weblogic.kernel.Default'> <> <> 
> <[ServletContext(id=6345426,name=nutzz,context-path=/nutzz)] Servlet failed
> with IOException weblogic.servlet.jsp.CompilationException: Compilation of
> C:\bea\user_projects\domains\raju\.\myserver\.wlnotdelete\extract\myserver_
>_appsdir_nutzz_war_nutzz\jsp_servlet\__profile.java failed.

On Monday 17 May 2004 23:42, [EMAIL PROTECTED] wrote:
> We might be interested in this. We are creating a new app on WLS 8.1
> currently.
> Are there a list of specific items that are being fixed associated with
> WLS8.1?
>
>
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 17, 2004 8:30 AM
> To: Struts Users Mailing List
> Subject: Re: struts is giving error on weblogic81
>
>
> Could this be related to Bug #26322, which indicates that Weblogic
> 8.1 expects just about everything to be serializeable?
> http://issues.apache.org/bugzilla/show_bug.cgi?id=26322
>
> It doesn't appear that BasicDataSource implements Serializeable:
> http://cvs.apache.org/viewcvs/jakarta-commons/dbcp/src/java/org/apache/comm
>o ns/dbcp/BasicDataSource.java
>
> Speaking of which, we need testers who use WL8.1 to test the patches
> in Bug #26322 -- right now, that would require applying the patches
> yourself, but after we cut Struts 1.2.1, I think the plan is to apply
> those patches so that they start getting tested.
>
> Joe
>
> At 8:18 PM +0530 5/17/04, Jignesh Patel wrote:
> >We are trying to deploy struts1.1 based application on weblogic8.1 which
> > is already working fine on tomcat5.19.
> >But it is giving problem because of following datasource code, if we
> > remove
>
> it
>
> >then we are not able to get the oracle database connection and if keep it,
> >the code is not deploying ActionServlet.
> >
> >Does any body is having same kind of problem?
> >
> >Data source code in struts-config.xml
> >
> >
> >
> > >value="oracle.jdbc.driver.OracleDriver"/>
> >>value="jdbc:oracle:thin:@192.168.0.2:1521:db1"/>
> >
> >
> >  
> >  
> >  
> >   
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: Session Timeout

2004-05-18 Thread Jignesh Patel
I don't know whether struts is having any readymade classes or not.
But what your are trying to create is fairely simple 

create a listener which listens session expiration event by extending class 
HttpSessionListener. 

In the sessionDestroyed  method, do the operation which you want.

-Jignesh

On Tuesday 18 May 2004 12:39, Harjot Narula wrote:
> Hi
>
> I am using struts framework in an application.
> When any JSP times out, we cache the parameters and the request and
> then forward the request to login page. After authentication, the cached
> request and parameters are used and the control is redirected to the
> original request. We are using websphere as App Server. We have also
> extended the Struts Request Processor to implement some code in every
> request.
>
> Now, I want to know if this can be done using struts, I do not want to
> write any code for this ???
>
> Harjot
>
> 
> Harjot Narula
> Induslogic Inc.276, Piccadily House, 3rd FloorCapt. Gaur Marg,
> SrinivaspuriNew Delhi -110065, IndiaPhone No. - +91 -9818072345 (M)
> +91-11-26328102
> (o)[EMAIL PROTECTED]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



struts is giving error on weblogic81

2004-05-17 Thread Jignesh Patel
We are trying to deploy struts1.1 based application on weblogic8.1 which is 
already working fine on tomcat5.19.
But it is giving problem because of following datasource code, if we remove it 
then we are not able to get the oracle database connection and if keep it, 
the code is not deploying ActionServlet.

Does any body is having same kind of problem?

Data source code in struts-config.xml


   
  
  


 
  
 




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



Re: java.lang.OutOfMemoryError after server app start/stop cyclin g

2004-05-14 Thread Jignesh Patel
Daniel,
For your problem  3 you must have to set   ANT_OPTS=-Xmx512m in your dos 
prompt as mentioned by Chris. 

-Jignesh
On Friday 14 May 2004 15:49, Daniel Perry wrote:
> I have JAVA_OPTS and CATALINA_OPTS set to -Xmx1024M as system environment
> variables.
>
> If i start tomcat using startup.bat it uses these.
>
> If i start tomcat using as a windows service, it doesnt use these.
>
> Daniel.
>
> -Original Message-
> From: McCormack, Chris [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 11:09
> To: Struts Users Mailing List
> Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> cyclin g
>
>
> Type java -X in a windows shell and look at setting some of the below
> options in your environment using JAVA_OPTS
>
>  -Xmsset initial Java heap size
>  -Xmxset maximum Java heap size
>  -Xssset java thread stack size
>
> I alse use this to allocate more memory to ant at build time for a large
> application. 'set ANT_OPTS=-Xmx512m' (in a .bat) or pop it in your
> environment profile.
>
> Chris McCormack
>
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 10:54
> To: Struts Users Mailing List
> Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> cyclin g
>
>
> I'm using jdk1.4.2_04, and it still happens!
>
> Here are some of my observations on the issue:
>
> 1. I did once develop some software using servlets/jsps. I never came
> accross this problem.  However, as jsps are automatically releaded, and
> this app was mainly jsp based, i dont remeber doing any restarting :)
>
> 2. running a memory intensive / complex app, it runs out of memory a lot
> quicker :)
>
> 3. If i run the stopapp and startapp ant tasks in a loop it runs out of
> memory with my struts app pretty quickly.  Doing the same thing to axis
> takes a lot longer.
>
> So, i figure its not restricted to struts.
>
> Anyway, still cant figure out how to increase max memory if it's running as
> a windows service?
>
> Daniel.
>
>
>
>
> -Original Message-
> From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 04:45
> To: Struts Users Mailing List; Heinle, Chuck
> Subject: Re: java.lang.OutOfMemoryError after server app start/stop
> cyclin g
>
>
> As per my knowledge the bug of OutOfMemory is related to version less then
> jdk1.4. It has been solved in the 1.4.
>
> -Jignesh
>
> On Thursday 13 May 2004 23:30, Heinle, Chuck wrote:
> > We have a similar problem with WebLogic 8.1 SP2...I was told by an
> > associate that there is a 1.4.2_02 bug related class loading that might
> > associated with the OutOfMemory.
> >
> > -Original Message-
> > From: Joe Germuska [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 13, 2004 1:52 PM
> > To: Struts Users Mailing List
> > Subject: RE: java.lang.OutOfMemoryError after server app start/stop
> > cycling
> >
> > At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
> > >Putting up the maximum memory Xmx does help as it gives it more memory
> > > to use up, but only delays the inevitable :)
> > >
> > >Is this a struts issue? or does it happen with all tomcat apps?
> >
> > It happens with every servlet container I've used.  My understanding
> > is that to redeploy a webapp, app servers generally discard the
> > classloader they have been using and make a new one.  For various
> > reasons, this can leave orphan objects which are never garbage
> > collected.  If enough of these accumulate, you run out of memory.
> >
> > Admittedly, I use Struts in all these cases, you might argue that
> > it's a Struts issue, since that's the common feature, but I can't
> > think of anyways Struts is being particularly careless in a way that
> > would aggravate this problem.
> >
> > I may have a completely wrong understanding of the problem too, but
> > this is how we explain it to ourselves around here!
> >
> > Joe

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directl

Re: java.lang.OutOfMemoryError after server app start/stop cyclin g

2004-05-13 Thread Jignesh Patel
As per my knowledge the bug of OutOfMemory is related to version less then 
jdk1.4. It has been solved in the 1.4.

-Jignesh
On Thursday 13 May 2004 23:30, Heinle, Chuck wrote:
> We have a similar problem with WebLogic 8.1 SP2...I was told by an
> associate that there is a 1.4.2_02 bug related class loading that might
> associated with the OutOfMemory.
>
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: java.lang.OutOfMemoryError after server app start/stop cycling
>
> At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
> >Putting up the maximum memory Xmx does help as it gives it more memory to
> >use up, but only delays the inevitable :)
> >
> >Is this a struts issue? or does it happen with all tomcat apps?
>
> It happens with every servlet container I've used.  My understanding
> is that to redeploy a webapp, app servers generally discard the
> classloader they have been using and make a new one.  For various
> reasons, this can leave orphan objects which are never garbage
> collected.  If enough of these accumulate, you run out of memory.
>
> Admittedly, I use Struts in all these cases, you might argue that
> it's a Struts issue, since that's the common feature, but I can't
> think of anyways Struts is being particularly careless in a way that
> would aggravate this problem.
>
> I may have a completely wrong understanding of the problem too, but
> this is how we explain it to ourselves around here!
>
> Joe

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



critical problem

2004-05-10 Thread Jignesh Patel
Hi,
We are facing crtical problem for our site,our site works fine on local 
system, even it works fine on the server also. But after some hours it starts 
giving problems but at the same time dummy site works fine. We are not able 
to figur out any technical reason.  For your infomation we are using reverse 
port 80 on apache server and as a framework we are using struts1.1.

Does it having problem with port number.
-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



concurrency in struts

2004-05-10 Thread Jignesh Patel
I am just wondering, how concurrent request will be handled by single Action 
class. Because for many form objects(as there are thousands of clients) there 
are only one action class.






-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



tomcat configuration

2004-05-10 Thread Jignesh Patel
How to set tomcat so that it says
how many processes and memory occupied by the tomcat at perticular moment.


-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



strange tomcat problem with struts1.1

2004-05-10 Thread Jignesh Patel
Hi All,
We are facing one strange problem, our server hangs after every 2-3 days. The 
reason behind it, is it tomcat creates unwanted java processes.
>From my side I haven't implemented anything special except adding 
"synchronized (this) {"  line in execute method so that I can avoid 
concurrent request.

Will it be the reason?

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: concurrency in struts

2004-05-10 Thread Jignesh Patel
So you mean to say that there should not be any class variable used?

But even though there are more then one thread executing execute method then?
There is a possibility that for one thread 2 parameters will be filled and for 
other thread remaing 3. So all parameters are having different values from 
two different users while it stores for only one user.

I appologize if I am going to very basic!

-Jignesh
On Monday 10 May 2004 18:36, Daniel Perry wrote:
> Each request to the same action subclass uses the same object.  The method
> is called passing all necessary parameters to it.  Therefore you should not
> use any class variables, only local variables.
>
> Ie, a MyAction class is created once, and for each request to it, it's
> method is called:
>
> public ActionForward execute(
>   ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response)
>
> This object is retained throughout application lifecycle, and reused for
> each request.
>
> Daniel.
>
> -Original Message-
> From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> Sent: 10 May 2004 14:04
> To: Struts Users Mailing List; Geeta Ramani
> Subject: Re: concurrency in struts
>
>
> Hi Geeta,
> Can you elaborate more?
>
> -Jignesh
>
> On Monday 10 May 2004 18:18, Geeta Ramani wrote:
> > Jignesh:
> >
> > The "execute" method of the Action class includes (among others) as
> > params the request, response objects of each user.. That I believe is the
> > key..:)
> >
> > Regards,
> > Geeta
> >
> > > -Original Message-
> > > From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, May 10, 2004 8:54 AM
> > > To: Struts Users Mailing List
> > > Subject: concurrency in struts
> > >
> > >
> > > On Monday 10 May 2004 17:21, Jignesh Patel wrote:
> > >  I am just wondering, how concurrent request will be handled by single
> > >  Action class. Because for many form objects(as there are thousands of
> > >  browser running with jsp forms) and there is only one action class.
> > >
> > > --
> > > Jignesh Patel
> > > Project Leader>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Jignesh Patel
> Project Leader
> 
> Bang Software Technolgy Pvt. Ltd.
>
>
>  (E) [EMAIL PROTECTED]
>
>  (T) 091 484 3942132
>
>
>  B-4, Smart Business Centre,
>  Infopark, SDF IT Building,
>  Kusumagiri P.O.,Kakkanad,
>  Kochi - 682030,
>  Kerala,
>  India.
>
>  Information contained in this transmission to the named  addressee,
> including
> any attachments thereto, should be
>  considered the proprietary and confidential information of the sender.  As
> a
> condition for viewing the information,
>  the sender agrees to keep the information confidential, to  refrain from
> disclosing the information, directly or
>  indirectly, and to refrain from any actions that would  constitute or
> facilitate unauthorized access to the
>  information without express permission from the sender. The recipient also
> acknowledges and agrees to respect
>  sender's intellectual property rights in and to the  information.  If the
> recipient of this transmission is not
>  the named addressee, the recipient should immediately notify the sender
> and destroy the information transmitted
>  without making any copy or distribution thereof.
>
> -
> 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]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain f

Re: concurrency in struts

2004-05-10 Thread Jignesh Patel
Riyad,
But does this methods are synchronized? Otherwise if two threads execute at 
the same time they can access the method at the same time. And result will be 
big mess.

-Jignesh
On Monday 10 May 2004 18:29, Riyad Kalla wrote:
> This question is actually what made me sign up to this mailing list...
> the answer is that there is no implicit concurrency. All your
> work/variables in Actions should be method-scoped and not use ANY class
> variables because of this. My specific questions was that I wanted to
> use a class variable "ActionErrors" so any of my methods
> (DispatchAction) could add errors without initializing a new ActionError
> instance, and return it. But this is incorrect and can/will introduce
> problems.
>
> So there is no concurrency in Struts.
>
> Jignesh Patel wrote:
> >On Monday 10 May 2004 17:21, Jignesh Patel wrote:
> > I am just wondering, how concurrent request will be handled by single
> > Action class. Because for many form objects(as there are thousands of
> > browser running with jsp forms) and there is only one action class.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: concurrency in struts

2004-05-10 Thread Jignesh Patel
Hi Geeta,
Can you elaborate more?

-Jignesh
On Monday 10 May 2004 18:18, Geeta Ramani wrote:
> Jignesh:
>
> The "execute" method of the Action class includes (among others) as params
> the request, response objects of each user.. That I believe is the key..:)
>
> Regards,
> Geeta
>
> > -Original Message-
> > From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> > Sent: Monday, May 10, 2004 8:54 AM
> > To: Struts Users Mailing List
> > Subject: concurrency in struts
> >
> >
> > On Monday 10 May 2004 17:21, Jignesh Patel wrote:
> >  I am just wondering, how concurrent request will be handled by single
> >  Action class. Because for many form objects(as there are thousands of
> >  browser running with jsp forms) and there is only one action class.
> >
> > --
> > Jignesh Patel
> > Project Leader>
>
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



concurrency in struts

2004-05-10 Thread Jignesh Patel
On Monday 10 May 2004 17:21, Jignesh Patel wrote:
 I am just wondering, how concurrent request will be handled by single
 Action class. Because for many form objects(as there are thousands of
 browser running with jsp forms) and there is only one action class.

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



removing history from jsp pages

2004-05-02 Thread Jignesh Patel
How to remove history from JSP pages while we are using struts framework?


-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Re: HttpSessinoListener Confusion

2004-05-02 Thread Jignesh Patel
So You, mean there is a one seperate event for one single session.

-Jignesh
On Thursday 29 April 2004 12:33, Craig R. McClanahan wrote:
> Jignesh Patel wrote:
> >If we will use HttpSessionListener,
> >will tomcat implement seperate listener for all the  Sessions or it will
> > be common for all the sessions?
>
> The latter.  Tomcat (or any other servlet container) will create a
> single instance of your listener for each  element in
> web.xml.  The event parameter that is passed in  includes a reference to
> the HttpSession that this event relates to.
>
> >-Jignesh
>
> Craig
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



how to insert null using sql query in java code

2004-04-25 Thread Jignesh Patel
Hi All,
I am following query to insert value in databse now suppose value of 
"webpurchased","targetadvt" and 'trial" is null then how can I can insert 
same null value in database. 
Because my parameter is like String webpurchased=null --In this case value of 
webpurchase will be replaced by string 'null' while insering, which is 
meaning less. I want to insert real null.

MY query:
stmt.executeQuery("INSERT INTO advt_spns_soln VALUES "+ 
 "(advt_spns_soln_id.nextval,'"+firstName+"','"+lastName+"','"+title+ 
"','"+ 
company+"','"+companyAddress+"','"+city+"','"+stateId+"',"+postalcode+",'"+
country+"','"+email+"',"+phone+",'"+url+"','"+campaign+"','"+webpurchased+"','"+
targetAdvt+"','"+trial+"','"+budget+"','"+marketobjective+"','"+emailupdate+"')"); 
 


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



HttpSessionListener Interface

2004-04-22 Thread Jignesh Patel
If there are multiple sessions getting destroyed?
Which session will get first destroyed? or sessiondestroyed method will 
override old session?

-Jignesh

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



Re: session form "reset"

2004-04-22 Thread Jignesh Patel
Go through with SessionBindingListener and SessionAttributeListener.
And implement the appropriate one.

-Jignesh
On Thursday 22 April 2004 20:29, Matt Bathje wrote:
> Hey all - I'm having a small problem and was wondering if anybody could
> help.
>
> I have a page with a form, that when I submit, comes right back to the same
> page with the updated information. The form is held in the session scope
> because it has some dynamic indexed data in it.
>
> My problem is that part of the form is "add only" type stuff, and never
> needs to be set to default data. After the submit, when it returns to the
> page, these "add only" fields have the previously selected data in them.
> Some of them are text fields, so I just set them to have a value="" and it
> is fine. A few of the fields are select boxes though, and they keep getting
> reset to whatever was selected before submit. (I tried hardcoding one of
> the options to be selected, and even then it selects whatever other option
> was selected)
>
> So - how do I remove/reset this data in the session form? I tried removing
> the form from the session scope altogether, and I get a beanutils.populate
> error on some of the "add only" data (which is indexed) I tried setting the
> form data in the submit action to be the default data, but that doesn't
> seem to take, it still just reverts back to the selected data.
>
> Any ideas?
>
> Thanks,
> Matt Bahje
>
>
> -
> 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]



HttpSessinoListener Confusion

2004-04-22 Thread Jignesh Patel
If we will use HttpSessionListener,
will tomcat implement seperate listener for all the  Sessions or it will be 
common for all the sessions?

-Jignesh

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



Timer implementation with servlet

2004-04-20 Thread Jignesh Patel
Hi All,
I am trying to implement timer with servlet but it works only at the time of 
loading only while I schedule it to work after every 1 minute. 
What is the reason for not working later on?

My servlet code is as follows:
public class TimerServlet extends GenericServlet implements SingleThreadModel 
{
public void init(ServletConfig config) throws ServletException {
Timer timer = new Timer();
System.out.println("timer started");
timer.schedule(new SessionTrack(),1000); 
}
public void service(ServletRequest arg0, ServletResponse arg1) throws 
ServletException, IOException {

}
public String getServletInfo() {
 return null;
}

}
And code for TimerTask is as follows:

public class SessionTrack extends TimerTask {
 public void run(){
System.out.println("sending email");
Mailer mailer = new Mailer();
mailer.sendMail("profile","[EMAIL PROTECTED]");
 }
}



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



quartz scheduling

2004-04-20 Thread Jignesh Patel
Hi All,
Can anybody guide me how to integrate quartz scheduler with tomcat?
I am trying to develop email scheduling through quartz.

-Jignesh

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