Like Neil suggested, use "attrib.length()" The extra parens cause OGNL to
call getAttrib().length() rather than getAttrib().getLength().
(*Chris*)
On Mon, Nov 16, 2009 at 8:08 AM, RogerV wrote:
>
>
>
> Kawczynski, David wrote:
> >
> > For this example pretend your field "firstname" has a max
Did you either set your appInterceptors stack to be the default stack, or
define the actions you're testing with to use the appInterceptors stack
explicitly? Otherwise, you're actually just using the defaultStack.
(*Chris*)
On Mon, Nov 16, 2009 at 12:34 PM, Oscar wrote:
> Hi to all. I'm devel
Unfortunately the same cannot be said for OGNL. I spent most of Friday
going through the interwebs archives and finding out that one major sticking
point in my architecture (and all of yours) is that OGNL synchronizes just
about everything. I spent about 6 hours going through the code and removin
I assumed they were using the postal abbreviation for the state of Georgia
in the US.
(*Chris*)
On Sun, Nov 22, 2009 at 5:02 AM, Antonio Petrelli <
antonio.petre...@gmail.com> wrote:
> 2009/11/21 Martin Gainty :
> >
> > Buona-sera Antonio
> >
> > ga is nice but i've heard italy has more sunny d
bit slower at arithmetic, meh. The UEL plugin is
> working better than I expected, so I will try to get it out of the
> sandbox for the next release (whenever that is).
>
> musachy
>
> On Sat, Nov 21, 2009 at 4:53 PM, Chris Pratt
> wrote:
> > Unfortunately the same can
Isn't ses.get("context") going to always return null the first time thru?
(*Chris*)
P.S. You should look at using an Interceptor for this check. This type of
situation is exactly what they were invented for.
On Sun, Nov 29, 2009 at 5:54 PM, Nguyen Xuan Son wrote:
> dear all
> I have the C000
While you're absolutely correct that the preferred method of getting to the
session attribute map is by implementing the SessionAware interface, calling
ServletActionContext.getContext().getSession() (as Nguyen did) will give you
the Map.
And you are also correct that if you actually need to get h
java.security.MessageDigest
(*Chris*)
On Sun, Nov 29, 2009 at 8:34 PM, Nguyen Xuan Son wrote:
> Dear all
> i would like to encrypted the password into sha1 code
> although I tried to search whether is there any class that I can simply use
> as i did in PHP (just simply use the method sha1(stri
i got the
> result:
> 124-74-141-9-202-55-98-175-97-229-149-32-148-61-194-100-148-248-148-27
> but it looks different from what i've made by using PHP method:
> ?2S?j?k?-Jo?=? ???A?? J??v!??3?Hm?F?? ?? ?^??? y~??? Td
> is there any problem
>
> 2009/11/30 C
if you are returning "success" (or SUCCESS), then you need to define login.jsp (or, since it's the
default you could just define login.jsp).
What you defined will only work if you return "input" (or INPUT) from your
execute or if you action is returning from the input() method.
(*Chris*)
On Sun,
session already and redirect the user to home.jsp page
> I really dont know how to solve that with only the struts.xml file
> thank you very much
>
> 2009/11/30 Chris Pratt
>
> > if you are returning "success" (or SUCCESS), then you need to define
> > > typ
forceAddSchemeHostAndPort="true"
(*Chris*)
On Fri, Dec 4, 2009 at 9:54 AM, wkbutler wrote:
>
> I know this is kind of a silly question. Does anyone know if there is a way
> to get the Struts2 'a' tag to emit an absolute URL? Silly or not, I can't
> think of any reason for it not to support th
We use DisplayTag, http://www.displaytag.org/
(*Chris*)
On Wed, Dec 9, 2009 at 7:44 AM, jvsrvcs wrote:
>
> We need to pull a large amount of data from a database and display in a
> table.
>
> We would like, on click of a hyperlink for a submission to happen to go to
> the server to fetch the n
We use jQuery to add that functionality.
(*Chris*)
On Thu, Dec 10, 2009 at 8:04 AM, jvsrvcs wrote:
>
> Thanks for the link. I have some simple demos working. Now we need
> onClick,
> onHover etc on some items in the row. I tried a few things but nothing
> works.
>
> Is it possible to take a
Give your displaytag a class of it's own (something like "displaytag"), then
prefix all your css entries with ".displaytag" so that they only act on
elements within the DisplayTag.
(*Chris*)
On Fri, Dec 11, 2009 at 5:16 AM, Nguyen Xuan Son wrote:
> dear all
> im using the displaytag
> however,
You might have more luck posting this on the DisplayTag user list.
(*Chris*)
On Wed, Jan 6, 2010 at 8:29 AM, Saeed Iqbal wrote:
> The titleKey is not working when display:column tag is closed outside of
> its
> declaration body. When it has some lines in it to display in table. It
> doesnt wor
We use DisplayTag (http://www.displaytag.org), it works pretty well.
(*Chris*)
On Wed, Jan 6, 2010 at 3:28 PM, Sergio
wrote:
> Hi, people, how can i show a table into a jsp from the struts action? Are
> there a simple method for doing that? I've tried with java collections into
> the action and
On Wed, Jan 6, 2010 at 4:12 PM, Frans Thamura wrote:
> can share how the struts2 work with display tag
>
>
> sorry never use this also, how the display tag work with List when we
> submit the grid
>
> F
>
>
>
>
> On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt
&
still need the glue
>
> usually i create a private xxx List, and will be passed to the list
>
> how integrate the list $xxx with the display tag?
>
> thx
>
>
> On Thu, Jan 7, 2010 at 7:25 AM, Chris Pratt
> wrote:
> > It's just a standard JSP Tag Library. Because Str
Maybe this will clear things up. This is a working example from our site:
No Users
Found
Reset
Password
(*Chris*)
On Wed, Jan 6, 2010 at 5:00 PM, Chris Pratt wrote:
> In your action, add a getList() method that returns the list generated
You can refer to the DisplayTag documentation about what collections they
support, there are quite a few. I usually use a java.util.List of
JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to
get that data from the database into a structure that can be displayed.
As for your
Delete
> 62.
>
>
> 2010/1/7 Frans Thamura
>
> > can share how the struts2 work with display tag
> >
> >
> > sorry never use this also, how the display tag work with List when we
> > submit the grid
> >
> > F
> >
We use Spring (and Spring-LDAP) for that layer. It works great, manages all
our DAO's and their resources, and then injects them into the Actions as
needed.
(*Chris*)
On Thu, Jan 7, 2010 at 10:06 AM, Jasvinder S. Bahra <
bbdl21...@blueyonder.co.uk> wrote:
> Does anyone know of any techniques t
I'm not positive but you might try:
(*Chris*)
On Thu, Jan 7, 2010 at 4:09 PM, Sergio
wrote:
> Sergio escribió:
>
> Chris Pratt escribió:
>>
>>> You can refer to the DisplayTag documentation about what collections they
>>> support, there are quite a f
Good luck, and let us know how it goes.
(*Chris*)
On Thu, Jan 7, 2010 at 3:44 PM, Jasvinder S. Bahra <
bbdl21...@blueyonder.co.uk> wrote:
> We use Spring (and Spring-LDAP) for that layer. It works great, manages
>> all
>> our DAO's and their resources, and then injects them into the Actions as
That might work for Set's where order isn't important, but how would you
populate a Liist? I've never had good luck there.
(*Chris*)
On Wed, Jan 20, 2010 at 5:18 AM, Steven Yang wrote:
> simply loose the "[n]" just have all fields with name "middleNames"
>
> On Wed, Jan 20, 2010 at 8:34 PM, M
As far as I know the Struts-Tiles plugin supplied with Struts 2.1.8.1 does
not support Tiles 2.2 (or 2.1 for that matter).
(*Chris*)
On Thu, Jan 28, 2010 at 11:15 AM, Emi Lu wrote:
> Good afternoon,
>
> Tiles2.2.1, Struts 2.1.8.1, Spring 2.5.6, tried simple example, but always
> got the follow
Yes, I believe that is the case. If you use the Java Templates plugin it
switches the Templating Engine to Java. Since there are no themes defined
in the Java Template Engine other than simple, you're out of luck if you
want to mix themed and non-themed content.
(*Chris*)
On Fri, Feb 12, 2010
Frans,
Saeed Iqbal posted
http://code.google.com/p/remove-registration/recently. I haven't had
a chance to look into it, but have been meaning to.
(*Chris*)
On Sun, Feb 28, 2010 at 1:56 PM, Frans Thamura wrote:
> hi all
>
> anyone working with facebook connect, may be can share the code :)
If I had to make a guess, I'd say the font you're using doesn't
support the Euro symbol. But, that's just a guess.
(*Chris*)
On Tuesday, March 9, 2010, CRANFORD, CHRIS wrote:
>
> I had defined in my applicationMessages.properties a currency string
> format as follows:
>
> format.currency={0,nu
I'm seeing some weird behavior in ActionSupport.getText() that is causing me
some problems in Struts 2.0.14. From the docs (and my previous experience),
getText() retrieves entries from the resource bundle's associated with the
application. But for some reason, in my current instance it's trying
It's in an XML file, so you need to use XML escaping, not C/Java escaping.
(*Chris*)
On Wed, Mar 31, 2010 at 8:41 AM, seeking_solution wrote:
>
> In struts I have regular expression for validating email like this -
>
> EMail
>
>
> ^([a-zA-Z0-9]([\w\.-]*[a-zA-Z0-9])*[...@[a-za-z0-9]([\
I'm trying to use the OGNL support in Struts 2.0.14 to set some parameter
values in the jFreeChart plugin's chart result type. But I keep getting
errors because it appears to be expecting all properties to be Strings, even
if the OGNL doesn't return a String. I'm using:
user
What is it that calls your customized set method? If it's form parameter
data, move the prepare interceptor below the params interceptor in your
interceptor stack.
(*Chris*)
On Thu, Apr 1, 2010 at 11:04 AM, jayakumar ala wrote:
> Hi All,
> I am new to struts2 and need small help on how i can
Unfortunately, we're not up to 2.1.8 yet. And this really struck me as more
of an OGNL problem of not being able to pass on an int as an int than a
plugin problem.
(*Chris*)
On Thu, Apr 1, 2010 at 2:29 PM, Martin Gainty wrote:
>
> you can get/string widths with struts-2.1.8 ChartResult
>
>
>
I've used Spring-Web Services along side a Struts 2 app and it worked fine.
(*Chris*)
On Sat, Apr 3, 2010 at 9:33 PM, Frans Thamura wrote:
> hi
>
>
> must we create an axis-plugins for struts2 first, or u can give me an
> opinion
>
> because my head said we must go to plugins result model for
a way for
Struts 2 to serve WS directly, but until then, this works fine.
(*Chris*)
On Sat, Apr 3, 2010 at 11:31 PM, Frans Thamura wrote:
> hi chris
>
>
> is it on SpringMVC or on Struts2,
>
> can share more detail
>
> F
>
> On Sun, Apr 4, 2010 at 12:30 PM, Chris P
> we here split the springMVC and S2 project,
>
> how to share security etc?
>
> F
>
> On Sun, Apr 4, 2010 at 2:02 PM, Chris Pratt
> wrote:
>
> > Well Spring WS is an extension of Spring MVC, so it's kinda both. I use
> > Struts 2 for all my web traffic
I'm not sure if this will work everywhere, but it works in Resin. If
you set your to index.action and put an empty (ie 0
length) file named index.action in the root directory of your war
file. When the server gets the request, it first checks to see if the
request matches a known resource, if n
The problem is that many servlet containers won't even execute the filter
chain unless there's a match. And http://www.domain.com/path doesn't
inherently match index.html. So it looks to see if there is a file matching
the ready to be dispatched. If so it starts the chain and
the filters get ex
How'd it go when you put an empty default.action file in the directory?
(*Chris*)
On Wed, Apr 14, 2010 at 10:54 PM, Burton Rhodes wrote:
> I'm not sure the default action solves the problem.
>
> I am put this in my struts.xml file:
>
>
>
> It appears that it only loads Login_show if a user ty
I think this is the preferred method of obtaining the Configuration object:
/**
* Struts: Inject the Struts Configuration for looking up the proper Action
*
* @param configuration The Struts Configuration
*/
@Inject
public void setConfiguration (Configuration configuration) {
You may want to think about using:
invocation.getStack().getContext().put(MAGIC_KEY,getStuff());
instead of:
invocation.getStack().set(MAGIC_KEY,getStuff());
For the sake of argument, I'm going to assume that MAGIC_KEY is set to the
String "magic". The first example above makes #magic availabl
If you search the forum, someone posted an Interceptor (quite a while ago)
that saves the Action/Field Errors/Messages in the Session so that they will
survive a redirect. It could easily be extended to do what you require.
(*Chris*)
On Wed, May 26, 2010 at 5:45 AM, szerintedmi wrote:
> Hi Ev
this interceptor make sense?
Thanks,
Peter
-- Forwarded message --
From: Alex Rodriguez Lopez
To: use...
> Hi Everybody,
>>
>> I would like to ask some advice implementing PRG pattern with struts2
>> (usi...
Em 26-05-2010 16:57, Chris Pratt escreveu:
If you search the
Yes, CookiesAware is meant to inject the cookies, individually or the entire
Map, into the action. It is effectively read-only. As far as I know the
only way to add a cookie is to get the HttpServletResponse (using
ServletResponseAware would be the suggested method) and adding it using
ServletRes
That should work great, another option is just to define a singleton bean in
your Spring configuration. It will get loaded with the container and
initialized automatically. Either method should do what you want.
(*Chris*)
On Fri, Jun 25, 2010 at 12:24 PM, Dale Newfield wrote:
> Oh, and I for
Yup, all that is possible with Tiles, especially with the new wildcard
support in 2.1+. We had the head modification stuff working well in Tiles
2.0 and were able to have separate layouts for mobile vs desktop by using
the new wildcard support. I'm in the early stages of learning sitemesh, so
I c
Not sure but it looks like there's an invalid character in there. Could
that be fouling things up?
(*Chris*)
On Thu, Jul 1, 2010 at 1:59 PM, Chris Miles wrote:
> Does anyone have any ideas? Tearing my hair out with this.
>
>
> Chris
>
> - Original Message - From: "Chris Miles"
> To:
On my screen it looks like there's a British pound sign in the text, which I
believe is outside the ASCII characters set, I'm just wondering if that
could be causing the trouble. It's definitely something I've never tried
myself.
(*Chris*)
On Thu, Jul 1, 2010 at 2:14 PM, wrote:
> Hi Chris. Th
Define something like:
format.currency={0,number,currency}
In your applications.properties file, then use:
HTH
(*Chris*)
On Sat, Jul 10, 2010 at 5:53 AM, Chris Miles wrote:
> Hi
>
> If I am displaying a Double to a JSP page what is the recommended way to
> format this is as a currency to
Look at the instead, it automatically handles maintaining
state.
(*Chris*)
On Tue, Jul 13, 2010 at 9:04 AM, sharath karnati wrote:
> Hi All,
>
>Say I'm declaring in
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
It's being called twice because, since you defined it as scope=singleton,
Spring is creating a singleton instance for you automatically on start-up.
Then your code is creating another instance in your getStartupService()
method. You don't need to explicitly instantiate one, just let Spring
inject
currency={0,number,currency}
>
> In my JSP I have value="product.price"/>
>
> Without the s:text the price is displayed (a Double).
>
> When the s:text is included all I get is: {0}
>
> thanks
>
> Chris
> - Original Message - From: "Chris
oint.
(*Chris*)
On Tue, Jul 13, 2010 at 12:36 PM, hisameer wrote:
>
> So basically you are saying is that remove scope="singleton" right?
>
>
> Chris Pratt wrote:
> >
> > It's being called twice because, since you defined it as scope=singleton,
> >
nit-method="init". The init
> method is called twice. Not able to figure that out.
>
> I know something is messed up. It should not be doing that. But I am not
> able to figure that out. I hope you understand my confusion.
>
> Sameer.
>
>
>
>
> Chris Pratt
getProduct
>
> Is there places where different mechanisms need to be used here? I dont
> understand the inconstistant result I now get.
>
> Nothing in the log files on TRACE
>
>
> Thanks
>
> Chris
> - Original Message - From: "Chris Pratt"
£ name="format.currency">
>
>
>
> Chris
> - Original Message - From: "Chris Pratt"
> To: "Struts Users Mailing List"
> Sent: Tuesday, July 13, 2010 11:04 PM
>
> Subject: Re: Currency Formatting
>
>
> puts t
it for learning and
> trial sake and it fails with the line
>
> value="price"/>
>
> I can put
>
>
>
> and it displays the value fine.
>
>
> Chris
>
> - Original Message - From: "Chris Pratt"
> To: "Struts Users Mai
t point. I get the following:
>
> This is a product name
>
>
> And nothing else for the rest of the page. Nothing in the logs. Nothing :)
>
>
> Chris
> ----- Original Message - From: "Chris Pratt"
> To: "Struts Users Mailing List"
> Sent:
My bet would be that the .jspf extension is not mapped to be processed by
the JSP Processor in your Servlet Container. I think .jspf is just a naming
convention, it doesn't have any intrinsic meaning to the container, so if
you want to continue putting your fragments in .jsp files, they should wor
>>
>> So no matter what action I call I can forward to the shop page as the view
>> and include the custom view page which in the above example is the
>> getProduct jsp page.
>>
>> For testing I just used the following action result to go straight to the
>
reated. Bit much to
> ask. If it helps yourself or anyone I can make up a dummy project showing
> the issue to take out the leg work?
>
>
> Chris
>
> - Original Message - From: "Chris Pratt"
> To: "Struts Users Mailing List"
> Sent: Thurs
Are you intending for these values to come from your application resource
bundle? That's where getText() gets it's values from. I believe it it
doesn't find anything it just returns whatever is passed to is, which might
be why you're seeing what I expect you are expecting.
If you are actually tr
Not unless you sprinkle a couple of 's in there as well.
(*Chris*)
On Tue, Jul 20, 2010 at 1:08 PM, Johannes Geppert wrote:
>
> does it work when you define it this way?
>
>
> example1
>contents
>
>
> Johannes
>
>
> luy wrote:
> >
> > Good morning,
> >
> > It seems that "s:param" doe
It wasn't a performance concern, it was a security concern. Since the OGNL
and JSP EL were processed by separate processors, it's possible to have one
transform user code to the other which is a very simple way of allowing an
end user to inject executable code into your system.
(*Chris*)
On Fri
The only things I can think of to check would be, do you have the
struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you
set the struts.objectFactory property to "spring"?
(*Chris*)
On Sun, Oct 17, 2010 at 7:34 PM, cellterry wrote:
>
> Hello all,
>
> I get a bug in fire
As far as I'm aware, there's not. But it wouldn't be hard to write one.
You could use the ParameterInterceptor as a pattern, but have it take it's
data from the headers rather than the parameters and you'd be done in 1/2
hr. You could get fancier, to make sure Parameters and Headers with the
same
I downloaded the book Jordi recommended to my Kindle and it looks like a
very good read. That coupled with looking at how Google & FaceBook did
things and I think I'll be confident enough to design my own API.
(*Chris*)
On Thu, Oct 28, 2010 at 5:08 PM, Frans Thamura wrote:
> The idea wanna to
It looks like you extended the struts-default instead of the tiles-default
and you didn't define the tiles result type yourself. Try changing the
package declaration to extends="tiles-default"
(*Chris*)
On Tue, Nov 2, 2010 at 3:49 AM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
>
Provider.java:264)
>> at
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>> at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
>> at
com.opensymphony.xwork2.config.C
If you are talking about per Java package, not that I know of. If you mean
per Struts package, same thing. But if you mean per jar file, there is a
way. If you set your contextConfigLocation to something like
"WEB-INF/applicationContext.xml,classpath*:pluginContext.xml" then Spring
will load you
You can either update the standard theme template, create your own theme
template, or use CSS to style the bullet points to look any way you would
like.
(*Chris*)
On Wed, Nov 17, 2010 at 9:05 AM, Satheesh Kannan A B <
satheesh.kan...@hcl.com> wrote:
> Hi,
>
> I need to display the field error m
Sorry, I assumed it was Struts 2. I didn't remember Struts 1 automatically
putting the errors in lists, did it?
(*Chris*)
On Wed, Nov 17, 2010 at 9:18 AM, Dave Newton wrote:
> On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote:
> > I need to display the field error message below each
Maybe try http://lmgtfy.com/?q=CSS+Style+UL
(*Chris*)
On Wed, Nov 17, 2010 at 9:21 AM, Satheesh Kannan A B <
satheesh.kan...@hcl.com> wrote:
> Hi,
> I have configured in struts.properties as theme=simple.
> I don't know where to define list-style-type. Please provide me some
> examples.
>
> Tha
Either use ajax or submit the page request, there's no other good way to
access a server side resource from the client side.
(*chris*)
On Nov 30, 2010 1:15 PM, "Anjib Mulepati" wrote:
> Struts 1.3.8
>
> I have text box and button in the JSP page with the function on
> onCLick() event.
>
It doesn't make much of a difference what you return after you call
invocation.invoke(), but since you can opt not to call it and just return
"login-required" or "password-reset", you can use it to control the flow of
the application, just make sure you do it before you call invoke =8^)
(*Chris*)
If you just need access to the parameters from the action, you can use:
String resource =
invocation.getProxy().getConfig().getParams().get("AuthoritationInterceptor.resource");
I've used this several times to get parameters from the configuration, but I
usually put the parameters on the action i
I don't think it would be a global fix for all forms, but one way to fix the
problem would be to use an interceptor that would make your user object
available to your view using a context parameter rather than an action
attribute. I.e. something like:
public class UserInterceptor extends Abstract
You should be able to initialize the objects in the interceptor instead, you
could even retrieve them from the request or some other method in the
action. Probably a more comprehensive fix than trying to white-list
everything by hand.
(*Chris*)
On Fri, Dec 17, 2010 at 6:54 AM, Altenhof, David A
If the bean already exists, struts doesn't have to set it. It just has to
modify the retrieved bean.
(*Chris*)
On Fri, Dec 17, 2010 at 9:48 AM, wrote:
> I agree S2 will create the bean (if null) but it can't set a property that
> is private and has no accessible setter method.
>
> P.S. What a
Maybe if the OP moves the bean creation out of the prepare() method (so the
bean isn't available during parameter injection) and then retrieves it at
the start of validate() or execute() that might solve the problem.
(*Chris*)
On Fri, Dec 17, 2010 at 10:05 AM, Chris Pratt wrote:
> If
I assume what you want to do is turn an action name into a URL. Here's what
I've used before, I'm not sure if there's a better way, but this was adapted
from code inside struts. You could put it in your action's super class to
make it more reusable, but because of the injection required it wouldn
his out
of my inheritance hierarchy, so do tell?
(*Chris*)
On Sat, Dec 18, 2010 at 12:14 PM, Dave Newton wrote:
> There's no reason it couldn't work in a "helper class", though; you can
> define arbitrary beans etc. inside the config.
>
> Dave
>
> On S
With an @Inject, the same way you can insert things like Strings or
> configuration values.
>
> On Sat, Dec 18, 2010 at 3:19 PM, Chris Pratt >wrote:
>
> > How would Struts know to inject the helper class? It wouldn't be
> creating
> > it, it would conceivably
Two ideas, provide your own wrapper around the HttpServletRequest that does
allow getting back the cookies (probably more work that it's worth), or add
the cookies as a request attribute that you can query to see which cookies
were added during this request. If it comes back null, you're the first
You might also need the executeResult="true" attribute on the
tag.
(*Chris*)
On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin
wrote:
> > I don't want to use a separate roundtrip for loading the jqGrid for
> two reasons:
> > 1. I want to handle the contents of the grid, and additional fields,
>
ding it (i.e. I think it should be in
> struts-json-tags).
>
> Jim
>
> -Original Message-
> From: Chris Pratt [mailto:thechrispr...@gmail.com]
> Sent: 04 January 2011 15:54
> To: Struts Users Mailing List
> Subject: Re: JSON Property
>
> You might also nee
; On Wed, Jan 5, 2011 at 2:47 AM, Chris Pratt
> wrote:
>
> > The "obvious" place to me would seem to be the Struts 2 JSON Plug-in,
> since
> > it handles all the other JSON duties for Struts 2.
> > (*Chris*)
> >
> > On Tue, Jan 4, 2011 at 10:3
(
> > https://issues.apache.org/jira/browse/WW-3553), but it doesn't seem to
> be
> > a very active project.
> > > I'm also confused by the fact that this page
> > https://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plugin
> > is bundled with
It seems to me that the minus sign in your expression might be being
confused by the OGNL parser. You might try renaming your variable to
something that is consistent with the Java bean naming convention and stay
away from arithmetic operands.
Maybe change
to
(*Chris*)
On Tue, Jan 11,
The Struts documentation can be pretty helpful here. Here's an excerpt from
http://struts.apache.org/2.1.8.1/docs/iterator.html (I changed the variable
names to match yours):
oddeven">
,
If you ne
from the second iterator, depends from the current
> item from the first list
>
> Something like:
>
>
>
>
>
>
>
> Thank you for your help,
> Mat
>
> -Ursprüngliche Nachricht-
> Von: Chr
not be $0.00 for Sequence 987654.
>
> Means ${ is not working for any error message.
>
> Parameter is passed currectly
>
> addActionError(getText("field.amount", new String[] { "Amount", "0.00",
> "987654"}));
>
> Any help would be greatly app
Here's a couple of the ways I handle it:
ingredients
401
500
factors
401
500
Then on the JavaScript side you need to check the xmlHttpRequest.status
field to see what you need to do, 200 means
Are you using this for generating emails from web applications? I developed
a tag library that allows you to generate text/html emails using JSP and it
works great with Struts/Tiles/Spring. (It would probably work with
Freemarker/Velocity as well, I've just never tried it)
(*Chris*)
On Sat, Jan
It should have a namespace attribute, like all the other tags with action &
method attributes, but I don't see it in the documentation. You might give
it a try, just in case it's just un-documented.
Otherwise, the more common way would be:
(*Chris*)
On Mon, Jan 31, 2011 at 10:59 PM, A
You might try . I'm not sure if it will work,
but OGNL has the ability to call methods by their full name. Also, if you
haven't overridden toString() you can just use which will
automatically call Authority.toString() which by default returns .name().
(*Chris*)
On Tue, Feb 1, 2011 at 5:03 AM,
To extend on this idea, instead of requiring all your actions to add a
getBtype(), you could use an interceptor that determine's the Browser Type
and sets a context attribute you could access using:
/${#btype}/Profile.jsp
(*Chris*)
On Tue, Feb 1, 2011 at 10:36 AM, Greg Lindholm wrote:
> You c
It sounds like what you're trying to do is a displaytag feature. You may
have more luck in their mailing list.
(*Chris*)
On Tue, Feb 1, 2011 at 12:57 PM, Emi Lu wrote:
> Dave,
>
> displaytag1.2 + struts2.2.1.1 + jfreechart.
>>
>>
>>Can display graph, but when using displaytag to o
1 - 100 of 651 matches
Mail list logo