On Fri, Jul 16, 2010 at 9:24 PM, J_e_f_f wrote:
>
> If you're specifying your DbResourceBundle class in the web.xml like:
>
> value="com.insomnia.common.bundles.DbResourceBundle" />
>
Was that a typo? Did you mean struts.xml? I have it in struts.xml,
but it doe
Greg,
Greg Akins-2 wrote:
>
> I specify it as a constant in struts.xml and then wrap my s:text with the
> s:i18n using the fully qualified class
>
If you're specifying your DbResourceBundle class in the web.xml like:
This should make your resource bundle available globally within your S2
On Fri, Jul 16, 2010 at 03:24, Johannes Geppert wrote:
>
> together with convention plugin ther exists this constant
>
>
>
> this works fine for me, bit I don't know a solution without convention
> plugin.
>
> Best Regards
>
> Johannes Geppert
This solution sounds very interesting, and it's e
I made a similar post previously but I changed some things and may have
shed some different light on the problem.
I'm trying to catch all requests to "/secure/etc":
{1}
I have an interceptor that fires and if the user logs in, calls invoke.
I a
But now you have only one package and your interceptor has to check the
namespace to see whether or not it should work. What if you want to do
different things for different packages? Now you only have one. I guess
it's one idea, although I'd be happier just getting the
package-info.java to d
Hi,
all i can advice is to use default parent package.
I described it here:
http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html
Best greetings,
Paweł Wielgus.
2010/7/14 JP Cafaro :
> I'm using struts 2 with convention plugin. The convention plugin page
> states for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anyone? Thanks in advance!
On 7/14/2010 10:16 AM, Christopher Schultz wrote:
> All,
>
> I've looked through the archives to see if there's a way to do this, and
> I feel like there must be an easier way, so I'll ask again.
>
> I'm using Struts 1.3.8
Try to ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2010/7/16 Ryan Beckes :
> Hello,
>
> I'm new to struts 2, so I read the "Starting Struts 2" book by Ian Roughley
> (very good intro!) and started playing around with the Struts blank
> application.
>
> I've been ab
Hello,
I'm new to struts 2, so I read the "Starting Struts 2" book by Ian Roughley
(very good intro!) and started playing around with the Struts blank
application.
I've been able to add tiles integration to the blank application (version
2.1.8.1). I'm trying to add internationalization to tiles v
>From the Struts 2 FAQ
http://struts.apache.org/2.1.8.1/docs/how-do-we-repopulate-controls-when-validation-fails.html
On Fri, Jul 16, 2010 at 4:40 AM, Guy Thomas wrote:
> In a form I use the struts2 action tag to populate a drop down list:
>
>
>
>
>
>
> Sele
On 7/16/10 1:06 PM, abhishek jain wrote:
The dispatch action is calling some of the functions of the action class
multiple times, it calls it twice for mozilla and single time in chrome.
One common error that will appear to result in this behavior are images
without a specified src, resulting
Hi friends,
I am getting a weird error:
I am using Struts 1.2, tomcat 5.5 , tiles and used myeclipse for
development.
The dispatch action is calling some of the functions of the action class
multiple times, it calls it twice for mozilla and single time in chrome.
I know it is weird that a client si
//working dojo XmlhttpObject with messageReceived function
plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/io/xip_server.html
//client that calls the server via send function
plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/io/xip_client.html
Martin
function test() {
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1)
{
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
}
if(_be)
{
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjP
I'm having some issues with wildcard mapping. I wanted to catch all
attempts to visit anything behind "/secure".
/authenticate/login-page
This works if I try to visit "/secure/anything/anything/etc" and if I'm
not logged in, I get directed
I've used this before, and it seemed to work well.
http://jmimemagic.sourceforge.net
Some more alternatives are here
http://www.rgagnon.com/javadetails/java-0487.html
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akins
Add the following to your web.xml file and change the url-pattern's to
catch any jsp files you do not want the user to have direct access to.
Prevent access to raw pages.
Raw Pages
/error.jsp
/struts/*
/META-INF/*
No roles, so no direct access
My experience is that you cannot trust the mime-type supplied by the
browser on a file upload. The same file uploaded with FF or IE will
give you different mime-types. It's also dependent on what plugins
have been installed in the browser.
The only truly reliable methods would be to examine the fi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Manos,
On 7/16/2010 9:42 AM, Manos Batsis wrote:
> On 07/16/2010 04:21 PM, Stephen Turner wrote:
>> We're using Struts 2 for file uploading, and we're filtering the types
>> of files people can upload by checking the file's content type against a
>> l
On Fri, Jul 16, 2010 at 8:21 AM, Mike Fotiou
wrote:
> Finally, in the view, you must wrap an i18n tag for the text-based tags to
> work properly:
>
> <@s.i18n name=".utils.content.DataResourceBundle">
This isn't working for me.
My DbResourceBundle is a class that extends ResourceBundle
I s
I stripped the original app right down to a simple controller and
built things up from nothing (the original app had all sorts of stuff
like Spring and Hibernate which was getting in the way).
The problem appears to happen only when I use the @Action annotation.
If I take out the annotations then
Yes, kind of. I'm using Freemarker. There is a master template that all other
pages extend, if you will, so the i18n tag encompasses the entire content page
and only has to be defined once. Anything included within that tag will use
the specified resource bundle.
Mike
-Original Message
Thanks for the suggestion, that worked.
Now what I find odd is that when using the listKey/listValue parameters
for the autocompleter tag, it doesn't populate the dropdown when the
data is sourced from a remote URL. If I request the Ajax service, I get
the serialized data as I would have expec
Thanks Mike
On Fri, Jul 16, 2010 at 8:21 AM, Mike Fotiou
wrote:
> I implemented this by creating my own ResourceBundle implementation
> ("DataResourceBundle"). This handles all of the database access and returns
> the appropriate string to Struts by key when asked.
>
We already have a DataRe
On 07/16/2010 04:21 PM, Stephen Turner wrote:
We're using Struts 2 for file uploading, and we're filtering the types
of files people can upload by checking the file's content type against a
list of allowed mime types.
This turns out not to be reliable enough. Firefox in particular seems to
somet
Hi all,
i'm trying to use richfaces with struts2 and jsf-plugin...but it doesn't
work ... someone can help?
I've added this to my web.xml:
faces
javax.faces.webapp.FacesServlet
1
JspSupportServlet
org.apache.struts2.views.JspSupp
We're using Struts 2 for file uploading, and we're filtering the types of
files people can upload by checking the file's content type against a list
of allowed mime types.
This turns out not to be reliable enough. Firefox in particular seems to
sometimes provide the wrong mime type, so some
can explain to me what is
PrefixBasedActionMapper.java
thx
On Fri, Jul 16, 2010 at 3:02 PM, Johannes Geppert wrote:
>
> there is a Ticket witch should be solved in next available version.
>
> https://issues.apache.org/jira/browse/WW-3260
>
> maybe it helps you out.
>
> Best Regards
>
> Joh
Hi JohannesThanks for your reply. Isn't Dojo plugin deprecated. So, I am
thinking to go ahead and render the tree using a JQuery plugin.
Regards,
John
-Original Message-
From: "Johannes Geppert"
Sent: Friday, July 16, 2010 4:05am
To: user@struts.apache.org
Subject: Re: Struts 2
Greg,
I implemented this by creating my own ResourceBundle implementation
("DataResourceBundle"). This handles all of the database access and returns
the appropriate string to Struts by key when asked.
It is enabled by adding the following constant in struts.xml:
Finally, in the view, yo
I'm resurrecting this message because I have the same need.
I'm converting some code to Struts2, from a JSP/Servlet application.
Currently we create bundles from a database, that have keys per
customer and language for most of the text in our application.
A simple solution to this would be to ove
Miguel-55 wrote:
>
> I use struts 2.1.81. and I don't want that my users access directly my
> .jsp, so I put them inside WEB-INF.
>
You don't *have* to put your JSPs in WEB-INF to protect them from direct
access. You can put them in folders under the web root named according to
your package n
Just curious
Is there a production using rest plugibs
(m)
-Original Message-
From: Johannes Geppert
Date: Fri, 16 Jul 2010 01:31:30
To:
Reply-To: "Struts Users Mailing List"
Subject: Re: Struts, Convention plugin and REST plugin
did it work when you don't use the action annotations
In a form I use the struts2 action tag to populate a drop down list:
Select an action:
Specify search terms:
did it work when you don't use the action annotations ?
Because with Rest Plugin you have already an action called "posts"
Try it only with the Results annotations.
@Results( {
@Result(name="newpost", location="newpost"),
@Result(name="posts", location="posts")
})
public class PostsController
togehter with convention plugin ther exists this constant
this works fine for me, bit I don't know a solution without convention
plugin.
Best Regards
Johannes Geppert
Miguel-55 wrote:
>
> Hello,
>
> I use struts 2.1.81. and I don't want that my users access directly my
> .jsp, so I pu
yes the Struts Tree Tag is Dojo based so you need
to include the dojo header.
for the http://code.google.com/p/struts2-jquery struts2 jquery plugin is
currently no tree tag available.
But Contributes are always welcome. :-)
Best Regards
Johannes Geppert
john.varghese wrote:
>
> Good mornin
there is a Ticket witch should be solved in next available version.
https://issues.apache.org/jira/browse/WW-3260
maybe it helps you out.
Best Regards
Johannes Geppert
Frans Thamura-2 wrote:
>
> we develop a REST app using Struts2, and we also have old model, using
> Struts2
>
> is there
add to /struts/* to your url pattern, this should solve your problem.
Best Regards
Johannes Geppert
Fabio Alves de Araujo Ebner - DnaSolution wrote:
>
> Hi, i trying to use the datetimepicker in my app, but when i change in my
> Web.xml the struts2 url-pattern to /jsp/* all my tags stop to wo
maybe this helps you out.
http://code.google.com/p/struts2-jquery/wiki/SelectTag#A_simple_Doubleselect_with_Topics
Best Regards
Johanens Geppert
CRANFORD, CHRIS wrote:
>
> I have a form that uses the select tag to retrieve a list of values from
> my action when the JSP is rendered. What I w
40 matches
Mail list logo