Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Bob Jacoby
random object Map contextFrom = Ognl.createDefaultContext(from); Ognl.setTypeConverter(contextFrom, XWorkConverter.getInstance()); Any suggestions would be appreciated. I've tried googling and looking at the migration guides but didn't see anything that appeared relevant. Thanks, Bob

S2 - Need advice with Localization

2008-09-18 Thread bob fuller
I am trying to Localize a dynamic message and would like some advice as to how I should go about it. My main goal is to keep the message itself as 'intact' as possible in my package.properties, doing this will (hopefully) speed up translation by an interpreter. Goals after that are to use the

RE: Struts 2 - Repopulate controls when validation fails

2008-06-30 Thread bob fuller
Setting the s:action's ignoreContextParams to true partially resolves the issue I am having. Here's my pseudo jsp now... s:form name=myAction s:textfield name=foo0/ s:action name=languages ignoreContextParams=true executeResult=true/ s:textfield name=foo1/ s:submit/ /s:form Now, the

RE: Struts 2 - Repopulate controls when validation fails

2008-06-26 Thread bob fuller
The approach I am taking is from the Struts 2 FAQ... http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html Why should it be avoided? Date: Thu, 26 Jun 2008 08:32:37 +0200 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Struts 2 -

Struts 2 - Repopulate controls when validation fails

2008-06-25 Thread bob fuller
I'm following the How do we repopulate controls when validation fails FAQ located at... http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html Of the two methods it suggests I am trying to use the 'action tag' method. Using the simple example from the FAQ

RE: Struts 2 - Repopulate controls when validation fails

2008-06-25 Thread bob fuller
Trying again to give out my pseudo JSP... s:form name=myAction s:textfield name=foo0/ s:action name=languages executeResult=true/ s:textfield name=foo1/ s:submit/ /s:form From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Struts 2 - Repopulate controls when validation fails Date:

RE: s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Bob Tiernay
I would recommend either of the following: 1. Use a jstl function that gets the application context and resolves the bean by name 2. Use a tagfile to wrap a scriptlet (or call to 1.) that does the lookup, using the bean name as an attribute. Date: Fri, 6 Jun 2008 13:36:16 -0400 From: [EMAIL

using the action and property tags

2007-09-06 Thread joe bob
Hello, I have been using struts 2.0.9 to build my application. In all of my JSPs I would like to display a welcome page involving a user name. I already have an action to get/set this value so I would like to do the following in a JSP included in all of my other JSPs: s:action

Re: using the action and property tags

2007-09-06 Thread joe bob
sorry, there was a typo in my example, the property value should be userInfo.displayName. On 9/6/07, joe bob [EMAIL PROTECTED] wrote: Hello, I have been using struts 2.0.9 to build my application. In all of my JSPs I would like to display a welcome page involving a user name. I already

s2 transferring data from form to list backed property

2007-06-07 Thread bob
are that explain how to implement the list and map backed propeties? bob ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL

s2 logging

2007-06-04 Thread bob
This is clearly a newbie question but i can find no info. Sorry to be dumb. Does S2 support logging? Of course, I now that I can use other logging myself, but I tried to find ways in which S2 provides direct support for logging. I was thinking there would be an interceptor or something.

S2 fileupload interceptor resources

2007-05-25 Thread bob
When i was implementing the fileupload via the interceptor, using default settings ( i.e. the jakarta stuff as specified in default.properties ), I found that i had to go get two jar files for this to work, commons io and commons fileupload. I was just wondering why these wouldn't be

RE: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread Bob Buffone
with struts would be to use the xModify syntax to do page modification of the HTML DOM. By outputting the xModify syntax from a struts action, you would get the in page updating of Ajax but still control the page orchestration through Struts. This is the best of both worlds. Bob (Buffone) XAP Committer

Re: Problem with struts and jfree chart

2007-03-07 Thread GulliGulli Bob
(HttpJspBase.java:133) ... jfreechart works without struts, so what that can be? Am Mittwoch, 7. März 2007 00:54 schrieb David Durham: From: GulliGulli Bob [mailto:[EMAIL PROTECTED] my struts application works fine before I put the jfree-chart jars (jfreechart-1.0.4.jar, jcommon-1.0.8.jar

Problem with struts and jfree chart

2007-03-06 Thread GulliGulli Bob
Hi, my struts application works fine before I put the jfree-chart jars (jfreechart-1.0.4.jar, jcommon-1.0.8.jar, gnujaxp.jar) in the classpath. Now I get the following errors: INFO: validateJarFile(C:\workspace\struts\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section

[s2] AJAX tags

2007-02-26 Thread bob
This is a very general question. The feature list of Struts2 lists Ajax tags and I was wondering if these actually implemented some ajax stuff, i.e. they communicate with the server via xml requests, or are these tags just front end DHTML commonly associated with Ajax.

[S2] model driven versus domain object property

2007-02-23 Thread bob
I'm trying to figure out what the differences, pros and cons, are between using the ModelDriven interface to expose a domain object to the data transfer of the framework and just putting a domain object on the action as a property. For instance, if my domain object is Customer, what would

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread bob
I could be wrong, but perhaps you should use the Spring IoC container for this. I can't point you to the correct documentation off hand, but I believe that this is the way to maintain a resource such as what you had previoulsy done with the Servlet's init method and the factory class.

Re: Xml utilities

2007-02-22 Thread bob
Isn't this kind of off topic? Oh well . . . I understand your writing a higher level API class for you developers to use. So, your not exactly looking for suggestions about the XML api you will use inside your utility. But in the off topic spirit, I'll just go ahead and recommend a

[S2] configuring velocity toolbox

2007-02-21 Thread bob
I'm trying to use the velocity toolbox with struts2. It seems that there some problem getting the velocity toolbox configured. None of the tools I configure in the toolbox.xml file are available in the velocity templates. The wierd thing is that the output from the velocity servlet init

[s2] architecture question

2007-02-20 Thread bob
I was just curious about the use of a servlet filter instead of a servlet as the entry point into the struts2 framework. Does anyone have any knowledge about this design decision? I'm just interested in what the pros and cons are of doing it with a servlet or a filter. Thanks ahead of

[S2] access to URL information

2007-02-19 Thread bob
What's the cleanest way to get to the request url information, such as the domain name, from within an interceptor? I know that I could get a hold of the servlet API to do this, but is this a best practice? I know that I've read that you should try to avoid accessing the servlet API from

Re: [S2] access to URL information

2007-02-19 Thread bob
I suppose you could set the information in one of theinterfaces with .map via an interceptor, or createyour own interface, but so far it's not clear to mewhy you'd want to.d. Actually, I have multiple hostnames mapped to my application and the virtual host is determined by parsing the host

Re: [s2] Autopopupation of fields fails with

2007-02-05 Thread bob
check if you have any custom filter in front of your action - themultipart parser requires a 'virgin' request object, without accessingany params in it prior to multiparse analysis. Could you say more about this? Does this mean that if I'm using the prepare interceptor / interface ahead

Re: [s2] file upload causing param problems

2007-02-01 Thread bob
oops.. its common-fileuploads-1.1.1.jar sorry for the mistake...- I experienced the missing params behaviour while using that jar as well. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web!

PlexusContainer - missing jar?

2007-01-31 Thread bob
I'm getting the following class not found when starting up my web app. I tried to search the internet for the jar that has this class and couldnt' find nothing. Anybody know if I'm missing a jar, or something else. 10:08:09,806 ERROR [/webSite]:3638 - Exception starting filter struts2

RE: PlexusContainer - missing jar?

2007-01-31 Thread bob
Well, I just took the plexus plugin out for now. And it works, but I would still like to know where the jar for the missing resource is, if anyone knows? --- On Wed 01/31, bob [EMAIL PROTECTED] wrote: From: bob [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Wed, 31 Jan 2007

Re: [s2] file upload causing param problems

2007-01-31 Thread bob
commons-lang-1.1.1.jar? Well, I've already got commons-lang-2.1.jar. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail:

Re: [s2] file upload causing param problems

2007-01-31 Thread bob
, why it can be fixed in this odd manner ??? Bob ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED

[s2] file upload causing param problems

2007-01-30 Thread bob
Hi. I am having some strange problems when using the file upload interceptor. When I use the file upload, I experience an extremely erratic behaviour where sometimes my request params get set on my action and sometimes they do not. All params from my form are either there or not there;

keys, security on downloads

2007-01-30 Thread bob
All, I'm an admitted security gumbie, but I do have some questions regarding the download security mechanisms on the struts site. Note, they are pretty much similar to those found on other similar sites so I'm not picking on anyone. In fact, I just want someone to explain to me how it

RE: Failure request.getAttribute();

2007-01-30 Thread bob
Parameters are the set of values coming from the http request. Attributes are the things you can set on the request yourself, yourself can include struts because it too is a user in the space above the ServletAPI. ___ Join Excite! -

RE: [s2] Finding a URL of an Action within execute()

2007-01-30 Thread bob
This is surely not the best way . . . but you can implement one of the Aware interfaces that gives you a reference to the ServletRequest and get the URL info from that, from there I assume you could probably build the action specific url. But I'm also sure there must be access to the struts

[s2] multi part plugin

2007-01-30 Thread bob
Hello. I'm moving my application up to s2.04 ( from 2.0.1 ). I'm getting an error from the struts filter that says it can't find the pell mulit part request class. The odd thing is, I have verified that the correct jar is available and that it holds the correct class. The problem seems

[s2] versions?

2007-01-30 Thread bob
At first I thought there was only a 2.0.1 version of struts2, as its the only one listed upfront; now I've found 2.0.2 . . . 2.0.5. I'm not really familiar with official versioning practices, so maybe this is obvious, but what are the differences?

[s2] Cannot create a session after the response has been committed: struts or tomcat ?

2007-01-29 Thread bob
. Note: Even though the first line says could not execute action, the actions do usually execute . . . where's this error message coming from? It anyone can give me some insight, I'd certainly appreciate it. Thanks, Bob 04:17:13,333 ERROR Dispatcher:341 - Could not execute action

Re: [s2] Cannot create a session after the response has been committed: struts or tomcat ?

2007-01-29 Thread bob
exceptions with Struts2if there was an unexpected exception in my code, ie. from Hibernate.I can see Hibernate in your stack, are you sure this is not the reasonof your problems?Is this the full stacktrace?Dariusz WojtasOn 1/29/07, bob [EMAIL PROTECTED] wrote: I'm getting the following error

Re: JSTL toUpperCase

2007-01-24 Thread Bob Arnott
; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; ... /web-app -- Bob Arnott - To unsubscribe, e-mail: [EMAIL

Re: converting a struts bean call to EL/JSTL

2006-09-20 Thread Bob
Thanks for the response but I had tried that and it does not work. ${requestScope[param.formName].uiCtrlLabel[entry.key]} gives and error of unable to find a value for uiCtrlLabel in object of class blank.blank..etc..formname using operator '.' Laurie Harper wrote: Bob wrote: I have a map

converting a struts bean call to EL/JSTL

2006-09-19 Thread Bob
I have a map of ui controls passed to a JSP. Each entry in the map contains a label, name, value. The key used in the map is the name. I iterate through as follows: TABLE c:forEach var=entry items=${requestScope[param.forName].uiControls} TR TD

Re: Struts-EL and Struts features not in JSTL and EL

2006-08-28 Thread Bob
Thanks. That solution didn't quite work (I didn't need to reference the map) but led me to try something similar which worked. c:if test=${requestScope[param.formName].someProperty =='someValue'} Wendy Smoak-3 wrote: On 8/28/06, Mead, Robert F (Titan) @ TITAN [EMAIL PROTECTED] wrote:

RE: Possible to programmatically create and use tags?

2006-06-26 Thread Bob Carpenter
your JSP: first to get the created page, the second to then do it again. If you need to do conditionals, do something like this: c:if test=${condition} struts tags here /c:if Bob Carpenter [EMAIL PROTECTED] wrote: Hi, Is it possible to programmatically create HTML blocks that include struts tags

Possible to programmatically create and use tags?

2006-06-25 Thread Bob Carpenter
Hi, Is it possible to programmatically create HTML blocks that include struts tags and include them in a JSP? Here's a simple example which fails to produce the text field defined by the html:text tag: %@ page language=java errorPage=ErrorPage.jsp contentType=text/html % %@ taglib

Re: how to pass value in html:text from action

2005-11-29 Thread Bob Arnott
value=%=value.toString()% / Alternatively, use an action to populate the form bean. Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to escape a string on a description field

2005-10-24 Thread Bob Arnott
, especially public static String escapeSql(String str). Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Serializing Form-Beans with XML

2005-10-17 Thread Bob Arnott
rules in a way that can be customized on a per type manner in the same way that the BeanInfo mechanism can be used to customize the default introspection on a java object. Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL

upgrade from Struts 1.0.2

2005-09-29 Thread Bob Paige
I am trying to upgrade an old Struts 1.0.2 application to a current version of Struts, but I'm finding some classes are not available: - org.apache.struts.action.ActionMappings - org.apache.struts.action.Action.ERROR_KEY - org.apache.struts.digester.Digester - org.apache.struts.digester.Rule -

Re: upgrade from Struts 1.0.2

2005-09-29 Thread Bob Paige
Wendy Smoak wrote: From: Ainbinder Marina [EMAIL PROTECTED] Same is here. I am trying to upgrade from 1.1 to 1.2.4, but can not find any documentation. Some guidelines would be very helpful. http://wiki.apache.org/struts/StrutsUpgrade Also check the release notes:

Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Bob Arnott
it doesn't integrate very well with IDE's or Cruise Control etc and is a general pain in the arse. VSS, are you being serious...? Out of those three I'd take CVS every time, although you may want to look at Subversion as well. Cheers, -- Bob Arnott

RE: basics of struts

2005-09-05 Thread Bob Arnott
Ankit Pancholi wrote: Hey thanks a lot. Changing classpath to servlet.jar helped. Can you tell me the argument type for check box. I tried Boolean considering it as on or off but it didn't work. Try boolean, not Boolean... -- Bob Arnott

RE: javascript

2005-07-06 Thread Bob Arnott
something like: bean:define id=onClickUrljavascript:location.href='html:rewrite page=/portfoliomgmt /'/bean:define html:button property=Create value=Create styleClass=NPIButton onclick=%=onClickUrl% / Cheers, -- Bob Arnott

RE: javascript

2005-07-06 Thread Bob Arnott
, then use: html:rewrite action=/portfoliomgmt / http://struts.apache.org/userGuide/struts-html.html#rewrite -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: trouble passing multiple parameters using html:link

2005-06-23 Thread Bob Arnott
=storeInfo scope=pageClick Here/html:link See - http://struts.apache.org/userGuide/struts-html.html#link# Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tiles: How to nest attributes! Is it possible?

2005-06-07 Thread Bob Arnott
/table page-left.jsp and page-right.jsp are just the content of the page you want to display. I hope this helps. Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Tiles woes

2005-06-02 Thread Bob Arnott
/ /definition Any help anyone can give me with this would be much appreciated. Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
Martin Gainty wrote: Bob- assuming you set userLocale to english north america table bgcolor=#d0d0d0 cellspacing=0 cellpadding=5 border=0 width=100% tr td center h2 fmt:setLocale value=%=userLocale%/ fmt:bundle basename=com.abcbank.example.ApplicationResources fmt:message key

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
bundle, I'm using JSTL not the Struts bean taglib. I want to know how the fmt:message / tag will pick up the resource bundle key under Globals.MESSAGE_KEY for each module while in a tiles template. Cheers, -- Bob Arnott Software Developer Autonomy Systems Ltd. Cambridge Business Park Cowley

JSTL fmt:message with modules

2005-05-25 Thread Bob Arnott
for modules...? Can anyone shed some light on how I get this to work...? Thanks, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Please wait page

2005-04-07 Thread Bob Arnott
, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: status messages in html:link tag

2005-04-01 Thread Bob Arnott
Fumo, Vince wrote: ok follow-up and I'm sure this one will take 2 seconds to answer.. part 1) is there a JSTL way to do the bean:define? Probably, but I've not used JSTL... part 2) What does it mean when the status message from the below code by Bob comes out as a literal (i.e.. %=rollOverText

Re: status messages in html:link tag

2005-03-31 Thread Bob Arnott
something like this - bean:define id=rollOverText type=java.lang.Stringbean:message key=my.key //bean:define html:link href=http://www.google.com; target=_blank onmouseover=window.status='%=rollOverText%'; return true;... -- Bob Arnott

RE: Placing message beans inside other tages

2005-03-10 Thread Bob Arnott
://struts.apache.org/userGuide/struts-html.html#img html:img srcKey=my.image / Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to handle Dates?

2005-02-25 Thread Bob Arnott
own tag to format dates before I came across the Jakarta Taglibs. You could try the Date/Time taglib if you don't want to use JSTL. http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html Cheers, -- Bob Arnott

Re: Question about authentication

2004-08-25 Thread Bob Thomas
Hi, I'm fairly new to Struts, so if I'm wrong here, I hope the more experienced will correct me. If you extend the 'org.apache.struts.action.RequestProcessor' (or the 'org.apache.struts.tiles.TilesRequestProcessor' if you're using Tiles), then you can simply override the

Re: Tiles and paths

2004-06-22 Thread Bob Thomas
/myApp/WEB-INF/lib/myJar.jar!/com/mycompany/resource/gif/logo.gif (No such file or directory) The file is actually there, but it can't find it. Any ideas? Thanks in advance, Bob mike [EMAIL PROTECTED] wrote: For my part, this is a big bugaboo that continually causes problems in all sorts

Tiles and paths

2004-06-21 Thread Bob Thomas
directory which contains the layout JSP. It's acting as if the JSPs are in the parent directory with the layout JSP, instead of the child directories where they actually are. Does anyone know what's happening? Thanks in advance, Bob - Do you Yahoo

Re: Tiles and paths

2004-06-21 Thread Bob Thomas
/21/2004, Bob Thomas wrote: I have JSPs that work fine using images, stylesheets, etc. from other directories. However, when I put those same JSPs into tiles, the JSPs can no longer find the images, stylesheets, etc. unless I change the paths to those images, etc. These JSPs are in child

Tiles problem

2004-06-16 Thread Bob Thomas
, Bob - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.

Re: Tiles problem

2004-06-16 Thread Bob Thomas
Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Bob Thomas To: Sent: Wednesday, June 16, 2004 3:23 PM Subject: Tiles problem When I do this ... ... I get the following error message

Re: Tiles problem

2004-06-16 Thread Bob Thomas
:26 PM 6/16/2004, James Mitchell wrote: Did you configure an error page in your web.xml? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Bob Thomas To: Sent: Wednesday, June 16, 2004 3:23 PM Subject: Tiles

Re: Tiles problem

2004-06-16 Thread Bob Thomas
Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Bob Thomas To: Struts Users Mailing List Sent: Wednesday, June 16, 2004 3:34 PM Subject: Re: Tiles problem We have an error 404 page: 404 /error.jsp I'm not sure why

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay, Have you looked into JSTL's choose tag? core:choose core:when test='${ empty requestScope.activeMenu || requestScope.activeMenu == displayHome}' tr class=Selected td class=LeftNavigation bean-el:message key=navigation.left.home/ /td /tr

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay, JSTL is packaged with the Struts 1.1 release. So you should have the jar file availablejust pull it into the web-inf\lib. I also prefer to make sure my application has the complete library set. Hope this works for youif you need any points be more than willing to assist.