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
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
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
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 -
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
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:
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
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
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
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
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.
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
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
(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
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
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.
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
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.
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
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
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
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
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
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
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!
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
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
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:
, 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
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;
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
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! -
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
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
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?
.
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
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
;
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
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
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
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:
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
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
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]
, especially
public static String escapeSql(String str).
Cheers,
--
Bob Arnott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
-
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:
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
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
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
, 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]
=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]
/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
/
/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]
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
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
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]
,
--
Bob Arnott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
://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]
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
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
/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
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
/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
,
Bob
-
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
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
: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
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
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
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.
73 matches
Mail list logo