Re: struts-tag property in javascript

2025-06-10 Thread Dave Newton
On Tue, Jun 10, 2025 at 13:37 Lukasz Lenart wrote: > Nope, basically ${} means "use JSP EL" which is prohibited "inside" S2 > tags, using %{} means "use OGNL expression" which is fine. Oops, forgot about that smh d

Re: struts-tag property in javascript

2025-06-10 Thread Lukasz Lenart
wt., 10 cze 2025 o 18:23 Ute Kaiser napisał(a): > > Update after more investigating Nate's answer: > > onclick="document.getElementById('deleteid').value='%{id}';"> > > Using ${id} threw an error (I suppose my config not fit for JSP EL) Nope, basically ${} means "use JSP EL" which is prohibited

RE: struts-tag property in javascript

2025-06-10 Thread Ute Kaiser
Update after more investigating Nate's answer: Using ${id} threw an error (I suppose my config not fit for JSP EL) Best regards Ute - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Aw: RE: struts-tag property in javascript

2025-06-06 Thread Ute Kaiser
Hi and thx for your fast answers. I am aware that migration could go much deeper in cleaning up but rewriting the action und jsp files is fissel work enough at the moment. Dave's answer "But you should be able use standard JSP EL iirc." inspired me. First I did not understand (never used EL), th

RE: struts-tag property in javascript

2025-06-06 Thread Nate Kerkhofs
Hi Ute, I would recommend you split up your JavaScript into separate files as well, but if you ABSOLUTELY have to write a property value inside a Struts tag, the best way to do that is probably through an OGNL or JSTL expression. In your case, you can replace the s:property tag inside the

Re: struts-tag property in javascript

2025-06-06 Thread Dave Newton
On Fri, Jun 6, 2025 at 09:14 Ute Kaiser wrote: > Hi, > migrating from Struts1 I encounter in a jsp the error "Equal symbol > expected" at the "onclick" row. > I think my old quotes do not work any more with Struts2. > > Struts1: > > > onclick="javascript:if(confirmDelete()){document.getElemen

struts-tag property in javascript

2025-06-06 Thread Ute Kaiser
Hi, migrating from Struts1 I encounter in a jsp the error "Equal symbol expected" at the "onclick" row. I think my old quotes do not work any more with Struts2. Struts1: ';}"/> Struts2: ';}"/> I tried 'id', \"id\", \'id\' "id" but nothing worked out Any advice appreciated (hopefully not

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 ValueStac

Re: OGNL in struts tag

2020-02-23 Thread John Bush
h is out of Struts control and 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:

Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
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,

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

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 the

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? https://struts.apache.org/tag-developers/

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-d

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, 201

RE: Struts Tag Iterator formatting issue using tables

2012-06-29 Thread Martin Gainty
Manipulierbarkeit von E-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

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

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 50-char

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
e, Nov 23, 2010 at 3:23 PM, Dave Newton > wrote: > > > Use the "theme" attribute. > > > > Dave > > > > On Tue, Nov 23, 2010 at 2:32 PM, Harsh C wrote: > > > > > Is there a way to specify a template to use for a struts tag, on a per > &

Re: Specify template to use for struts tag

2010-11-23 Thread Harsh C
2010 at 2:32 PM, Harsh C 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 L&F so that it renders in > a > > table. This is working fine. But if I wan

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 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 L&F so that it renders in a > table. This i

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 L&F so that it renders in a table. This is working fine. But if I want to use the default L&F also, how do I do that. As of now, I copied the struts provi

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

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, 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 different action, or you may want to

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

2010-06-23 Thread Kushan Jayathilake
one out there that can 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 muc

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

2010-06-23 Thread James Cook
in the session to the struts tag Hi James, Thank you very much for your quick reply, i have found the way, no need of that # sign there. Thanks again, you helped me to solve this :) -- Regards Kushan Jayathilake On Wed, Jun 23, 2010 at 4:20 PM, James Cook wrote: > Try %{#session.t

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

2010-06-23 Thread Kushan Jayathilake
; -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 va

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

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 Can anyone suggest me how to do this..? -- Regards Kushan Jayathilake

Re: Convert struts tag to html

2010-01-21 Thread Brian Thompson
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. > > > --

Re: Convert struts tag to html

2010-01-21 Thread Robert Graf-Waczenski
VSGoud schrieb: Hi Friends, When i am using Data Tag , 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 Struts (and ther

Convert struts tag to html

2010-01-21 Thread VSGoud
Hi Friends, When i am using Data Tag , 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 -- View this message in context: http://old.nabble.com/Convert-struts-tag-to

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 musachy On Sun, Nov 15, 2009 at 12:00 PM, Chris Cranford wrote: > So in my JSP i have defined a s:set tag which populates a variable > with an empty string in some

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: 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

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 should also print "FOO"

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

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 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 by ognl. -Dale -

use param from own tag in struts tag

2009-09-16 Thread tibi
tribute name="saveMethod" %> ${saveMethod} of i would do this: i get an security error. so how can i add 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 Sen

Re: Struts tag inside Custom tag

2009-08-20 Thread Mitch Claborn
try to do this: > sb.append(" > 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! >

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("http://www.nabble.com/Struts-tag-inside--Custom-tag-tp25063279p25063279.html Sent from the Struts - User mailing list archive at Nabble.com. ---

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

2009-08-03 Thread Xyzr
Thanx a lot. This works! Grish wrote: > > > 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 the St

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,

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

2009-05-08 Thread spongebue
editing). This was no problem with the text field, but the label does not get an id assigned by struts, so I can't really call it in the JS. Any way to have Struts add an id to the label or any other way I could hide it? Thanks again! --

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 activity

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

2009-05-07 Thread spongebue
27;m working with the big 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-dropb

RE: Adding Text & Image to struts tag

2009-04-30 Thread Kishan G. Chellap Paandy
ubject: RE: 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'

RE: Adding Text & Image to struts tag

2009-04-30 Thread Kishan G. Chellap Paandy
his will help. Thank you. 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

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
spa?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 >> upgraded Struts from 2.0.9 to 2.0.14, we had to modify struts tag defi

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

Re: Struts-tag ?

2009-01-30 Thread Musachy Barroso
how, can you try to deploy one of the sample apps in your app server? >>> Try >>> struts2-blank. If it works, we'll know it's not an app server problem. >>> I'm >>> guessing that your setup is hosed. My suggestion would be to take a look >>> at >>> the getting started guides and try to build a simp

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
cation, before >> dumping all the jars into WEB-INF/lib and trying out the tags. >> >> -Wes >> >> -- >> >> Wes Wannemacher >> Author - Struts 2 In Practice >> Includes coverage of Struts 2.1, Spring, JP

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
tags. > > -Wes > > -- > > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > > ----- &g

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

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

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

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
gt;> -- >> >> Wes Wannemacher >> Author - Struts 2 In Practice >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more >> http://www.manning.com/wannemacher >> >> >> --------- >> T

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---tp21707578p21708576.html Sent from the Struts - User m

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 includ

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
; http://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

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 dispatch

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---tp21707578p21707972.html Sent from the Struts -

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

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

Re: assigning values from javascript to struts tag

2008-12-05 Thread Nils-Helge Garli Hegvik
ML. Nils-H On Fri, 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 &

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 and

Re: [HELP]: struts tag and OGNL

2008-11-25 Thread Nishna
Try the below logic: Use s:set for generating index -Nishi. EoneZhang wrote: > > Hi, everyone. > > I have something wrong about the usage of struts tag and OGNL. > > Here is my problem: > > I want to generate the

RE: [HELP]: struts tag and OGNL

2008-11-24 Thread nikunj
U Kan use like following way, Regards, Nikunj -Original Message- From: EoneZhang [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 7:44 AM To: user@struts.apache.org Subject: [HELP]: struts tag and OGNL Hi, everyone. I have

Re: [HELP]: struts tag and OGNL

2008-11-23 Thread ManiKanta G
try this ManiKanta

[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 tag: I use the tag like following: But it generate the below html: Is there anyone who can give some help,thanks a

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): property="highLevelCategories"> value="${pannelloForm.highLevelCategoriesChildren[category.id]}"> ${subcategory.contenuto.name} where: - pannelloForm is the ActionForm bean - hi

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-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 unsubscrib

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 > pojo

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: The key is also a bean, obtained through a (working) logic:iterate: How can I retrieve a value from h

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/ --

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Lukasz Lenart wrote: > I'm using something like this: > > 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 my four lines of JSP and convert them into just

Re: simple struts tag to eval OGNL

2008-06-18 Thread Lukasz Lenart
Hi, I'm using something like this: in action I have public EmployeeType[] getEmployeeTypes() { return EmployeeType.values(); } and the enum public enum EmployeeType { DIRECT("D"), INDIRECT("I"), OFFICE("O"); private String shortcut; EmployeeType(String s

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
Lukasz Lenart wrote: > 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 value. I

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. ? Regards -- Lukasz http://www.lenart.org.pl/ -

RE: simple struts tag to eval OGNL

2008-06-18 Thread Brad A Cupit
he page for creating the html. 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 &quo

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

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: does anyone know of a more elegant way? Brad Cupit Louisiana State University - UIS - To

Struts tag to safe print a value

2008-05-06 Thread Graham Leggett
e rendered 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 Dave Newton
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) > { > var textValue = text; > if (textValue.len

Re: How to call javascript from Struts tag

2008-02-28 Thread Musachy Barroso
like: click me ? musachy On Thu, Feb 28, 2008 at 11:43 AM, Varun Ratra <[EMAIL PROTECTED]> wrote: > > 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 &g

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-22 Thread Martin Gainty
t.topic.getTopic("updateReportsListTopic").subscribe(null, "updateReports"); Here is the html ..HTHM--- Original Message - From: "Varun Ratra" <[EMAIL PROTECTED]> To: Sent: Friday, February 22, 2008 4:05 PM Subject: How to call javascript from Strut

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 document.write(shortenTextLength('${defaultReturnReason}', '

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: http://struts.

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 freemar

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 to

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 o

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 tags in a , how would I go > about using the default theme to remove the whole that has the label > and field? > > I'm out of my knowledge area with this one. There are several ways around this issue, each having tradeof

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

2007-12-21 Thread Justin Frost
gt; in a , but I'm never sure what's legal HTML anymore. > > I'm also not sure if I'd bother using if you're just using it > to > create a normal element; seems like unnecessary overhead. > > d. > >

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 tag based on an onclick event > from a > > I was not able to hide the div. > And when I tried to hide just a field only the html text box > was hidden, not the label. That's because the ID is for the textbox (wh

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 stuff around (which is really annoying and shouldn't be default IMHO), what you're doing is only hiding the inner stuf

  1   2   3   >