tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkus <>
Subject Value can't be changed in bean extended from AbstractController of Spring
Date Tue, 04 Dec 2007 16:55:39 GMT


For the following code, I put String urlReq = "value" first and set up a
breakpoint there. Then I run app in debug mode. It shows me "value" when
breakpoint is reached. Then I change String urlReq = "value2" and fire http
request again. When breakpoint is reached again this time urlReq still
equals to "value" rather than "value2". Why did it happen? Is it related to
servlet thread? I am using Spring 2.0 MVC and tomcat 5.5.20 in XP SP2.

<bean id="urlMapping"
        <property name="mappings">
                <prop key="/test.htmll">earthController</prop>

<bean id="earthController" class="action.EarthController" />

public class EarthController extends AbstractController {

protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response) throws Exception {
String urlReq = "value";
//logic to return xml response
return null;
View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message