Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Bob Jacoby
7;from' is some 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 - Rep

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 fa

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

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 p

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: Welcome, However, th

s2 transferring data from form to list backed property

2007-06-07 Thread bob
s 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-ma

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 distri

RE: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread Bob Buffone
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
se.service(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-c

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 9.7

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

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. Mayb

[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 cod

[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 tim

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 h

[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 with

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 ahea

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

Re: [s2] file upload causing param problems

2007-01-31 Thread bob
more, 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 PROT

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

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 java.l

[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] 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 t

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 ma

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! - http://

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 all

[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; th

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

2007-01-29 Thread bob
? I usually get IllegalStateException 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:>>

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

2007-01-29 Thread bob
blem or a struts2 problem. 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 Dispat

Re: JSTL toUpperCase

2007-01-24 Thread Bob Arnott
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> ... -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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 Harp

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

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. Wendy Smoak-3 wrote: > > On 8/28/06, Mead, Robert F (Titan) @ TITAN <[EMAIL PROTECTED]> wrote: > >> > property="someProp"> >> >> The Struts libraries are intellig

RE: Possible to programmatically create and use tags?

2006-06-26 Thread Bob Carpenter
e to take two passes to produce 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: struts tags here Bob Carpenter <[EMAIL PROTECTED]> wrote: Hi, Is it possible to programmatically create HTML blocks that incl

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" %> <%@

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

2005-11-29 Thread Bob Arnott
Stanislav wrote: [snipped...] You can't embed tags within tags... Try something like: Alternatively, use an action to populate the form bean. Cheers, -- Bob Arnott - To unsubscribe, 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
ester 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-ma

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

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

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

2005-09-16 Thread Bob Arnott
ge pole 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

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 &quo

RE: javascript

2005-07-06 Thread Bob Arnott
> but the problem is .do missing ... If you want the .do bit to automatically be appended for you, then use: 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: javascript

2005-07-06 Thread Bob Arnott
.. Off the top of my head try something like: javascript:location.href='' Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: trouble passing multiple parameters using

2005-06-23 Thread Bob Arnott
quot;storeName",param2); >pageContext.setAttribute("storeInfo", params); > %> > > paramName="storeInfo" scope="page"> Click Here > You want to specify the Map under the attribute &qu

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

2005-06-07 Thread Bob Arnott
glib uri="http://struts.apache.org/tags-html-el"; prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-tiles-el"; prefix="tiles" %> ;" /> ;" />

Tiles woes

2005-06-02 Thread Bob Arnott
ontains what I expect, i.e. /tiles/left-right-split.jsp, but it's just not being displayed. Am I totally barking up the wrong tree with this? Can you build pages with tiles like this, or are you supposed to o it via multiple definitions like: Any help anyone can give me

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
> obviously, or there will be nothing to display. Here is > an example of displaying the messages: > > > > > > > > > Anyone else?Martin I'm not trying to display a different internationalised bundle, I'm using JSTL not the Struts bean taglib. I want to know how the tag

RE: JSTL fmt:message with modules

2005-05-26 Thread Bob Arnott
Martin Gainty wrote: > Bob- > assuming you set userLocale to english north america > border="0" width="100%"> > > > > >basename="com.abcbank.example.ApplicationResources"> > > > > > > > > so in

JSTL fmt:message with modules

2005-05-25 Thread Bob Arnott
can put a context param in the web.xml: javax.servlet.jsp.jstl.fmt.localizationContext ApplicationResources But Shirley this wont work for modules...? Can anyone shed some light on how I get this to work...? Thanks, -- Bob Arnott

Re: Please wait page

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

Re: status messages in 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 ? 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.. <%=rollOverTe

Re: status messages in tag

2005-03-31 Thread Bob Arnott
;%>';return true"> Off the top of my head, you could try something like this - http://www.google.com"; target="_blank" onmouseover="window.status='<%=rollOverText%>'; return true;">... -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Which stream to use for a new suite of applications

2005-03-21 Thread Bob Arnott
to group form items, while another uses tags with border styles set. Cheers, -- Bob Arnott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Placing message beans inside other tages

2005-03-10 Thread Bob Arnott
sing the > tag. > > I thought that this should work > > > > But i get the as string > and not as a the message itself. Use the srcKey attribute on the tag to specify the property in your resource bundle that you want to use: http://struts.apache.org/userGuide

RE: How to handle Dates?

2005-02-25 Thread Bob Arnott
object ? I wrote my 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

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 'processPreprocess(.

Re: Tiles and paths

2004-06-22 Thread Bob Thomas
a-tomcat-5.0.18/webapps/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 cau

Re: Tiles and paths

2004-06-21 Thread Bob Thomas
ike At 07:18 AM 6/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,

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

Re: Tiles problem

2004-06-16 Thread Bob Thomas
tchell 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: > >

Re: Tiles problem

2004-06-16 Thread Bob Thomas
ve a stack trace? At 12: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 - >

Re: Tiles problem

2004-06-16 Thread Bob Thomas
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: > jav

Tiles problem

2004-06-16 Thread Bob Thomas
When I do this ... ... I get the following error message: java.lang.IllegalStateException: Cannot forward after response has been committed What am I doing wrong? Thanks in advance, Bob - Do you Yahoo!? Take Yahoo! Mail with you

Running Multiple Modules in Web Logic 8.1 sp2

2004-05-05 Thread Butash, Bob
We are running struts 1.1 with tiles and multiple modules. We have been running our application without errors in Weblogic 7.0 sp4, but after upgrading to weblogic 8.1 sp2, our application is having trouble finding non default struts modules. For example, our login page is in a globalelements mod

RE: Question about logic:iterator, indexId and hidden fields

2004-04-06 Thread Butash, Bob
Here is a sample: Some HTML Stuff here Hope this helps -Original Message- From: Eric Hodges [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 12:30 PM To: Struts Users Mailing List Subject: RE: Question about logic:iterator, indexId and hidden fields Does anyone know

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. -Orig

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? Hope this helps -Original Message- From: Glanville, Jay [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004