Hi,
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.
Thanks!
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/test.htmll">earthController</prop>
</props>
</property>
</bean>
<bean id="earthController" class="action.EarthController" />
public class EarthController extends AbstractController {
@Override
protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response) throws Exception {
String urlReq = "value";
//logic to return xml response
return null;
}
}
--
View this message in context:
http://www.nabble.com/Value-can%27t-be-changed-in-bean-extended-from-AbstractController-of-Spring-tf4944277.html#a14154549
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]