Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
Ach. my bad, I just checked how "name" is resolved in "UIBean" instead of analysing it into deep and I messed up things with "value" attribute, my explanation below niedz., 23 lut 2020 o 23:06 John Bush napisał(a): > > This works because of %{} and "a" was pushed onto the top of

Re: OGNL in struts tag

2020-02-23 Thread John Bush
evaluated by a servlet container (Tag support layer). That's why we used %{} instead, but ... cause the error above, then i state attribute name on struts tag does not accept any expressions. if i test to just print like code bellow thats no problem: ${a.formcolumnName} so, i read your doc

Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
ainer (Tag support layer). That's why we used %{} instead, but ... > cause the error above, then i state attribute name on struts tag does not > accept any expressions. if i test to just print like code bellow thats no > problem: > > > ${a.formcolumnName} > > so, i read you

Re: OGNL in struts tag

2020-02-20 Thread M Huzaifah
) According to TLD or attribute directive in tag file, attribute name does not accept any expressions File: org/apache/jasper/compiler/DefaultErrorHandler.java Line number:41 cause the error above, then i state attribute name on struts tag does not accept any expressions. if i test to just

Re: OGNL in struts tag

2020-02-20 Thread Lukasz Lenart
wt., 18 lut 2020 o 17:04 M Huzaifah napisał(a): > Thank you Lucas, my goal is render the struts tag based on list of column > name that i've set before. So i have to iterate the list of column using > jstl than put the "name" on attribut name in struts tag. From here

Re: OGNL in struts tag

2020-02-18 Thread M Huzaifah
Dear Lucas, Thank you Lucas, my goal is render the struts tag based on list of column name that i've set before. So i have to iterate the list of column using jstl than put the "name" on attribut name in struts tag. From here, i think i miss understanding about struts tag. I use s

Re: OGNL in struts tag

2020-02-18 Thread Prasanth
Guessing you are trying to create dynamic names for the text fields. If you have dynamic names how are you going to get the values into your action? You could probably have an array of text fields where the names of text fields are like mytext[columnName1], mytext[columnName2]  etc. You can

Re: OGNL in struts tag

2020-02-18 Thread Lukasz Lenart
wt., 18 lut 2020 o 05:22 M Huzaifah napisał(a): > I've looking for solution how to create struts2 tag could generate > dynamically. This is my code: > > > > You shouldn't mix Struts and non-Struts tags, this is a bad idea. Why don't you use here?

OGNL in struts tag

2020-02-17 Thread M Huzaifah
Dear All, I've looking for solution how to create struts2 tag could generate dynamically. This is my code: There is a way we can use ${} ini struts tag?. I found security issue about this evaluation sintaks in here : https://securitylab.github.com/research/apache-struts-double

RE: Struts Tag Iterator formatting issue using tables

2012-06-29 Thread Martin Gainty
-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Fri, 29 Jun 2012 18:46:21 -0400 From: jus...@justinchin.com To: user@struts.apache.org Subject: Struts Tag Iterator formatting issue using tables I am having issues getting the Struts Iterator Tag

Re: Struts Tag Iterator formatting issue using tables

2012-06-29 Thread Dave Newton
Two issues: form elements with no form, and using the default xhtml theme, where form element tags include table rows/cells. You may want to use the simple theme, or create/extend a theme. Note the simple theme doesn't emit field errors. Dave (pardon brevity and typos, on cell) On Jun 29, 2012

adding a custom attribute to a Struts tag

2010-12-17 Thread Scott Koenig
Hello, I am trying to add a character countdown to certain fields in the CMS I work on. The key is that I only want it to apply to certain fields for certain asset types. So, in our DB model, both asset A and asset B use the Headline field, but only asset A needs to worry about SEO and the

Re: adding a custom attribute to a Struts tag

2010-12-17 Thread Maurizio Cucchiara
Your attribute break w3c standard and considering you're going to realize a cms and not an intranet, you should avoid such non-standard elements. In order to accomplish what you need I use to assign css classes: input type =text class =data-length-50 ... After I handle it with jquery. Maurizio

Specify template to use for struts tag

2010-11-23 Thread Harsh C
Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change the checkboxlist default LF so that it renders in a table. This is working fine. But if I want to use the default LF also, how do I do that. As of now, I copied the struts provided .ftl

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
Use the theme attribute. Dave On Tue, Nov 23, 2010 at 2:32 PM, Harsh C hchau...@gmail.com wrote: Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change the checkboxlist default LF so that it renders in a table. This is working fine

Re: Specify template to use for struts tag

2010-11-23 Thread Harsh C
, Harsh C hchau...@gmail.com wrote: Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change the checkboxlist default LF so that it renders in a table. This is working fine. But if I want to use the default LF also, how do I do

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
, 2010 at 3:23 PM, Dave Newton davelnew...@gmail.com wrote: Use the theme attribute. Dave On Tue, Nov 23, 2010 at 2:32 PM, Harsh C hchau...@gmail.com wrote: Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change

Using ARIA with Struts tag

2010-10-05 Thread Anjib Mulepati
Can anyone tell me how we can write ARIA attribute in struts tag. I ma using Struts 1.3.8 Thanks Anjib

Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
Hi Guys, I want to get a list stored in the session and feed that value in to the iterator... i have done like as shown below, but its not working s:iterator value='%{request.getSession().getAttribute(test);}' /s:interator Can anyone suggest me how to do this..? -- Regards Kushan

RE: Get a list stored in the session to the struts tag

2010-06-23 Thread James Cook
Try %{#session.test} James -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: 23 June 2010 11:49 To: Struts Users Mailing List Subject: Get a list stored in the session to the struts tag Hi Guys, I want to get a list stored in the session and feed that value

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
: Try %{#session.test} James -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: 23 June 2010 11:49 To: Struts Users Mailing List Subject: Get a list stored in the session to the struts tag Hi Guys, I want to get a list stored in the session and feed

RE: Get a list stored in the session to the struts tag

2010-06-23 Thread James Cook
name the book ;) ) -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: 23 June 2010 11:55 To: Struts Users Mailing List Subject: Re: Get a list stored in the session to the struts tag Hi James, Thank you very much for your quick reply, i have found the way

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
Users Mailing List Subject: Re: Get a list stored in the session to the struts tag Hi James, Thank you very much for your quick reply, i have found the way, s:iterator value='%{session.test}' no need of that # sign there. Thanks again, you helped me to solve this :) -- Regards Kushan

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Dale Newfield
On 6/23/10 6:55 AM, Kushan Jayathilake wrote: Thank you very much for your quick reply, i have found the way, s:iterator value='%{session.test}' no need of that # sign there. That probably means that your action has a getSession() method. Since you may use that view layer page from a

Convert struts tag to html

2010-01-21 Thread VSGoud
-struts-tag-to-html-tp27257737p27257737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Convert struts tag to html

2010-01-21 Thread Robert Graf-Waczenski
VSGoud schrieb: Hi Friends, When i am using Data Tag s:property /, loosing linebreaks ,spaces etc. which were there in the DataBase columns. I am eager to convert the fetched data to html. Could u help me out from this issue. Srikanth Even though your problem is completely unrelated to

Re: Convert struts tag to html

2010-01-21 Thread Brian Thompson
the fetched data to html. Could u help me out from this issue. Srikanth -- View this message in context: http://old.nabble.com/Convert-struts-tag-to-html-tp27257737p27257737.html Sent from the Struts - User mailing list archive at Nabble.com

Struts Tag Odd Behavior

2009-11-15 Thread Chris Cranford
So in my JSP i have defined a s:set tag which populates a variable with an empty string in some cases. And when using the s:property referencing the variable name on the stack, I get the following output: com.opensymphony.xwork2.defaulttextprovi...@28ca1c What is the proper way to assign a text

Re: Struts Tag Odd Behavior

2009-11-15 Thread Musachy Barroso
that is odd indeed, can you give us an example that shows this problem? The way to set a variable is by using the set tag, like s:set var=id value=%{'somestring'}/ s:property value=%{#id} / musachy On Sun, Nov 15, 2009 at 12:00 PM, Chris Cranford cranc...@gmail.com wrote: So in my JSP i have

use param from own tag in struts tag

2009-09-16 Thread tibi
the ${saveMethod} value into a struts tag?? thanks, tibi -- View this message in context: http://www.nabble.com/use-param-from-own-tag-in-struts-tag-tp25477711p25477711.html Sent from the Struts - User mailing list archive at Nabble.com

Re: use param from own tag in struts tag

2009-09-16 Thread Dale Newfield
tibi wrote: %@ include file=/common/taglibsForTags.jsp% %@ attribute name=saveMethod % ${saveMethod} !---this woks and will print out the value -- This shows that the value is available to jstl. You can use various other tags (c:set for example) to set that value in a location addressable

Re: use param from own tag in struts tag

2009-09-16 Thread tibi
addressable by ognl. -Dale dale, sounds great. can you provide me with an example. thanks tibi -- View this message in context: http://www.nabble.com/use-param-from-own-tag-in-struts-tag-tp25477711p25479051.html Sent from the Struts - User mailing list archive at Nabble.com

Re: use param from own tag in struts tag

2009-09-16 Thread Dale Newfield
tibi wrote: sounds great. can you provide me with an example. The easiest thing is to pass it through some common scope. You'll have to decide which scope to use. If the tag is not recursive, you can just use the request scope. If ${jstlFoo} prints FOO then c:set var=ognlFoo

Re: use param from own tag in struts tag

2009-09-16 Thread tibi
dale, perfect! tomorrow at work i will try this new insight and share the knowledge which was lacking here: http://www.nabble.com/my-tag-td25472559s2369.html tibi -- View this message in context: http://www.nabble.com/use-param-from-own-tag-in-struts-tag-tp25477711p25479344.html Sent from

Struts tag inside Custom tag

2009-08-20 Thread AlexPresley
Hi !: I created a Custom tag,it works fine,but when i try to do this: sb.append(html:text ); the browser doesnt show me nothing,just write blanck in that part of the code. So do you know some way to use a Struts tag inside a personal custom tag? Thank you! -- View this message in context

Re: Struts tag inside Custom tag

2009-08-20 Thread Mitch Claborn
this: sb.append(html:text ); the browser doesnt show me nothing,just write blanck in that part of the code. So do you know some way to use a Struts tag inside a personal custom tag? Thank you! - To unsubscribe, e-mail

Re: [S2] Access a SiteMesh Object in a Struts tag

2009-08-03 Thread Xyzr
Thanx a lot. This works! Grish wrote: decorator:usePage id=myPage / s:set name=currentNav value=%{#attr.myPage.getProperty('meta.currentNav')} / -- View this message in context: http://www.nabble.com/-S2--Access-a-SiteMesh-Object-in-a-Struts-tag-tp13272172p24800510.html Sent from

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-08 Thread spongebue
in context: http://www.nabble.com/Struts-Tag-Library---Can-I-have-a-dropbox-option-disable-a-text-field--tp23437093p23456204.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-08 Thread Dave Newton
spongebue wrote: Thanks, Dave. I played around, and got MOST of what I want going. However, I'd like to be able to hide the label (I decided to hide the field altogether, rather than disable editing). This was no problem with the text field, but the label does not get an id assigned by

Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-07 Thread spongebue
boys now and am stuck with the struts tags, which I have little experience with. I know how Struts works and all, but I'm horrible with the tag library. Thanks! Brian -- View this message in context: http://www.nabble.com/Struts-Tag-Library---Can-I-have-a-dropbox-option-disable-a-text-field

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-07 Thread Dave Newton
spongebue wrote: Basically, I have an s:select list with a list of activities, which gets its content from the database, delivered via struts. I also have a s:textfield with the number of hours each activity takes up. What I'd like is for the text field to no longer be editable once an

RE: Adding Text Image to struts tag

2009-04-30 Thread Kishan G. Chellap Paandy
. Regards, Kishan.G Senior Software Engineer. www.spansystems.com -Original Message- From: URTsreenivas [mailto:sreenivas.jaw...@uroomtech.com] Sent: Thursday, April 30, 2009 9:23 AM To: user@struts.apache.org Subject: Adding Text Image to struts tag i am using struts submit tag . i

RE: Adding Text Image to struts tag

2009-04-30 Thread Kishan G. Chellap Paandy
: Adding Text Image to struts tag Hi Sreenivas, For image use submit type as image and src (this image you will design with the text you want), if you want to use text use submit type as input or button. If you want to use both make use of submit tag's cssClass and type as input or button. May

Adding Text Image to struts tag

2009-04-29 Thread URTsreenivas
i am using struts submit tag . i want to add the both text and image to struts submit button how is it possible? Thanks in Advance -- View this message in context: http://www.nabble.com/Adding-Text---Image-to-struts-tag-tp23309438p23309438.html Sent from the Struts - User mailing list archive

Re: Attribute OGNL evaluation issue on struts tag in tag file

2009-02-16 Thread Rich_m
QZ wrote: We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag defined in that custom tag file. After we upgraded Struts from 2.0.9 to 2.0.14, we had to modify struts tag defined in our tag file since JSP EL expression is not allowed any more

Re: Attribute OGNL evaluation issue on struts tag in tag file

2009-02-10 Thread Rich_m
I'm having the same problem, posted it on the opensymphony ognl forum here: http://forums.opensymphony.com/thread.jspa?messageID=625477 QZ wrote: We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag defined in that custom tag file. After we

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21751019.html Sent from the Struts

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
://www.manning.com/wannemacher - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-tag

Re: Struts-tag ?

2009-01-30 Thread Musachy Barroso
://www.manning.com/wannemacher - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-tag

Attribute OGNL evaluation issue on struts tag in tag file

2009-01-29 Thread QZ
We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag defined in that custom tag file. After we upgraded Struts from 2.0.9 to 2.0.14, we had to modifed struts tag defined in our tag file since JSP EL expression is allowed any more in struts tag because

Attribute OGNL evaluation issue on struts tag in tag file

2009-01-29 Thread Zheng, Qiang
We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag. After we upgraded Struts from 2.0.9 to 2.0.14, we had to modify struts tag defined in our tag file since JSP EL expression is not allowed any more in struts tag because of changes from WW-2107

Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
org.apache.jasper.JasperException: File /struts-tags not found In struts 2 distribution, I do not see struts-tags or its .tld . Am I missing it or why do I get this error? -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21707578.html Sent from the Struts - User

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:09:06 SanJ.SANJAY wrote: org.apache.jasper.JasperException: File /struts-tags not found In struts 2 distribution, I do not see struts-tags or its .tld . Am I missing it or why do I get this error? What version of Tomcat are you using? The TLD is in the JAR

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
in context: http://www.nabble.com/Struts-tag---tp21707578p21707972.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote: I am using Jboss 4.0.2. I was running my application on struts 1 and now decided to go with struts 2 in parallel with struts 1. So after putting all the struts 2 jar in lib and shared lib folders, I updated web.xml for filter dispatcher

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708266.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote: I dropped all the jars from the /lib folder of distribution which is 2.0.14. And you dropped them in WEB-INF/lib of your application and redeployed? I assume you also setup a struts.xml file as well as updated your web.xml to include

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708576.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708700.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote: I can extract the struts-core jar with an error. Was that a mistake? Also I placed them under WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file. Could this be the issue? I thought since I wil not be using any

assigning values from javascript to struts tag

2008-12-05 Thread Greenhorn2005
Hello all, I am having a peculiar problem. How do i assign the values from javascript to struts tag. consider as an example Suppose I have a javascript in a jsp page that contains lots of struts tags. from javascript based on some formula.i assign a list of values say 1,2,3

Re: assigning values from javascript to struts tag

2008-12-05 Thread Nils-Helge Garli Hegvik
, Dec 5, 2008 at 11:47 AM, Greenhorn2005 [EMAIL PROTECTED] wrote: Hello all, I am having a peculiar problem. How do i assign the values from javascript to struts tag. consider as an example Suppose I have a javascript in a jsp page that contains lots of struts tags. from javascript

Re: [HELP]: struts tag and OGNL

2008-11-25 Thread Nishna
something wrong about the usage of struts tag and OGNL. Here is my problem: I want to generate the following html with s:textfiled/ tag: input name=mylist[0].dstn value=CNS type=textbr/ input name=mylist[1].dstn value=CNS type=textbr/ input name=mylist[2].dstn value=CNS type=textbr

RE: [HELP]: struts tag and OGNL

2008-11-24 Thread nikunj
PROTECTED] Sent: Monday, November 24, 2008 7:44 AM To: user@struts.apache.org Subject: [HELP]: struts tag and OGNL Hi, everyone. I have something wrong about the usage of struts tag and OGNL. Here is my problem: I want to generate the following html with s:textfiled/ tag: input name=mylist[0

[HELP]: struts tag and OGNL

2008-11-23 Thread EoneZhang
Hi, everyone. I have something wrong about the usage of struts tag and OGNL. Here is my problem: I want to generate the following html with s:textfiled/ tag: input name=mylist[0].dstn value=CNS type=textbr/ input name=mylist[1].dstn value=CNS type=textbr/ input name=mylist[2].dstn value

Re: [HELP]: struts tag and OGNL

2008-11-23 Thread ManiKanta G
try this s:iterator status=sts value=mylist s:textfield name='%{mylist[ + #sts.index + ].dstn}' / /s:iterator ManiKanta

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Maybe using Apache Commons BeanUtils? Anybody knows? Thanks again. Paolo Paolo Niccolò Giubelli ha scritto: I'm sorry, but I'm still unable to do that. Ciro Montanino ha scritto: Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccolò Giubelli

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-07-01 Thread Paolo Niccolò Giubelli
Ok, I used jstl and now it works! Here's the code (it's changed since the first post, so don't compare it): logic:iterate id=category name=pannelloForm property=highLevelCategories div h5bean:write name=category property=name/ /h5 c:set var=subcategories

Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-06-30 Thread Paolo Niccolò Giubelli
Hi! I need a little help. I'm writing a jsp using struts tags and in my ActionForm class I put an Hashtable containing keys and values (both are pojos). I can get my hashtable in this way: bean:define id=ht name=myForm property=productsCategories/ The key is also a bean, obtained through a

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-06-30 Thread Ciro Montanino
Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccolò Giubelli [EMAIL PROTECTED] wrote: Hi! I need a little help. I'm writing a jsp using struts tags and in my ActionForm class I put an Hashtable containing keys and values (both are pojos).

Re: Retrieve an hashtable entry within a jsp using struts tag and a bean as the key

2008-06-30 Thread Paolo Niccolò Giubelli
I'm sorry, but I'm still unable to do that. Ciro Montanino ha scritto: Try to use jstl tag library to read HashTable contents. On Mon, Jun 30, 2008 at 4:29 PM, Paolo Niccolò Giubelli [EMAIL PROTECTED] wrote: - To

simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Hi, is there a simple tag I can use to just evaluate some OGNL? For example, if I have the following line in a JSP it's kind of clunky: s:set name=dummyValue value=%{#map.put(#enum.name(), #enum.toString())}/ does anyone know of a more elegant way? Brad Cupit Louisiana State University - UIS

Re: simple struts tag to eval OGNL

2008-06-18 Thread Musachy Barroso
If you have devMode set to true, you can add debug=console to your URL and you will get an OGNL console. musachy On Wed, Jun 18, 2008 at 1:32 PM, Brad A Cupit [EMAIL PROTECTED] wrote: Hi, is there a simple tag I can use to just evaluate some OGNL? For example, if I have the following line in a

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
. Brad Cupit Louisiana State University - UIS -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 1:08 PM To: Struts Users Mailing List Subject: Re: simple struts tag to eval OGNL If you have devMode set to true, you can add debug=console to your

Re: simple struts tag to eval OGNL

2008-06-18 Thread Lukasz Lenart
I didn't know that. but actually, I was kind of looking for something that would stay in the page. It wouldn't be for debugging, but some simple logic in the page for creating the html. s:debug/ ? Regards -- Lukasz http://www.lenart.org.pl/

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Lukasz Lenart wrote: s:debug/ what I’m really trying to do is have nice integration between s:select and enums. I want a select box with each of the enum choices in it. For this to work, I'd need the enum name as the key in a map, and a user-friendly-string-representation of the enum as the

Re: simple struts tag to eval OGNL

2008-06-18 Thread Lukasz Lenart
Hi, I'm using something like this: s:radio name=employee.employeeType key=label.employee.type list=employeeTypes listKey=shortcut listValue=name() required=true/ in action I have public EmployeeType[] getEmployeeTypes() { return EmployeeType.values(); }

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Lukasz Lenart wrote: I'm using something like this: s:radio name=employee.employeeType key=label.employee.type list=employeeTypes listKey=shortcut listValue=name() required=true/ Oh wonderful! I didn't know that’s what listKey and listValue were for. I was able to take

Re: simple struts tag to eval OGNL

2008-06-18 Thread Lukasz Lenart
p.s. to call the static values() method of the enum, struts.ognl.allowStaticMethodAccess must be set to true in struts.properties or struts.xml Thanks, I've also learned something new ;-) Regards -- Lukasz http://www.lenart.org.pl/

Struts tag to safe print a value

2008-05-06 Thread Graham Leggett
harmless. Is there a struts tag that does this? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature

Re: How to call javascript from Struts tag

2008-02-28 Thread Varun Ratra
Hi, Thanks for the valuable information. The problem is my company is not using ajax at the moment. Is there any other way to call the javascipt funtion in struts tag. I have a java script function placed in web project. This function returns a value function shortenTextLength(text, textlength

Re: How to call javascript from Struts tag

2008-02-28 Thread Musachy Barroso
in struts tag. I have a java script function placed in web project. This function returns a value function shortenTextLength(text, textlength) { var textValue = text; if (textValue.length textlength){ var shortenedText = textValue.substring(0,textlength

Re: How to call javascript from Struts tag

2008-02-28 Thread Dave Newton
other way to call the javascipt funtion in struts tag. I have a java script function placed in web project. This function returns a value function shortenTextLength(text, textlength) { var textValue = text; if (textValue.length textlength){ var shortenedText

How to call javascript from Struts tag

2008-02-22 Thread Varun Ratra
Hello everyone, I have been researching on the web on how to call javascript from Struts tag. I am using struts 2 to develop JSP. Following is the piece of code in JSP, which calls javascript td class=nowrap script type=text/javascript document.write(shortenTextLength

Re: How to call javascript from Struts tag

2008-02-22 Thread Martin Gainty
: Friday, February 22, 2008 4:05 PM Subject: How to call javascript from Struts tag Hello everyone, I have been researching on the web on how to call javascript from Struts tag. I am using struts 2 to develop JSP. Following is the piece of code in JSP, which calls javascript td class=nowrap

Re: [struts] tag writers resources?

2008-01-29 Thread Joachim Ansorg
Dale, this is useful information for me. Thanks for pointing this out. I'll make use of this class, I think. Joachim P.P.S: If your question is really how do i evaluate tag arguments that are really ognl expressions, then TagUtils.getStack() is probably what you're looking for:

Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Joachim Ansorg wrote: writing a simple Struts2 tag is not that difficult. A Tag is simply a java interface: http://java.sun.com/javaee/5/docs/api/javax/servlet/jsp/tagext/Tag.html The life cycle of a tag is discussed in that javadoc. There are a number of classes that make implementing your

Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Darren James wrote: What I was more interested in is some guidelines similar to what Joachim posted in writing a struts2 tag. And by that I mean one of those generic, technology independent beasts that can be used in Freemarker and Velocity as well as JSP. I don't know how one writes

Re: [struts] tag writers resources?

2008-01-28 Thread Darren James
Hi Dale, Yes, i'm familiar with writing JSP tags, although it's been quite some time since i've done so. It took me about 1/2 an hour to dust off the cobwebs and write a JSP tag extending BodyTagSupport that did what I wanted it to do. What I was more interested in is some guidelines similar

Re: [S2]Using javascript to hide a struts tag

2007-12-22 Thread Dave Newton
--- Justin Frost [EMAIL PROTECTED] wrote: OK seeing how I can not wrap s:textfiled tags in a div, how would I go about using the default theme to remove the whole tr that has the label and field? I'm out of my knowledge area with this one. There are several ways around this issue, each

Re: [S2]Using javascript to hide a struts tag

2007-12-21 Thread Dave Newton
--- Justin Frost [EMAIL PROTECTED] wrote: I want to be able to hide an entire s:div tag based on an onclick event from a s:checkbox I was not able to hide the div. And when I tried to hide just a s:textbox field only the html text box was hidden, not the label. That's because the ID is

Re: [S2]Using javascript to hide a struts tag

2007-12-21 Thread Maxx
Of course the label can't be hidden as it's not the same element. It may also depend on the theme you're using. By default it's the xhtml one, and as this theme creates additional trtd stuff around (which is really annoying and shouldn't be default IMHO), what you're doing is only hiding the inner

[S2]Using javascript to hide a struts tag

2007-12-21 Thread Justin Frost
=prodSendUri.ip label=OpenLink IP id=prodIp / s:textfield name=prodSendUri.port label=Port id=prodPort maxlength=10/ /s:div /s:form -- View this message in context: http://www.nabble.com/-S2-Using-javascript-to-hide-a-struts-tag

Re: [S2]Using javascript to hide a struts tag

2007-12-21 Thread Justin Frost
-a-struts-tag-tp14456476p14458822.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Access a SiteMesh Object in a Struts tag

2007-10-21 Thread Grish
from the Page object of sitemesh and make it accessible to my s2 tags. I was reading about OGNL and the syntax but i can't seem to get that property. Is my syntax incorrect? Grish wrote: Hi, I was wondering if this is possible, I want to access a SiteMesh object in a struts tag like

Re: [S2] Access a SiteMesh Object in a Struts tag

2007-10-19 Thread Grish
and make it accessible to my s2 tags. I was reading about OGNL and the syntax but i can't seem to get that property. Is my syntax incorrect? Grish wrote: Hi, I was wondering if this is possible, I want to access a SiteMesh object in a struts tag like the set tag: I want to access the Page

Access a SiteMesh Object in a Struts tag

2007-10-18 Thread Grish
Hi, I was wondering if this is possible, I want to access a SiteMesh object in a struts tag like the set tag: I want to access the Page object from SiteMesh and get a property from that object and assign it a value decorator:usePage id=myPage / s:set name=currentPage value= / where value

Re: Struts Tag Question

2007-09-28 Thread Cory D. Wiles
and then during each iteration, call the maps get() method passing the key to it which is not working. Could someone who has done this before show me the struts tag syntax that would accomplish this? Thanks. Marco

Struts Tag Question

2007-09-28 Thread Marco Carnevale
, call the maps get() method passing the key to it which is not working. Could someone who has done this before show me the struts tag syntax that would accomplish this? Thanks. Marco

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-14 Thread Oleg Konovalov
That worked for me: % String str=form.action='action.do?command=notifyrowId=; % onclick=%= str%c:out value='${list.rowId}'/' / And in Action: String rowId = request.getParameter(rowId); Thank you all, Oleg. On 8/13/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Oleg Konovalov wrote: make

  1   2   3   >