Re: Newbie Lost in the Apache Jungle

2007-01-10 Thread Dale Newfield
Phil_M wrote: Since I'll be the only author until at least an alpha release is ready, I can defer CVS for the moment -- as you said, we need to avoid overrunning our brain's buffers. I would caution against this. The added difficulty of setting up a cvs or svn repository is minimal (add an

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Dale Newfield
Célio Cidral Junior wrote: Implementing Preparable does not seem to solve the problem because the parameters are set before the prepare() method is invoked. Which is needed in order to know which object to retrieve from the DB. This model usually includes including the parameters interceptor

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Dale Newfield
Célio Cidral Junior wrote: Well, having Struts passing parameters in the order defined by the html form would solve my problem. :-) While setting parameters in a request struts has no idea what order they were ordered in the originally generated form--remember that a single action may be

Re: General question

2007-02-01 Thread Dale Newfield
Maya menon wrote: My question is: if users try to open another window and do simultaneous tasks, how can I avoid same user from working in two or more different windows in a Struts based j2ee application ? If your worry is that someone might submit changes to an object that has changed since

Re: struts2 newbie question

2007-02-07 Thread Dale Newfield
Dave Newton wrote: http://cwiki.apache.org/WW/submit.html Submit takes both action and method parameters; perhaps that's what you're looking for? The example makes me think that the method attribute enables the ability to specify get vs. post on a submit button by submit button basis within

Re: struts2 newbie question

2007-02-08 Thread Dale Newfield
Dave Newton wrote: Hrm. Did you try it? I didn't actually see an example on the http://cwiki.apache.org/WW/submit.html page that used s:submit.../'s 'method' attribute. D'oh. I was looking at example 4 and mistook the s:form tag as a s:submit tag. Glad it does what you want. -Dale

support for setting Last-Modified in StreamResult?

2007-02-13 Thread Dale Newfield
if y'all would accept a patch to add it directly to StreamResult... ...opinions? -Dale Newfield [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ I use the ActionName-methodName-validation.xml technique. Just because the ActionName-validation.xml file is

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: Would you mind sharing a couple details about how you have it configured, because if it's working for you then I suppose I must be doing something wrong? I am using Struts 2.0.5. Sure. I'll just mirror your snippets with my own. I am also using 2.0.5. What I have

Re: Xml utilities

2007-02-22 Thread Dale Newfield
Andrew Pliszka wrote: When I talk about generic schema I am mean domain specific schema How is that different from a DTD? Pretty much any xml format that you intend to use heavily should be well defined enough for you to generate one, and then you can easily have the parsers validate

Re: Cross site scripting issue

2007-03-15 Thread Dale Newfield
rapsy wrote: I am trying to find a best solution to prevent Cross site scripting attacks. Aren't we all. The best suggestion I've found is in the first comment on http://weblogs.java.net/blog/gmurray71/archive/2006/09/preventing_cros.html Basically the suggestion is to Tagsoup parse into

Re: Cross site scripting issue

2007-03-15 Thread Dale Newfield
way to fill the tables. I've yet to find it. Any suggestions? -Dale Newfield [EMAIL PROTECTED] P.S.: the tagsoup parse suggestion is also good because it guarantees that anything you do reflect back to users is valid XHTML (and so won't screw up other parts of your page with illegally

Re: How to configure result in the code

2007-03-28 Thread Dale Newfield
Shuai Zheng wrote: But I may not know the filename, contentType, etc (because these files are uploaded by the user). http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html

Re: Parsed contentType in Stream result type, JR plugin

2007-03-29 Thread Dale Newfield
Patrick J Kobly wrote: 'twould be useful to be able to get StreamResult to take the contentType param as an index into the value stack (I have an action that determines content type based on user input). If you include param name=parsetrue/param then you should be able to include OGNL

Re: resume after login feature

2007-04-08 Thread Dale Newfield
Jae K wrote: Now I need to get the OGNL syntax right. One thing that'll help is adding a parse param (set to true) http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html -Dale

Re: resume after login feature

2007-04-08 Thread Dale Newfield
Jae K wrote: Dale, the parse param is set to true by default so I didn't have to set it. D'oh! You're right--it says so right there in the javadoc! When did that (change) happen? (Or has it always been that way? Online javadoc for WebWork 2.2.5 seems to suggest it was always that way.

Re: resume after login feature

2007-04-09 Thread Dale Newfield
Jae K wrote: Last but not least, it is not obvious that the OGNL expressions need to be enclosed in ${} when used in the struts config file. (Is this even true? I don't know since it's not documented! It certainly isn't documented so in the OGNL documentation).

Re: Interceptors and thread-safety

2007-04-16 Thread Dale Newfield
Shahak Nagiel wrote: This was my concern exactly; Is a separate interceptor instance shared among all references to each action, or more broadly just a Struts-wide singleton? For example, if you configure an execAndWait for both actions foo and bar, with delays of 2 and 4, respectively, will

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Dale Newfield
display style. Ugly hack, but it works. -Dale Newfield [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Interceptors and thread-safety

2007-04-16 Thread Dale Newfield
Laurie Harper wrote: Likewise, should two different users both calling an execAndWait action be able to co-exist, or will they mess with each other up? One would hope the former ;-) execAndWait obeys the thread-safety requirement, so there shouldn't be any collisions on a request-by-request

Re: Interceptors and thread-safety

2007-04-17 Thread Dale Newfield
Now I'm even more confused about where dependency injection happens for interceptors. My long running process is importing large numbers of documents into my system (extracted from an uploaded .zip file), which needs DB access throughout the process. As such, I use something based upon:

Re: forwarding to another action passing parameters

2007-05-16 Thread Dale Newfield
Gena Batsyan wrote: As I said, if using chain, the whole load of parameters is applied to the second action, which I want to avoid, I want it to get nothing except of what I'm explicitly define. It sounds like you're trying to use the wrong tools. You're looking for a way to trigger the

Re: forwarding to another action passing parameters

2007-05-17 Thread Dale Newfield
Gena Batsyan wrote: Why not, we have two actions with absolutely distinct purposes, one for entry creation and another for entity listing, but the listing has a little feature to display messages. If you have two actions you want to expose to your users, then by all means they should both be

Re: Spring and executeAndWait

2007-05-23 Thread Dale Newfield
Mansour wrote: This was the first thing I did. The waiting page stays, and the results are never shown unless I hit refresh. That's appropriate, except that a meta tag in the head of the page should cause your browser to automatically refresh. Something like: meta http-equiv=refresh

Re: Spring and executeAndWait

2007-05-23 Thread Dale Newfield
Mansour wrote: I thought this will be generated automatically by FreeMaker iif you don't provide your waiting page, according to the documentation. It should be. When I first started using execAndWait it generated the page for me automagically, but then later I wanted to tailor the content,

Re: Spring and executeAndWait

2007-05-23 Thread Dale Newfield
Mansour wrote: By the way, why did you include the action in the wait page ? meta http-equiv=refresh content=60;url=s:url action=uploadPhotos namespace=// Are you suggesting that this: meta http-equiv=refresh content=60;url=s:url // will also work, and quite possibly make the page useful

Re: [S2] s2:iterator needs refresh to work properly

2007-05-24 Thread Dale Newfield
Laurie Harper wrote: Perhaps something like the following, making use of the status info [1] exposed by s:iterator: tabletr s:iterator id=item value=yourList status=s tds:property value=#item.someProperty//td s:if test=#s.index % 3 == 0 /trtr /s:if /s:iterator

Re: Values of multiple select tag are not being selected

2006-12-20 Thread Dale Newfield
I submitted a JIRA issue about this a week or so ago, and Ted marked that it will be fixed by the 2.0.3 release. If you find anything more about this, could you please add it to the JIRA issue? http://issues.apache.org/struts/browse/WW-1557 -Dale Célio Cidral Junior wrote: Given the

Re: PlanetStruts has a Proxy Error

2006-12-24 Thread Dale Newfield
debugger to work with the includes Any advice about where I'm going wrong would be appreciated. I'm sure there are a number of snippets from configuration files that might help diagnose--let me know what would help... Thanks in Advance! -Dale Newfield [EMAIL PROTECTED

Re: PlanetStruts has a Proxy Error

2006-12-24 Thread Dale Newfield
Ted Husted wrote: Change to the showcase source directory and run mvn install That was the trick I was missing! Thanks! There's an open issue that suggest reverting the 2.0.2 datepicker, which I may try to apply today. * https://issues.apache.org/struts/browse/WW-1555 with the right mvn

Re: PlanetStruts has a Proxy Error

2006-12-24 Thread Dale Newfield
Martin Gainty wrote: I just did a quick build with 2.0.1 and got 2006-12-24 18:40:10,718 ERROR [XSLTResult.java:289] : Unable to render XSLT Template, 'nofile.xsl' javax.xml.transform.TransformerException: Stylesheet nofile.xsl not found in resources Found in:

Re: PlanetStruts has a Proxy Error

2006-12-24 Thread Dale Newfield
Martin Gainty wrote: Guess i missed the location..where is nofile.xsl located??? As far as I can tell, it is not located anywhere. That's the whole point of the test--verifying correct behavior when an absent file is requested. I assume you're seeing this request as part of the output of

Strange parser bug...

2006-12-25 Thread Dale Newfield
is below[2] as well as one where the configuration file is actually parsed[3]. All of the packages are represented, as well as tomcat, ognl, ... ...any advice would be appreciated... (Oh, this is all tomcat5.5.20 under java5 on os x.) Thanks, -Dale Newfield [EMAIL PROTECTED] Appendix [1

Re: [struts] What actually processes a JSP file?

2007-10-26 Thread Dale Newfield
I believe there are lots of ways that JSP engines work. Here's how the one in tomcat works: In my app I have a file named login.jsp. Inside $CATLINA_HOME (at work/Catalina/localhost/myapp/org/apache/jsp) it automatically creates login_jsp.java Which it then compiles to login_jsp.class Which

Re: [struts] S2: EL in tags 2.0.11

2007-10-29 Thread Dale Newfield
cilquirm wrote: you could do this c:set var=req value=${pageContext.request}/ s:property value=\%{ attr['req'].contextPath }/ s:property value=\%{ attr['req'].pathInfo }/ Isn't the request on the valuestack? s:property value=%{#request.contextPath}/ should be all you need...

Re: [struts] S2: EL in tags 2.0.11

2007-10-30 Thread Dale Newfield
Just in case these this didn't work messages were copy-pasted, I'll point out the typos: Chris Pratt wrote: On 10/30/07, Manuel Correa [EMAIL PROTECTED] wrote: Didn't work: s:property value=%{#request['javax.servlet.forward.context_path']/ s:property

Re: [struts] jsp pages cahces on struts

2007-11-06 Thread Dale Newfield
Odelya Glick wrote: I deleted the files under: TOMCAT_HOME\work\Cataline\localhost\myProjectName But is there a better way to never cache it? .jsp gets converted to .java which then gets compiled to a .class, which is then loaded and executed. You do *not* want to go through that process

Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
enthucoder wrote: I am validating a condition : Input should not contain any of these characters %,(,) And to achieve this my RegEx is : ^[^(\%|\(|\))]+$ That should be: ^[%()]*$ (using + instead of * at the end adds the restriction that the field must contain at least one

Re: [struts] [S1.3]Strange problem with validation.xml's Regex

2007-11-08 Thread Dale Newfield
Dale Newfield wrote: enthucoder wrote: I am validating a condition : Input should not contain any of these characters %,(,) And to achieve this my RegEx is : ^[^(\%|\(|\))]+$ That should be: ^[%()]*$ D'oh! That should be: ^[^%()]*$ -Dale

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
Gunnar Hillert wrote: Thanks for your helpful post! Interestingly, this also works with redirect actions. Hrm... The javadoc for ServletActionRedirectResult says: This result uses the ActionMapper provided by the ActionMapperFactory to redirect the browser to a URL that invokes the specified

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
Dave Newton wrote: result name=success type=redirectAction param name=actionNamemySuccess/param param name=fooId${fooId}/param param name=barId${barId}/param /result Arguably, yes, and for a couple of reasons. Off the top of my head I don't recall what will happen if the param isn't

Re: [struts] Thanks! Works also with redirect actions...

2007-11-09 Thread Dale Newfield
Dave Newton wrote: You mean on a Result type? On the redirectAction result type. Personally I'd prefer this as the *default* behavior and force you to specify if you *did* want empty parameters included, but that's just me. I agree, but I don't think the patch should change current

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Don Brown wrote: Little known fact, but you can specify the method via: ?method:MY_METHOD_NAME This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. I wondered how the submit tag argument

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: action name=/home_* method=do{1} /action With that setting, only methods with the prefix do in their name can be executed. ie. ?method:update calls doUpdate() Even if that does exactly what you

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans [EMAIL PROTECTED] wrote: action name=/home_* method=do{1} /action I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase stuff implied). It

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: It would be simple enough for the DefaultActionMapper to check a flag as well except I think this would also prevent the method=METHOD_NAME notation from being used in struts.xml as well. Urk! I didn't realize that. If true, that definitely means the simple solution is

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: var testValue = 's:property value=testValue /'; However, this does not work if the value has a single quote in it Try: var testValue = s:property value='%{testValue}'/; -Dale - To unsubscribe, e-mail:

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: That does not escape the single quote. Correct. But I believe the following is valid ecmascript (without the single quote being escaped): var testValue = You've got to be kidding!; -Dale - To

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: I think escaping would still be best for me Then you're looking for: org.apache.commons.lang.StringEscapeUtils.escapeJavaScript() -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: Thanks. I will be sure to look at that. That brings me back to my original question though which is how do I call that from within the property tag? s:property value=[EMAIL PROTECTED]@escapeJavascript(ognlExpr)}/ -Dale

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-13 Thread Dale Newfield
Adam Gordon wrote: We're using JAAS for webapp authentication and we've discovered an issue: If user A is logged in and tries to log in as user B, they stay logged in as user A. Couldn't you protect the login form page and action so that they're only accessible by a session without any

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: s:property value=%{comments} / returns what I am expecting. s:property value=[EMAIL PROTECTED]@escapeJavaScript(comments)} / returns nothing. Do you have a commons-lang jar in your WEB-INF/lib? http://commons.apache.org/lang/ -Dale

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-13 Thread Dale Newfield
chengas123 wrote: s:property value=%{comments} / returns what I am expecting. s:property value=[EMAIL PROTECTED]@escapeJavaScript(comments)} / returns nothing. Have you turned off this capability (or rather not turned it back on)? struts.ognl.allowStaticMethodAccess

Re: [struts] [S2] Recursive s:iterate

2007-11-13 Thread Dale Newfield
Chris Pratt wrote: I have an folder hierarchy that I'm trying to display on a web page, but I can't figure out how to get s:iterate (or c:forEach) to work with a structure of unknown depth. Does anyone know of a technique that would allow this? Create a .tag file that (conditionally) calls

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread Dale Newfield
chengas123 wrote: Ahh, yes, that was my problem. I'm afraid I wasn't expecting that. I don't really see how allowing static method access presents a security problem. I am opening myself up to any obvious risks by turning this on? If someone submits a value in a form that you mirror back to

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-15 Thread Dale Newfield
Laurie Harper wrote: If you have a separate 'login' page (as opposed to having a login form on each page) you might be able to get away with invalidating the session when that page is shown, with the caveat that logged in users would implicitly be logged out if they visit that page. And in

Re: [struts] s:url action and method separator using something other than action!method

2007-11-15 Thread Dale Newfield
Amit Rana wrote: I have a url for login s:url id=loginurlid namespace=/ action=login method=input/s:url This generates a url like http://localhost:8080/myapp/login!input.action Is there a way to tell s:url to use _ or / as separator and not ! In struts.xml you can define any name you

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-15 Thread Dale Newfield
Adam Gordon wrote: For background, we actually have two login pages: on is the login page that is running inside our webapp that is running JAAS and POSTs to j_security_check at form submission time. The other page is our company's main website (Apache) and users can log in here too. What

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-16 Thread Dale Newfield
Adam Gordon wrote: I think the solution is going to be to redirect the user to the default main page manually w/ the login parameters and JAAS should take over from there...hopefully. Except a redirect must be to a GET, not a POST, and it would be unfortunate to include the login credentials

Re: [struts] [S2] SiteMesh: let the user choose to see a page undecorated

2007-12-04 Thread Dale Newfield
setecastronomy wrote: I want to give the user the possibility, for some result pages, to choose to see them undecorated. Easiest solution is to select a different decorator based on a parameter com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper -Dale

Re: [struts] How to solve the limitation of s:optiontransferselect tag

2007-12-05 Thread Dale Newfield
Jeromy Evans wrote: DJR wrote: What I'm doing now to solve the problem is to modify the source code of the tag. But it's a bit troublesome, I think. Are there any more elegant solutions?:thinking: DJR wrote: As is know to all, s:optiontransferselect tag has a buttonCssStyle attribute,

Re: [struts] How to solve the limitation of s:optiontransferselect tag

2007-12-06 Thread Dale Newfield
DJR wrote: I think it better that the Struts2 framework add some additional attributes for tag of optiontransferselect. For instance, buttonCssStyle2 for one of the select button and buttonCssStyleAll, buttonCssStyleAll2 for the selectAll buttons. Feel free to develop patches for that, create

Re: [struts] params and staticParams

2007-12-07 Thread Dale Newfield
Jeromy Evans wrote: Wouldn't it be the case for most people that specify params in the action definition that they wouldn't want those overridden by request params? I don't know the history but I think you make a good point. It a couple more people agree I'll create a JIRA issue and post a

Re: [struts] params and staticParams

2007-12-08 Thread Dale Newfield
Martin Gainty wrote: Could you give us a definition of SmartURL ? I'm fuzzy on this, but the best I've got is: http://cwiki.apache.org/S2PLUGINS/smarturls-plugin.html -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For

params and staticParams

2007-12-07 Thread Dale Newfield
I'm about to change the order of these two interceptors in my application, and I thought I'd ask about this use case, and find out why the order is as it is right now in struts-default.xml. I've got a fairly generic get a piece of a list of action, and I think I've settled on creating a

Re: [struts] params and staticParams

2007-12-08 Thread Dale Newfield
Dale Newfield wrote: Jeromy Evans wrote: Wouldn't it be the case for most people that specify params in the action definition that they wouldn't want those overridden by request params? I don't know the history but I think you make a good point. It a couple more people agree I'll create

Re: [struts] params and staticParams

2007-12-08 Thread Dale Newfield
Jeromy Evans wrote: Should I just send all /widgets/* to a single action that does it's own URL parsing? I think this is an argument for a custom action mapper that supports your expressions. It's up to the mapper to parse the URL to extract the namespace, action and params. I thought

URL questions...Was: Re: [struts] params and staticParams

2007-12-08 Thread Dale Newfield
Dale Newfield wrote: myTagLib:myTag showMe=Users friendOf=joe friendOf=amy/ org.apache.jasper.JasperException: Validation error messages from TagLibraryValidator org.xml.sax.SAXParseException: Attribute testAttribute was already specified for element myTagLib:myTag. Argh! It's not valid

Re: URL questions...Was: Re: [struts] params and staticParams

2007-12-08 Thread Dale Newfield
Dale Newfield wrote: But are commas url friendly? I.E.: Is this bad? http://mymachine/myapp/users/friendOf/amy,joe/attendedEvent/BobsBirthday.html I think http://www.ietf.org/rfc/rfc3986.txt says that this is OK. -Dale

ActionMappingAware ?

2007-12-12 Thread Dale Newfield
I think I'm missing something. Shouldn't there be a way for an action to get ahold of the mapping that resulted in the action being called, and maybe even the ActionMapper that chose it? ActionMapper has a very useful method getUriFromActionMapping that I'd like to be able to call from within

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Is this a Struts 1.x or Struts 2.x? Sorry I didn't include that. Struts2. (If I recall correctly, that was one of the arguments to the action's exectute method in Struts1.) -Dale Dale Newfield wrote: I think I'm missing something. Shouldn't there be a way

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_MAPPING); Thanks for the suggestion. I did not try that because I've found a different solution that didn't require getting ahold of the mapping. s:url w/o specifying an

Re: [struts] Struts 2 + Sitemesh decorator mapping

2007-12-14 Thread Dale Newfield
Filipe David Manana wrote: Anyone using Struts 2 with multiple Sitemesh decorators? Yep. You mention using more than one decorator, but the decorators.xml file you show only has one. It's scanned in order, and the first matching one is used. Do you have your other decorator (with /*)

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Dale Newfield wrote: I've got a page that uses s:optiontransferselect, and I'm pretty happy with it, but I'm now trying to scale up this app, and just over 1000 entries and the freemarker template bombs out: I've got a different solution in mind that should work when this gets large

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
-- - Original Message - From: Dale Newfield [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, December 15, 2007 2:05 PM Subject: Re: [struts][2.0.11] optiontransferselect limit? Dale Newfield wrote: I've got a page that uses s:optiontransferselect

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Martin Gainty wrote: this is the applicable code in my copy of optiontransferselect.ftl #if parameters.doubleListValue?exists#t/ #assign doubleItemValue = stack.findString(parameters.doubleListValue) /#t/ #else#t/ #assign doubleItemValue =

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Dale Newfield wrote: Martin Gainty wrote: this is the applicable code in my copy of optiontransferselect.ftl Thanks for making me look at this--it led me straight to my problem! So we know there is a problem with the freemarker libraries, and that it's either in ?exists, or stack.findString

xwork 2.1 changes?

2007-12-16 Thread Dale Newfield
Attempting to upgrade to 2.1 to finish my optiontransferselect testing (in 2.0.11 the select all before submit is implemented by dojo, which I'm not using, so I'm still not quite done--when I am I'll post any appropriate .ftl changes to JIRA.) Is there a better list to ask about xwork

Re: [struts] xwork 2.1 changes?

2007-12-16 Thread Dale Newfield
Don Brown wrote: I'm accessing this from a listener (LoginListener) that is trying to generate i18ized messages of the form Last successful login at X, N unsuccessful login attempts since then. Is the ActionContext null because I've not yet been dispatched to an action? What is the appropriate

Re: [struts] xwork 2.1 changes?

2007-12-16 Thread Dale Newfield
Don Brown wrote: Then when is the code running? In the inbound or outbound? Sitemesh works because it is activated on the outbound, and so should your filter. If inbound, then it won't, because the action proxy hasn't been called yet. Inbound. I got confused because javax.servlet.Filter

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-18 Thread Dale Newfield
Martin Gainty wrote: good call dale! http://freemarker.org/docs/ref_builtins_expert.html implementing has_content will definitely detect no content condition Rather than detecting no content, what we really want to do is insure that there is valid content. (The previous patch detected this

Re: [struts] [OT] Exception.getLocalizedMessage()

2007-12-22 Thread Dale Newfield
Adam Hardy wrote: And of course, I can't pass in parameters when calling getLocalizedMessage(). ThreadLocal? -Dale Pass through the common block Newfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [struts] s2 override request_locale

2007-12-28 Thread Dale Newfield
Markus Stauffer wrote: Another thing that I do not understand is why in the default Interceptor stack the i18n intereceptor is called after the prepare interceptor. In the prepare() methode the Locale is not set, because the i18n interecptor is invoked later in the stack. I had to manualy

Re: [struts] Tags and variable attributes

2008-01-06 Thread Dale Newfield
[EMAIL PROTECTED] wrote: Using s:property value='getText(varHoldingKey)/ is NOT allowed because of syntax error. The syntax error is that you have unmatched ''s and 's. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [struts] Tags and variable attributes

2008-01-06 Thread Dale Newfield
[EMAIL PROTECTED] wrote: If the varHoldingKey is a key, it works fine. However, it is not a key itself. It is an action property holding the key. So, have you tried s:property value='%{getText(varHoldingKey)}'/ ? -Dale - To

Re: [struts] Tags and variable attributes

2008-01-07 Thread Dale Newfield
[EMAIL PROTECTED] wrote: It works. What's behind it? I even can't believe it. Before you were using ognl to call getText with a string argument varHoldingKey. Without those strings you're now calling that same method with the evaluated value of the action attribute varHoldingKey.

Re: [struts] getting namespace of action through OGNL

2008-01-07 Thread Dale Newfield
Jeromy Evans wrote: Wes Wannemacher wrote: But, if I use the following OGNL - s:property value=@[EMAIL PROTECTED]().actionInvocation.proxy.namespace/ I just get a big fat nothing :( Works for me! Maybe it's working for both of you--Wes, are you certain that the appropriate answer for

Re: [struts] REST vs Original

2008-01-19 Thread Dale Newfield
Jeromy Evans wrote: Unfortunately at the moment you can't mix conventions within the same Struts2 webapp. The trouble is the REST plugin overrides a lot of the default behaviour rather than augmenting it. Right now if your commit to REST conventions it'll apply to the entire webapp. With

Re: [struts] [S1] json and Action execute()

2008-01-22 Thread Dale Newfield
James Mitchell wrote: Take a look at this page: http://cwiki.apache.org/S2PLUGINS/json-plugin.html The OP specified struts1 in the subject. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

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] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: That is an interesting point. The bean is a hibernate object, however, I am not retrieving it from the database, but rather only trying to populate it from the form values. You should be able to tell from the call stack which interceptors have been

Re: [struts] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: I turned debug level logging for struts and xwork packages. I see that the ParametersInterceptor is being called indeed for both scenarios (with or without execAndWait) However, one interesting thing is when I comment out the delay and delaySleepInterval

Re: [struts] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: I am trying to use the execAndWait interceptor. If this bean is retrieved from your DB, then it's likely the DB session is being closed. http://wiki.opensymphony.com/display/WW/HibernateAndSpringEnabledExecuteAndWaitInterceptor -Dale

Re: [struts] Struts2 tags loops

2008-02-01 Thread Dale Newfield
Filipe David Manana wrote: The c:forEach jstl tag, as well as all other jstl tags, is not allowed in struts 2.0.11, afaik. This is in no way the case. What is disallowed in 2.0.11 is el expressions as struts tag attributes. -Dale

Re: [struts] Is Multiple Forms(s:form) in one Jsp possible?

2008-02-07 Thread Dale Newfield
Thomas Ramapuram wrote: I just wanted to know if it is possible to have multiple s:form in one jsp. Each of the forms submit to a diffrent action. Just make sure they're not nested inside one another, and that no two elements on the rendered page have the same id attribute. -Dale

Re: [struts] servletOutputStream in S2 action

2008-02-07 Thread Dale Newfield
bhaarat Sharma wrote: I think its better if i post some code. This is the action mapping for action name=\accessRequestReportResult\ class=\action.reports.AccessRequestReportResult\ result name=\showReport\/useradmin/AccessRequestReport.jsp/result result

Re: [struts] servletOutputStream in S2 action

2008-02-07 Thread Dale Newfield
bhaarat Sharma wrote: ..what should my execute method be returning? As always, it should return the name of the appropriate result (in this case, the name of the result of type stream). -Dale - To unsubscribe, e-mail:

Re: [struts] servletOutputStream in S2 action

2008-02-07 Thread Dale Newfield
Mike Jennings wrote: You can do this by creating a custom result type. Or you can use a result type that's already provided that does exactly what you need. http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/StreamResult.html How can i do the same in my

Re: [struts] servletOutputStream in S2 action

2008-02-07 Thread Dale Newfield
bhaarat Sharma wrote: Thanks for that. that gives me a better idea to go about things + i didnt know we can call methods from struts.xml http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/StreamResult.html describes how that result works, stating taht the

  1   2   3   4   5   6   >