property taglib don't throw exception

2011-07-28 Thread k3v1n
Hi all, In my action I add request attribute. For example: Person p = request.setAttribute("p"); In jsp page I use to print fields. For example: If field don't exist, I want intercept error. How can I do? In compile time I don't view this error. But I don't view it to run time also. Can

Re: include tag problem

2011-06-27 Thread k3v1n
Can you send example code please? -- View this message in context: http://struts.1045723.n5.nabble.com/include-tag-problem-tp4527676p4528142.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe,

include tag problem

2011-06-27 Thread k3v1n
Hi all, I need help, please. I have collection of User object... In my jsp page, I have foreach block for print all user contains in my collection. I want use other jsp for print it! For example: <% Collection users = (Collection)request.getAttribute("users"); Iterator it = users.iterator(); w

Re: dinamic name for textfield

2011-06-21 Thread k3v1n
My example: I have master JSP: and included page: In my Action I have 2 object: private MyObject myObject1 = new MyObject(); private MyObject myObject2 = new MyObject(); then both have myMethod attribute How can I manage this? Thanks -- View this message

Re: dinamic name for textfield

2011-06-21 Thread k3v1n
Thanks for reply. but "Type" field is evaluated to run time for me! -- View this message in context: http://struts.1045723.n5.nabble.com/dinamic-name-for-textfield-tp4506481p4507886.html Sent from the Struts - User mailing list archive at Nabble.com. --

dinamic name for textfield

2011-06-20 Thread k3v1n
Hi all, I need pass dinamic name at textfield tag. For example: .myField" maxlength="250" size="20px;"/> Is it possible? My Action contains these objects: MyBean myBean1 = new MyBean(); MyBean myBean2 = new MyBean(); his name is generic, ty

Re: access static method with request parameter

2011-06-20 Thread k3v1n
My request is HttpServletRequest instance! not Map! I don't understand! I know very well Struts1! Help please -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4506342.html Sent from the Struts - User maili

Re: access static method with request parameter

2011-06-20 Thread k3v1n
Yes, I try it... myMethod is called but request param is null -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4505739.html Sent from the Struts - User mailing list archive at Nabble.com. --

access static method with request parameter

2011-06-20 Thread k3v1n
Hi all, I need use struts 2 tag with static method. Example: My method... class org.mydomain.MyClass method myMethod(HttpServletRequest) in jsp aaa but in myMethod, request param is always null! Why? I think my OGNL expression is wrong. I set in my struts.xml this constant: Help me ple