in the result..
Hope that helps.
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dave Newton wrote:
Somewhat on-topic: we should really figure this out, enumerate go/no-go
use-cases, and write something up, since it comes up pretty frequently--I was
never able to reproduce that JIRA issue around this, but I'd sure like to put
this issue to rest w/ an easily-spewable wiki
oscar perez wrote:
One of the problems is that if in the returned AJAX content is included any
sx tag then if there is any javascript in the returned content this simply
dissappears. I tried all the combinations with executeScripts
separateScripts with no success however..
I've created
XML User wrote:
Hi,
How can I implement the URL mapping so that our URL will always look like
www.abc.com/products/toys/acbtoy It should not end with something like
abctoy.action OR abctoy.do.
Is there a way for making this happen?
If so then can you please let me know with code?
See
Griffith, Michael * wrote:
Jeromy,
Thanks for the replies.
In cases where I've needed this behaviour I've referenced the JSP
instead of a Tile.
Do you mean your result redirects to a JSP instead of a struts action?
MG
Not Redirect, DISPATCH to a JSP.
-lib.sourceforge.net/usage.html
In struts2, substitute the default JSON ContentTypeHandler with one that
uses jsonlib with your customized settings.
Hope that helps.
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED
that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jack Stuard wrote:
Hi, I've searched but maybe I don't have used the right term to this, I'd to
know if is possible to show a Tree, with some specific treenodes already
opened (or expanded) onload of a page in Struts 2 (stable version).
Thanks in advance.
Jack Stuard
Use a client-side
Hoying, Ken wrote:
I was able to update the href and formId via JavaScript and DOJO as
follows:
dojo.widget.byId('divId').href = 'myUrl';
dojo.widget.byId('divId').formId = 'myFormId';
This works fine as long as the form itself was not loaded infot the DIV
(divId). However, if myFormId is
to the new location by the container/struts2.
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to action is validated twice for the same
request or a new instance is not being created for each request (which
is bad, and only possible if you're using spring and have incorrect
spring config).
Hope that helps,
Jeromy Evans
can invoke a method directly to get the stack.
Hope that helps a little,
Jeromy Evans
PS. I don't think this is a good idea as it is may be vulnerable to
injecting OGNL expressions depending on how surveyResult.questionEntity
is set
Dave Newton wrote:
http://struts.apache.org/2.x/docs/dojo-submit.html
Put the notification message in a different div?
Dave
Yeah, use the indicator attribute to show/hide an image as show at the
top of that page. It looks better too.
Dave Newton wrote:
http://struts.apache.org/2.x/docs/dojo-submit.html
Put the notification message in a different div?
Dave
Yeah, use the indicator attribute to show/hide an image as per the
example at the top of that page. It looks better too.
extension
if (!name.contains(.)) {
return name;
}
}
}
return null;
}
regards,
Jeromy Evans
[source]
http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_11_1/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java?view=markup
the double comma. That means a blank (no extension), or .action
extension. The double-comma ensures blank isn't trimmed as whitespace.
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
, is that the Loading... text
overwrites the form prior to it's values being read. If so, set the
showLoadingText=false attribute on the submit button and this problem
is resolved. (you can verify this is the problem by testing in Firefox
before making the change)
Hope that helps,
Jeromy Evans
Francisco
Andy Law wrote:
There's nothing better than a good book though.
That's agreed!
What do you recommend? I have Kurniawan's Struts 2 Design and Programming
and Roughley's Practical Apache Struts2 Web 2.0 projects and Starting
Struts 2. None of them go into any kind of detail about this
but
if none are suitable then I'd probably create a custom ActionMapper that
exends the default but also looks for that param in the URI and returns
it in the parameter map of the ActionMapping.
Hope that makes sense.
regards,
Jeromy Evans
it with a CompositeActionMapper.
In Struts 2.1.x, use the NamedVariablePatternMatcher to pass parameters
through the namespace, as described in this thread:
http://www.nabble.com/REST-plugin-URL-syntax-td17855192i20.html
It can be used without the REST plugin/conventions.
regards,
Jeromy Evans
Frank W. Zammetti wrote:
Is it still the case, given the JDK 1.5 concurrency stuff, that you are
still not technically allowed to spawn threads in a J2EE container (per
spec guidelines)? Did the latest J2EE spec loosen that restriction maybe?
Hi Frank,
I don't know of any loosening of
Dave Newton wrote:
(Ignore the billing part--for some reason this message wasn't caught by my
filter and hit my inbox.)
Dave
I had the same issue because it was addressed to [EMAIL PROTECTED] not
[EMAIL PROTECTED] or Struts Users Mailing List
James - Yes, you need both the Struts 2
is to use a library
that provides this level of integration already (such as is available in
one of the Spring packages I believe).
regards,
Jeromy Evans
[EMAIL PROTECTED] wrote:
Hi Dave,
You can just create any class that extends the Thread object or implements the
runnable interface
is to use a third party filter. Acegi/Spring
Security is the most popular and probably the most flexible as it's
closely bound to your (Spring) Object Factory. There are other open
source filters available too that may suite you.
Hope that helps,
Jeromy Evans
Mike Watson wrote:
I should
holod wrote:
As I understood, I have to use dojo plugin (additional jar).
Please, tell me, is it possible to avoid usage of dojo plugin?
Seems like my problem can be solved:
if s:div/ would not send request automatically, when page is loaded, but
only on user mouse click, I would be happy
Mike Watson wrote:
What I actually return is a DefaultHttpHeaders with a 404 set.
getImage() returns an empty (not null) inputstream since there's no
content for the body.
You may need to return a different result type for the error case
(HttpHeaderResult or NullResult) so it only
Fini Decima wrote:
I'm posting here because I could not find a Web Master contact info:
I'll like to know when the Reporting Security Issues link was added
to the Struts home page.The link is under Support. Is it a recent
addition or has it been there for some time?
Subversion shows the
Can you please raise this in JIRA?
I think the key has always been evaluated but I'd have to check. I did
make some significant changes to this tag for 2.1.2 and may have
accidentally changed the behaviour.
I'd be very happy to turn off evaluation of the key as it wastes cycles
but would
anaeem wrote:
Can any one who has used ServletContextListener class, share their build.xml.
Thanks much
It's not a build.xml issue.
The Resource Not Found error implies your Container failed to start.
The log for the Container will contain an error message. In Tomcat this
may look
Mike Watson wrote:
Hi folks,
As mentioned in previous posts I'm using the REST plugin to serve
images and everything seems to work fine when the content exists.
However if I return an empty inputstream to StreamResult with a 404
response code I get the exception below.
Stepping through the
Burak Doğruöz wrote:
I don't think that it can be done with an ajax approach. With ajax or not,
concurrent requests for the same action name returns first action's result.
I tried this simple scenario with an action which outputs its query
parameter. I also added a thread.sleep in execute
profile (in
this case, for example, to remove locale files). It makes a massive
performance improvement by reducing the large number of GETs.
http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html
Hope that helps.
Jeromy Evans
via an ajax
framework. I would drop the frameset and replace it with a few s:div's
tiggered by s:submit's from the ajax theme. That's much easier than what
you're attempting and is what those tags are intended for.
Just my 2c.
regards
Jeromy Evans
Burak Doğruöz wrote:
Thanks for your response,
I think, even with an ajax approach, concurrent requests for same action
would result in unexpected output as these actions are stored by same action
name at background. So in fact this is not a presentation constraint but a
processing constraint.
{
uri.append(request.getRequestURI());
}
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dave Newton wrote:
--- On Sun, 7/20/08, Musachy Barroso [EMAIL PROTECTED] wrote:
There is a good chance that it is related to ng.filter I
would say.
Isn't that the filter we're supposed to use now though? Is it less of a drop-in
replacement than I assumed?
Thanks,
Dave
I'm
matthieu martin wrote:
Hello all.
I can't figure out what this message means, or even where does it come from.
I have no way to know which request returns this to me ... I'm lost.
Is anyone able to help me ?
Dojo uses a technique called IFrame I/O when uploading a file
asynchronously.
by the nested action's context and is
never restored afterwards, potentially causing problems for tags AFTER
the closing action tag.
I recommended you raise the issue in JIRA and not to use the s:action
tag as a component like this. It's only useful in the simplest cases.
regards,
Jeromy Evans
PS
Piotr Dzeviarylin wrote:
I Think I find the bug.
See here:
For the sake of completeness, does your form work in Firefox 2.x?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oleg Mikheev wrote:
Hi
And, where can I find the changes between Struts 2 and 2.1?
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
Release notes and migration guides are also a good start:
2.1.2:
Pierre Thibaudeau wrote:
But your statement about EL intrigues me. How would you do that in EL? Is
there some value available to EL in the request context?
simply ${pageContext.request.requestURI}
The benefit of EL is that your IDE (hopefully) understands it, which in
my opinion is
) instead of invoking your action.
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oleg Mikheev wrote:
Hi!
Will REST plugin replace JSON plugin in Struts 2.1?
To my mind JSON plugin was very REST-like, and I was
really hoping that it would evolve into something that
REST plugin claims to be.
Also, do REST and JSON plugins have anything in common?
They're not related except
Dave Belfer-Shevett wrote:
That fixed it. Is there a chance we can update the 'collections' page in the
struts docs to give information like this?
Great! Can you please post a comment to the relevant docs page so one
of the developers remembers to update it?
You're also welcome to
Mike Watson wrote:
BTW, if I want a controller to work in multiple namespaces do I need
to declare seperate packages in struts.xml instead of just relying on
the @Namespace annotation?
Thanks again for all your help.
Unfortunately when using Codeheind, you do have to create a new package
Paul Benedict wrote:
Does the CodeBehind plugin allow me to specify a default action for a
directory? So that way I can just do /dir instead of /dir/index.action? If
not, how can I do it? I want any directory to go invoke index.action
I am using Struts 2.0.11
Paul
No, that's a feature of
Karr, David wrote:
MyStuff_(add|save|load|delete), that is still more concise than having
Has anyone ever considered this?
I threw this together but don't use it any more:
http://code.google.com/p/struts2urlplugin/
You can plugin a regex matcher (default) or plaintext or others.
Eric Hamacher wrote:
Hello:
I have a form on which there can, in theory, be an infinite number of
checkboxes (Users are selecting files from a tree and there is no
telling how many will be selected). The name of each checkbox is
determined at runtime (= to the path of the file). That
Jishnu Viswanath wrote:
Hi all,
I would like to achieve something like this s:text name=s:
property value=someProperty / /
If your action extends ActionSupport, or implements TextProvider, or a
TextProvider is in the ValueStack, then you can call one of the various
getText()
2008/7/13 Dave Newton [EMAIL PROTECTED]:
Again, this is if you're intent on using XML configuration.
Dave didn't mention that if you're NOT intent on using XML
configuration, then the CodeBehind plugin was created exactly for this
purpose.
Dave Belfer-Shevett wrote:
In my JSP, I have:
Preferred cid is s:property value=#attr.properties[preferredcid]/br
Which, when rendered:
Pddreferred cid is
(with nothing after it)
This expression reads evaluate perferredcid, then get the value of
#attr.properties[evalresult].
I expect
Pierre Thibaudeau wrote:
(Struts 2.1.2)
In the JSP, is it possible through some OGNL expression to get hold of the
URL of the current request? I looked through the XML output obtained
through debugging, but could not find anything.
(I know I can get hold of the action and parameters; so there
Jeromy Evans wrote:
Dusty, you're right. I just had a quick look and I do have a custom
action mapper that checks whether the pattern above references an
action or method for that exact reason (it checks the list of
available actions and gives precedence to those). Works great for me.
I
AjaySrini wrote:
Hi all,
I'm new to sturts 2.0.Currently i'm developing a web application in which i
have a login screen which is ajax based(using s:head theme=ajax)
It works fine in FF but when i used to login through IE it is not working.
Whether Struts2.0 + ajax functionality will support
Mike Watson wrote:
The trick (I believe) is that the url should be parsed from right to
left, not left to right. I don't think it's a hijack; for the
application I'm working on context is very important so knowing that a
given resource is being accessed in the context of another resource
has a
AjaySrini wrote:
Hi,
Currently i'm developing a web application which consists of 4 radio buttons
using Struts 2.0 written in div tag. Based on the selection of the radio
buttons i need to display the other struts tags such as
s:optiontransferselect, s:groupbox, s:combobox, etc... using ajax
Struts Two wrote:
Even afterI extended the StreamResult to be able to set the content-desposition
dynamically, Internet explorer would open the file in a separate browser while
firefox was prompting with the save/open dialog. However, the issue was fixed
when I directly got the httpresponse
of the parent templates include hardcoded theme
names in their include statements precisely for this reason. There is
no fix without an overhaul of the S2 template system.
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail
Timothy Wonil Lee wrote:
I believe the default value is WEB-INF/template, but I may be wrong.
Almost, the default is in the *classpath* at /template
So that should read WEB-INF/classes/template
Also, don't forget the theme.properties file.
based on a URI pattern and/or user's role.
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Vanja Petreski wrote:
Hello,
Is it possible to solve the following problem in some other way then
implementing the custom ActionMapper (Struts 2.0.11.1):
1) struts.action.extension=html
2) I am using the rome rss s2 plugin and have the special namespace for
feeds: /feeds
3) I am accessing
not setting its own parameters.
I suspect you haven't applied the ModelDrivenProduct interface. You
need to use that if you want to call your parameter name.
Otherwise you need a getProduct() method with param names such as
product.name and product.color.
regards,
Jeromy Evans
. The ContentTypeHandlerManager also
allows handlers to be registered by mime-type and/or extension. I'm
happy with it but want to ensure it doesn't conflict with other plans.
I've kept in mind that in the future the manager may check the accepts
header for the response content-type.
Thanks,
Jeromy Evans
https
Ramanathan RV wrote:
Hello
I wish to call a static method from the view and make the results available
to my view. I believed I would have to do something like this to achieve
that :
s:set name=docs scope=request
value=@[EMAIL PROTECTED](product)/
The above piece of code indeed calls the
Jeromy Evans wrote:
Could someone with an interest in the REST plugin please glance at the
changes I've committed for WW-2641
oops, that was meant for struts-dev. I'll cross-post there.
-
To unsubscribe, e-mail: [EMAIL
implement
all validation logic, it assumes you're using struts2 tags and markup
for all fields and it generates inline javascript.
See:
http://struts.apache.org/2.0.11.1/docs/client-side-validation.html
regards,
Jeromy Evans
Paranoid_Fabio wrote:
Hello. I've a very strange problem using content disposition in stream
result:
result name=success type=stream
${contentType}
downloadStream
filename=${fileName}
1024
/result
fileName
.
More importantly, the xhtml theme uses tables for layout, the
css_xhtml theme uses divs, spans and css2 for layout, the simple
theme outputs plain-old html 4 with no markup for layout and you can
customize the theme for every tag.
Hope that helps.
Jeromy Evans
Dwipin C wrote:
result name=EXPIRED_PASSWORD
WEB-INF/jsp/ChangePassword.jsp
Include a / in front of WEB-INF. (/WEB-INF/jsp/ChangePassword.jsp)
S2 forwards to the JSP result and without the leading slash the
container assumes
Mike Watson wrote:
Hi Jeromy,
Please ignore my other email, I was being a dumb-ass.
Thanks heaps for the tips, I managed to get this working today.
Mike
Good to hear. Sorry I hadn't got back to you.
regards,
Jeromy Evans
Pierre Thibaudeau wrote:
It is possible to refer to an enum value within OGNL:
[EMAIL PROTECTED]@MARS}
But how can I refer to the collection of all the values of an enum? In
Java, that would be: com.myapp.Planets.values()
With OGNL, I tried the following without success:
[EMAIL
loaded from
resource bundles). I always work like this. It's much easier than it
first seems.
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Esteve Camps Chust wrote:
hi all,
this is my first email at struts list. I am a new user to struts2. I'm
trying to get working the next scenario: having a mailer class, I want the
message text be a rendered JSP. The action class calls a mailer class; this
composes the mail from the rendering
Esteve Camps Chust wrote:
The problem is renderJSP method, so it constructs a customized JSP with
username data. For example, renderJSP should return something like:
html
body
pWelcome [EMAIL PROTECTED]/p
pthis is a welcome email./p
/body
/html
Do this:
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
This is what I intend to do. At the moment the CodeBehind/Convention
plugin estimates the name of view candidates (eg.
package-action-result.jsp)
This change would just need to extend that to check if a tile exists
Roberto Nunnari wrote:
Maybe the convention plugin should look into the tiles.xml
file, or check to see if the tiles plugin or tiles listener
are in the game..
Most probably, the definition names in tiles.xml should
follow the conventions, so that
definition name=auctionView..
becomes
Internet Explorer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
are still permitted
struts.enable.DynamicMethodInvocation = false
My advice is not to use this feature of Struts2 and instead keep it
simple (follow the convention of the Convention plugin, even if not in
use yet).
regards,
Jeromy Evans
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenience of conventions?
It works with
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
retrieval would have to be performed in the Controller rather than the
Handler though. There is probably a bit of work to do in the plugin to
handle binary results better though.
Hope that gets you started.
Jeromy Evans
{ }
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
can investigate those two
options, or increase your tomcat logging to obtain more information.
This information is applicable to any servlet/filter/listener. It's a
good idea to get familiar with common tomcat errors and logging.
Hope that helps.
Jeromy Evans
[EMAIL PROTECTED] wrote:
Hi Jeromy, thanks for the respose.
The response is already committed in the action class (before the Result is
executed). In the execute() method, the result of 'response.isCommitted()'
is true. So I think the response is committed even before getting to the
Result.
[EMAIL PROTECTED] wrote:
I have a JSP that uses an ActionTag s:action to call a Struts 2 action
class directly from the JSP. But in the action class, the HTTP response
has already been committed. This makes it impossible for me to set cookies
from my action class.
I tested this by calling
the
interceptors). It can invoke any action but be wary that the
ActionContext is stored in a ThreadLocal (not saved and restored after
an invocation) and not all results can be safely executed within another
page.
Hope that helps,
Jeromy Evans
[1]http://java.sun.com/products/servlet/2.3/javadoc
and ensure spring 1.x isn't there. If it is, find the
source and remove it.
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hope that helps,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:
ie. Map applicationContext =
actionInvocation.getIncovationContext().getApplication();
You can also inject beans directly into you interceptor via spring or
guice if you're using one of those DI frameworks.
Hope that helps,
Jeromy Evans
nani2ratna wrote:
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is
java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
Asleson, Ryan wrote:
page:applyDecorator name=theDecorator page=/include/footer.action
http://www.biworldwide.com/info/index.html /
When you use this tag, how does sitemesh invoke the action? The
exception implies its looking for a file and doesn't know it needs to
invoke something
Yousri BENDI ABDALLAH wrote:
Hello ,
I have a problem with the integration of a video (wmv format) within a JSP
page. To that end I use the tag html object which allows me to integrate
my video played with Windows Media Player, these videos are stored on an
application server Weblogic 8.1. But
Yellek wrote:
should I be raising a Jira issue for this?
Hi Peter, yes, it's would be helpful to raise an issue for it.
In this case the ActionMapper knows about the allowSlashesInActionName
setting but the XWork Validation doesn't know.
that helps,
Jeromy Evans
Jakub Milkiewicz wrote:
Hi
i would like to know what is the best practice to handle exceptions in
Struts based applications.
I have defined ExceptionMappingInterceptor aka exception interceptor and it
works but it can not handle all kind of exceptions.
I would like to have
Yayo wrote:
I don't have scripts in my results but that don't changes the fact that the
action configured in the cancel button never gets executed...
I thought you meant you had an s:submit theme=ajax button in your
result, which implies the result needs to be parsed by dojo so it can
Ram Prasad wrote:
Hi All,
I am using struts 2.0.11.1 form with Ajax theme, getting error
Parameters: Invalid chunk ignored WARNING message when submitted the form
and the form fields have not been populated. I have configured the targets
as the form parent DIV.
May 8, 2008 5:50:30 PM
with the container.
regards,
Jeromy Evans
kal stevens wrote:
I have been trying to implement an UnknownHandler, and I can not seem to
find any documentation on how to integrate it into the framework.
I am using spring for DependencyInjection, so I thought that I could just
add a bean named
Jay Bose wrote:
I was using tabbedPanel, with the Ajax theme in WebWork-2; no problem.
After my upgrade to Struts-2.0.11, I no longer get decorated tabs. The ajax
recipes were
not as helpful as I would have liked
Yayo wrote:
Hi,
i'd like to discuss with you for in case you've found it before.
I've got a div div id=result.../div that I fill with my ajax results
so I present a list inside of the result div, then user clicks on an element
and the response goes inside for editing.
Then in the edition
Zoran Avtarovski wrote:
I need to access the getServerName method of the request from an action, but
I¹d like to do it via the request map. What parameter do pass the get
method? I couldn¹t find anything on the site.
Z.
Hi Zoran, it's not in the request map. The RequestMap maps only to
101 - 200 of 701 matches
Mail list logo