Author | Message |
---|---|
tloi
Posts: 16
|
Posted 11:22 Feb 08, 2012 |
do <jsp:setProperty name="beanname" property="beanproperty"/> vs <c:set target="${beanname}" property="beanproperty"/> are equivalent? It seems not working when I change from <jsp:setProperty> to <c:set>. How is the [Post-Lab Activities]'s answers are expected to be? In separated a paragraph or code changing? |
cysun
Posts: 2935
|
Posted 07:32 Feb 09, 2012 |
<c:set> should work. Note that the tag reference says that target is of type String, which means it should be "beanname", not "${beanname}". |
cysun
Posts: 2935
|
Posted 16:10 Feb 09, 2012 |
Sorry I missed the 2nd question. As I said in a different post, you don't need to submit anything for the post-lab activities - they are just things for you to think/try. |
tloi
Posts: 16
|
Posted 11:13 Feb 10, 2012 |
when i use <c:set target="tb" property="currentTestEntryIndex" /> , i get: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Invalid property in <set>: "currentTestEntryIndex" ? |
cysun
Posts: 2935
|
Posted 19:52 Feb 10, 2012 |
You probably missed the setter for the property. |