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
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 - Rep
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
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
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
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
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
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
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 distri
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
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
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
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
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
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
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
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
>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
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
> 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
> 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!
--
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
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:
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,
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
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?
_
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
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
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://
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
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
?
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:>>
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
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]
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
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
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
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
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"
%>
<%@
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
, especially
public static String escapeSql(String str).
Cheers,
--
Bob Arnott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
> 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]
.. 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]
quot;storeName",param2);
>pageContext.setAttribute("storeInfo", params);
> %>
>
> paramName="storeInfo" scope="page"> Click Here
>
You want to specify the Map under the attribute &qu
glib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles-el"; prefix="tiles" %>
;" />
;"
/>
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
> 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
Martin Gainty wrote:
> Bob-
> assuming you set userLocale to english north america
> border="0" width="100%">
>
>
>
>
>basename="com.abcbank.example.ApplicationResources">
>
>
>
>
>
>
>
> so in
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
tion --> results page
Cheers,
--
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 ?
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
;%>';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]
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]
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
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
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(.
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
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,
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
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:
>
>
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 -
>
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
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
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
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
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
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
76 matches
Mail list logo