Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Maurizio Cucchiara
I'm not sure if it helps, maybe you will be luckier looking at http://struts.apache.org/1.x/struts-taglib/tlddoc/html/xhtml.html -- Maurizio Cucchiara On 11 August 2011 19:31, Dave Newton wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I d

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
oh :-)) I am sorry On Thu, Aug 11, 2011 at 7:31 PM, Dave Newton wrote: > wrong version of struts. > On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: >> Hi, >> >> I do not know a text tag in struts: >> http://struts.apache.org/2.2.3/docs/ui-tag-reference.html >> >> And the texfield tags rend

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Dave Newton
wrong version of struts. On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: > Hi, > > I do not know a text tag in struts: > http://struts.apache.org/2.2.3/docs/ui-tag-reference.html > > And the texfield tags renders correct with closing /> (at least in my app) > > Might it be related to the tag

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Christian Grobmeier
Hi, I do not know a text tag in struts: http://struts.apache.org/2.2.3/docs/ui-tag-reference.html And the texfield tags renders correct with closing /> (at least in my app) Might it be related to the tag itself? What doctype do you use? Cheers On Thu, Aug 11, 2011 at 7:18 PM, Anjib Mulepati w

Custom tag in Struts 1.3.8

2011-08-11 Thread Anjib Mulepati
Hi All, I was wondering if there is any way we can tell struts to put '/' at the end of the tag. For example if we have struts tag as property="agencyName" value="" /> it will convert to title="Agency Name"> Now, is there anyway we can have this title="Agency Name" /> Thanks, Anjib

RE: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Marcus Bond
You could always make your own tag as an extension to the standard struts select tag adding attributes onChangeAction and onChangeTarget and let your new tag render an appropriate bit of javascript to make an ajax call to the server and then populate the results into the target item.. such a set

Re: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Christian Grobmeier
> Or someone could provide more info will "sj:select" help satisfy the > following requirement? > > (1) > (2) > (3) > > Actually, I prefer not to use complex javascript code to do change select1, > select2 is updated, change select2, and select3 is updated. No chance without javascript. There i

Re: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Emi Lu
Hello, The onchange attribute expects JavaScript. So you'd have to write a function to use ajax to make your request to /process_change.action. Or someone could provide more info will "sj:select" help satisfy the following requirement? (1) (2) (3) Actually, I prefer not to use complex

RE: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Biesbrock, Kevin
The onchange attribute expects JavaScript. So you'd have to write a function to use ajax to make your request to /process_change.action. --- d[-_-]b Beez > -Original Message- > From: Emi Lu [mailto:em...@encs.concordia.ca] > Sent: Thursday, August 11, 2011 11:16 AM > To: Struts Users Ma

how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Emi Lu
Good morning, In struts2.2.3, how to submit a form to a predefined action? For example, (1) a.jsp (2) Process.java ... public String change() { get Form values from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s

Re: Could struts2 use commons-lang3-3.0.1.jar ?

2011-08-11 Thread Paul Benedict
Emi, you will need both dependencies. You need 3.0.1 for your own development and 2.x for Struts 2. Anyway, I am surprised Struts 2 is exposing Commons Lang. I thought 2.2 or 2.3 went ahead and shaded it so users could use any version of Commons Lang they wanted to. Paul On Thu, Aug 11, 2011 at

Could struts2 use commons-lang3-3.0.1.jar ?

2011-08-11 Thread Emi Lu
Hello, Could someone update struts*.jars to use org/apache/commons/lang3/StringUtils in "commons-lang3-3.0.1.jar" please? Please see https://commons.apache.org/lang/article3_0.html For struts2.2.3, if with the new lang jar, I got the following exception. Thanks a lot! Emi -- After I downlo

Re: Where's ideal for this logic?

2011-08-11 Thread Aaron Brown
One possibility you could use to separate the code responsibility might be to collect your data into objects and dump those objects directly into the view as JSON, or even fetch the data AJAX style using a separate action/view. Since your chart renders are different from page to page and are being

Re: Where's ideal for this logic?

2011-08-11 Thread Jeff Black
Hey Chris -- Can you utilize an interceptor(s) for any of your biz-logic?   jb / From: "CRANFORD, CHRIS" To: user@struts.apache.org Sent: Tuesday, August 9, 2011 8:51 AM Subject: Where's ideal for this logic? I have several actions that instantiate a business service to query KPI statistics fro

Changing portal language in Struts 1 (I18N) working only for one page

2011-08-11 Thread nordi
Hi All, I've been trying to do language selection in Struts 1 (yes, i have to use those). However, after sucessfully changing the language on the login page, after logging in the language just reverts to using the default property file. Can you tell me what i'm doing wrong here? What i need to do

Changing portal language in Struts 1 (I18N) working only for one page

2011-08-11 Thread nordi
Hi All, I've been trying to do language selection in Struts 1 (yes, i have to use those). However, after sucessfully changing the language on the login page, after logging in the language just reverts to using the default property file. Can you tell me what i'm doing wrong here? What i need to do

Re: OGNL context lookup

2011-08-11 Thread Steven Yang
so what you want is dynamically finding values on top of the OGNL stack? I am pretty sure its not possible directly through existing tags. But if write your own method which is like public Object getValueFromStack(String key) { return stack.findValue(key) } (havent gone to check how exactly to