Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-15 Thread Lukasz Lenart
2012/10/15 pirzada rashid : > One Question: How can I understand interceptors more. They have certain > stacking otherwise problems. Is there anyway to understand, How to stack > interceptors properly to make things work? On the beginning use stacks defined by framework, you can just tweak them a

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-15 Thread pirzada rashid
Thanks alot. That was interceptor problem. One Question: How can I understand interceptors more. They have certain stacking otherwise problems. Is there anyway to understand, How to stack interceptors properly to make things work? Hope you understand, What I want to ask.

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-14 Thread Lukasz Lenart
2012/10/15 pirzada rashid : > Thanks for the reply. I have commented person = > personDAO.get(this.getId());. To make things more clear. Just wanted to see > Method prints "id" passed in URL. Below are changes. > See this line below 10:56:05,583 DEBUG PersonAction:62 - getPersonById() = > null exec

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-14 Thread pirzada rashid
Thanks for the reply. I have commented person = personDAO.get(this.getId());. To make things more clear. Just wanted to see Method prints "id" passed in URL. Below are changes. See this line below 10:56:05,583 DEBUG PersonAction:62 - getPersonById() =*null *executed . I get id value null. T

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-14 Thread Ɓukasz Lenart
2012/10/15 pirzada rashid : > public String getPersonById() throws Exception { > LOG.debug("getPersonById() = {} executed", > this.getId()); > person = personDAO.get(this.getId()); > > return SUCCESS; > } > > **ERROR:** > >

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-14 Thread pirzada rashid
*More cleaned code for understanding.* I am not sure what is wrong. I tried alot. **PROBLEM:** *this.getId() is not set thus generating error* **URL generated which is fine. I need that.** http://localhost:8000/1_Struts2_Tiles_mvn/person/edit/8 **Enabled in struts.xml**