Hi Maurizio:
In this document:
http://struts.apache.org/2.2.1/docs/template-loading.html
It says the template should be searched in (in this order):
1, web app folder
2, class path
But i have read the Struts2.2.1 source code, it creates TemplateLoader
in a different order, as i described in my e
Trying to wedge all functionality into a single action will eventually
lead to problems, and/or hacks.
And interceptor stacks are *designed* to be customized: that's their
point. That's where application-wide behavior is supposed to live...
Not that a custom prepare interceptor is difficult, as me
Hi Dave:
Thank you very much for your suggestion.
I'd like to discuss a little more about this issue. Hope it don't bother you.
Let's think about a situation which i think it is very common in web app.
1, We need a page to insert/modify our data.
2, We need to display the input page, and inser
Here is my code:
function formatLink(cellvalue, options, rowObject) {
return "";
}
Terry.
Johannes Geppert wrote:
>
> great!
>
> can you contribute the sources?
> if possible i add this to the wiki.
>
>
> Johannes
>
>
>
> cellterry wrote:
It looks like:
1, Oracle's XML parser is chosen to parse your xml configuration file.
2, And it failed. (Don't know why and don't interest to know)
You can try to delete Oracle's XML parser
and use another one.
See this page:
https://issues.apache.org/activemq/browse/SM-169
for more information.
Is your production environment based on OC4J?
It's look like there is something wrong in your classpath.
It's just a guess, but I'd look at JXTransformerHandler class
(starting from here the
http://www.findjar.com/class/oracle/xml/jaxp/JXTransformerHandler.html)
--
Maurizio Cucchiara
@Adam
> and they were placed into WebContent\template\simple folder
you should start to investigate about your path correctness IMHO .
Struts usually finds freemarker template inside your classpath. In
order to enable struts to find your custom template file, you should
ensure that template files
Here is a javascript formatter I used when I tried this. I found the
solution hideously ugly and ended up going to a straight jQuery solution.
function makeButton(clickAction, text) {
return "" + text +
"";
}
Jason
On Tue, Oct 19, 2010 at 1:58 PM, Johannes Geppert
great!
can you contribute the sources?
if possible i add this to the wiki.
Johannes
cellterry wrote:
>
> Yes, it works!
>
>
> Johannes Geppert wrote:
>>
>> Hi Terry,
>>
>> I think this is this is possible, but only with some handmake
>> javascript. take a look at the custom formatters,
Yes, it works!
Johannes Geppert wrote:
>
> Hi Terry,
>
> I think this is this is possible, but only with some handmake
> javascript. take a look at the custom formatters, I think this
> is the right way.
>
> http://code.google.com/p/struts2-jquery/wiki/FormatGrid
>
> Johannes
>
>
> cellte
we use json here, and still dunno how to know that json that procude by
struts2 is 100% ok
F
On Wed, Oct 20, 2010 at 12:27 AM, Dave Newton wrote:
> How to validate XML with a schema?!
>
> JSON validation is a different issue; the only real project I know of
> at this point is JSON Schema, but
How to validate XML with a schema?!
JSON validation is a different issue; the only real project I know of
at this point is JSON Schema, but have never used it. Seems like it'd
be pretty easy to marshal up the JSON object and run it through an
existing object-based validation process, though.
Dave
still seeking information and how to for this
F
On Wed, Oct 20, 2010 at 12:16 AM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
> Why cannot you relay on dtd/schema validation?
>
> 2010/10/19 Frans Thamura :
> > yah..
> >
> > to make sure that the data produced is valid
> >
> > F
>
Why cannot you relay on dtd/schema validation?
2010/10/19 Frans Thamura :
> yah..
>
> to make sure that the data produced is valid
>
> F
>
>
> On Tue, Oct 19, 2010 at 10:09 PM, Maurizio Cucchiara <
> maurizio.cucchi...@gmail.com> wrote:
>
>> What kind of validation you're talking about? xml valid
Hi Wes,
Thanks for that information. It helped to confirm the way I was
thinking about the problem.It turns out that the customer has
tried out a scenario in which they omit the "execAndWait" interceptor,
and it appears to be working fine now with no new thread being
created, so the crisis has
With a lot of debugging, I think i have found what's wrong.
If you use the default setting,
In method [createTemplateLoader] of class
[org.apache.struts2.views.freemarker.FreemarkerManager],
Struts will create 3 TemplateLoader which is:
1,ClassTemplateLoader, which will load Template from class u
On Tue, Oct 19, 2010 at 8:07 AM, Phil Adams wrote:
> Hi Lukasz,
> Thanks for the information... I read about ExecuteAndWaitInterceptor
> but it seems as though that must create a new thread as well, since it
> also uses the BackgroundProcess class to execute the action, right?
> In this particula
yah..
to make sure that the data produced is valid
F
On Tue, Oct 19, 2010 at 10:09 PM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
> What kind of validation you're talking about? xml validation, input
> validation?
>
> It should be better if you provide some further details about
What kind of validation you're talking about? xml validation, input validation?
It should be better if you provide some further details about your scenario.
2010/10/19 Frans Thamura :
> maurizio
>
> right, i just thinking of it, but after see more deep, the soap envelope is
> to heavy weight
>
>
maurizio
right, i just thinking of it, but after see more deep, the soap envelope is
to heavy weight
but if we use XML and JSON, still dunno how to validate it
F
On Tue, Oct 19, 2010 at 9:57 PM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
> Do you mean something like expose a ki
Do you mean something like expose a kind of soap webservice through
rest plugin?
2010/10/19 Dave Newton :
> On Tue, Oct 19, 2010 at 2:57 AM, Frans Thamura wrote:
>> we have REST plugins, is it possible to implement SOAP on REST, so the
>> output is not XML or JSON, but a SOAP
>
> SOAP is XML--I'm
On Tue, Oct 19, 2010 at 2:57 AM, Frans Thamura wrote:
> we have REST plugins, is it possible to implement SOAP on REST, so the
> output is not XML or JSON, but a SOAP
SOAP is XML--I'm not really sure what you're asking either, I guess.
http://en.wikipedia.org/wiki/SOAP#Transport_methods
Dave
--
2010/10/19 Phil Adams :
> Hi Lukasz,
> Thanks for the information... I read about ExecuteAndWaitInterceptor
> but it seems as though that must create a new thread as well, since it
> also uses the BackgroundProcess class to execute the action, right?
> In this particular situation, I need to find a
Hi Lukasz,
Thanks for the information... I read about ExecuteAndWaitInterceptor
but it seems as though that must create a new thread as well, since it
also uses the BackgroundProcess class to execute the action, right?
In this particular situation, I need to find a way for the action's
execute() me
The theme is set to simple as was for struts 2.0.11
My struts.xml is very plain and i don't see it would help with this particular
issue.
My jsp contains the following
The revised templates were overriding the jar templates in 2.0.11 just not in
2.2.1 - no code changes have been ma
I don't understand your question clearly. Can you provide more detail on
the expected behaviour/outcome?
On 19/10/2010 8:57, Frans Thamura wrote:
hi all
we have REST plugins, is it possible to implement SOAP on REST, so the
output is not XML or JSON, but a SOAP
i just getting confuse about SO
I'm using a combination of empty extension and exclusions for static
content which works well now. Got pretty confused too at beginnning when
I changed to an empty extension though:
http://struts.apache.org/2.2.1/docs/static-content.html
in web.xml:
struts2
org.apache.struts2.
I use to do through spring framework
(http://static.springsource.org/spring/docs/2.5.x/reference/mail.html#mail-templates)
2010/10/18 Eric Nielsen :
> Is there a good/standard way to use FreeMarker (or Velocity) to
> template emails sent by a Struts2 application?
>
> I hacked up something that wor
28 matches
Mail list logo