Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2012-09-10 Thread Lukasz Lenart
2012/9/11 G.Subramanian : > Hi, i'hv created a custom tag in Strtus 2. where, from action iam passing a > arrayList object in the value attribute when custom tag java is calling. > please tell me how to take that arrayList object in my custom tag java file. > give me some exmple code. And how do y

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2012-09-10 Thread G.Subramanian
Hi, i'hv created a custom tag in Strtus 2. where, from action iam passing a arrayList object in the value attribute when custom tag java is calling. please tell me how to take that arrayList object in my custom tag java file. give me some exmple code. Best Regards, Subramanian.G

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
Aye, but whoops, I forgot this one :) import com.opensymphony.xwork2.util.ValueStack; Cheers, Bill On Mon, Feb 1, 2010 at 2:18 PM, Jake Vang wrote: > bill, thanks for including the code (especially the import statements > so i will know where these objects/classes are coming from). > > On Mon,

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
bill, thanks for including the code (especially the import statements so i will know where these objects/classes are coming from). On Mon, Feb 1, 2010 at 11:09 AM, Bill Bohnenberger wrote: > Hi Jake, > > I have a custom table tag that needs Value Stack access, too. > Here's how I do it: > > packa

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
Hi Jake, I have a custom table tag that needs Value Stack access, too. Here's how I do it: package... import org.apache.struts2.views.jsp.TagUtils; import org.apache.struts2.util.MakeIterator; public class TableTag extends SimpleTagSupport { private String list; public void doTag() thr

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
i found something helpful here. it works. http://struts.apache.org/2.1.8.1/docs/access-to-valuestack-from-jsps.html On Mon, Feb 1, 2010 at 7:34 AM, Jake Vang wrote: > i was wondering if it was possible to write a custom tag that is able > to access objects in the ActionContext using OGNL? i'm

struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Jake Vang
i was wondering if it was possible to write a custom tag that is able to access objects in the ActionContext using OGNL? i'm not sure if this is a "correct" question. my problem is that i have a form. the form is posted to an action. the action has getters/setters for the form fields. i then forwa