You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gogineni, Pratima" <pg...@selectica.com> on 2001/07/11 06:32:44 UTC

would transactional token help in this case? (could be a threadin g issue?)

Hi,

I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:

a. It works 'perfectly' when I change the value and move the focus out of
this text box (it gets submitted). 

b. It works 'alright' (for some reason this takes longer to process than the
above case) when I hit enter in the text field

c. It sometimes throws an error when I do step (a) followed by step (b)
without waiting for the control to return from step (a). The kind of error I
am getting (I would have to explain my program in detail to exactly say what
this error is) leads me to suspect that two threads are trying to
access/change the data in the form bean. 

Has anyone seen this behaviour before or knows if using transactional tokens
would help in this case? (I am suspecting not from what I know of the way
they work ...)

Also note that this form/application worked well when  I did not use onclick
- i.e. using the default behaviour of submitting the value of the text field
when you hit enter ...

Thanks
Pratima

-----Original Message-----
From: Ryan Cornia [mailto:rcornia@dced.state.ut.us]
Sent: Tuesday, July 10, 2001 7:49 AM
To: struts-user@jakarta.apache.org
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -
        <error-page>
            <exception-type>java.lang.Exception</exception-type>
            <location>/errorpage.jsp</location>
        </error-page>
       <error-page>
            <exception-type>javax.servlet.ServletException</exception-type>
            <location>/errorpagesrvlt.jsp</location>
        </error-page>

>From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

<%@ page language="Java" isErrorPage="true"%>


is that right?

Thanks for any insite, this is driving me crazy.
Ryan