A minimal example application is available in the full distribution
download, and is in the /apps/struts2-blank.war file. Since you don't want
to use maven, this will get you started with a minimal application
configuration.
Dave
On Fri, Jan 17, 2014 at 5:42 PM, Dave Newton wrote:
> On Fri, J
On Fri, Jan 17, 2014 at 5:18 PM, Eric Reed wrote:
> I have the latest core, and it seems x-work... any others? (I cannot use
> maven)
>
> Why does the struts project package commons-logging, and other third party
> lib's when downloading Essential Dependencies Only? Lib's include google
> lib's a
__
Porfavor..no altere o interrumpta esta communicacion..Gracias
> Date: Tue, 30 Oct 2012 13:39:23 -0600
> Subject: Re: Basic Struts doubt
> From: ken.mcwilli...@gmail.com
> To: user@struts.apache.org
>
> If using JSON this it a touch easier: http://api.jquery.com/jQuery.getJSON/
&
jquery.com/jQuery.ajax/
-Mensaje original-
De: Alejandro [mailto:apar...@gmail.com]
Enviado el: domingo, 28 de octubre de 2012 23:56
Para: Struts Users Mailing List
Asunto: Re: Basic Struts doubt
You could use the jquery ui. If you use struts2 there is a plugin for that.
Regards :)
You could use the jquery ui. If you use struts2 there is a plugin for that.
Regards :)
2012/10/28 Lukasz Lenart
> 2012/10/28 Kakoli Sen (kasen) :
> > Hello all,
> >
> > I am a newbie in Struts and JSP.
> >
> > My initial JSP page is coming out where I have among other widgets, 2
> combo
> >
2012/10/28 Kakoli Sen (kasen) :
> Hello all,
>
> I am a newbie in Struts and JSP.
>
> My initial JSP page is coming out where I have among other widgets, 2 combo
> boxes. The user selects from the first combo and then the second combo needs
> to be populated from db based on the value selected.
place your right control check in a filter, i.e whenever the user send a
request to
the server, retrieve its right information then compare the request uri,
if match,
the user has been granted to do so, or does not have the proper right.
good luck.
On 04/16/2010 10:36 AM, Stephane Cosmeur wrot
Hand-rolled security almost always has many holes.
I would suggest using spring security.
Cimballi wrote:
One way to do it it to have a super action with a permission property,
and you set the permission property with a static param in your struts
xml files using the StaticParameters intercepto
> From: cosm...@gmail.com
> Date: Fri, 16 Apr 2010 11:28:05 +0800
> Subject: Re: Basic security problem
> To: user@struts.apache.org; cimba...@cimballi.net
>
> Thank you for answers.
>
> Your method looks good Cimbali. But do you think it would be really better
> th
Thank you for answers.
Your method looks good Cimbali. But do you think it would be really better
than an object which describe the role of the user stored in the session map
?
At firstline of each action in java, i would have:
'if (role.hasRighMethodName == true) ..
Do you think your method is
Hi Stephane,
As Kun says, you have to test the role in your action.
One way to do it it to have a super action with a permission property,
and you set the permission property with a static param in your struts
xml files using the StaticParameters interceptor.
Then, you add a hasPermission method t
You should check the authentication all by yourself in your action.
Stephane Cosmeur wrote:
Hello struts users
I have a really basic security problem and i would like to know what is the
best practice to resolve it.
I have an application with an authentification system and diffrent rights
for
thanks for reply
i saw this example in the website struts tutorial and there is no code in
action mappings ?
İ can't understand what am i write to the action mappings?
Paweł Wielgus wrote:
>
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
>
> Best gre
Check startsoft on google code.
On 3/10/10, Paweł Wielgus wrote:
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
>
> Best greetings,
> Paweł Wielgus.
>
> 2010/3/10 tesla :
>>
>> from a few days i'm working on struts and i'm trying to develop an simple
>>
Hi,
in action-mappings there is no result defined for your action,
is it on purpose?
Best greetings,
Paweł Wielgus.
2010/3/10 tesla :
>
> from a few days i'm working on struts and i'm trying to develop an simple web
> application.
> i cant see the elements of my array(bookList) on jsp page when i
All of your links and forms etc in your applications should point to
'actions' they should never point directly to jsp files. (I.e. the user
should never see a url in the address bar that end in .jsp).
It's is normal to have noop actions that do nothing but return 'SUCCESS'.
You would do yourself
I don't have a lot of hibernate experience but my memory, from reading that big
hibernate book, is that you get more flexibility by using hibernate sessions
instead of jpa entity managers. For me, strict jpa compatibility wasn't a
requirement so I used hibernate sessions (via spring).
measwe
Hi,
just as a side note, i find convention plugin very useful,
and i haven't find it in your description so i'm just recomending it.
Best greetings,
Paweł Wielgus.
2009/9/4 measwel :
>
> Dear all,
>
> I am trying to get a basic architecture off the ground for my webbapp
> development work. I pla
Perhaps the language is bad, but what I believe that documentation means is
that when you are iterating the each object in the iteration is at the top
of the stack so that when you do something like this:
Struts knows that you mean #session.users[i].firstName. It knows that based
on how
Thanks for clarification!
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2008/2/12, Lukasz Lenart <[EMAIL PROTECTED]>:
>
> when you using Struts 2.0.9 -> tiles version is 2.0.4. I think the pom
> for struts-tiles-plugin should contain such dependency, it looks like
> a bug (or maybe I'm wrong)?
It *was* a bug and it is fixed in Struts 2.1.x
Antonio
Hi,
I've probably found the problem, struts-tiles-plugin doesn't depend
on tiles-jsp. You have to manually added it your pom.xml, like below:
org.apache.tiles
tiles-jsp
2.0.4
when you using Struts 2.0.9 -> tiles version is 2.0.4. I think the
Tiles 2 has got a new home:
http://tiles.apache.org/
Please post Tiles 2 related questions to the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio
2008/2/11, Allen, Daniel <[EMAIL PROTECTED]>:
>
> Hi.
>
> I'm completely new at Struts and Tiles, but was given the task of
> conve
ROTECTED]
Sent: Monday, February 11, 2008 4:28 PM
To: Struts Users Mailing List
Subject: Re: Basic setup question (tiles 2)
Did you follow docs configuration as in
http://struts.apache.org/2.x/docs/tiles-plugin.html ?
Regards
--
Lukasz
http://www.linkedin.com/
Did you follow docs configuration as in
http://struts.apache.org/2.x/docs/tiles-plugin.html ?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
Users Mailing List
Subject: RE: Basic setup question (tiles 2)
I replaced the dependency I had before with the dependency you gave, but
Maven's generated /lib directory still does not contain tiles-jsp.jar,
and the error message has not changed:
javax.servlet.ServletException: The absolute
ent: Monday, February 11, 2008 2:41 PM
To: Struts Users Mailing List
Subject: Re: Basic setup question (tiles 2)
It is better to add dependency for Tiles plugin, it will download all
needed jars for you:
org.apache.struts
struts2-tiles-plugin
It is better to add dependency for Tiles plugin, it will download all
needed jars for you:
org.apache.struts
struts2-tiles-plugin
2.0.9
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
--
I'll expand on this comment (and I believe this is what ravi_eze is
suggesting)... I have a similar situation in my application, and I got
around it by creating a non-validating stack for the "setup" actions. I
basically removed all the interceptors that trigger validation for those
actions where
i think u can ty this way:
create a new mapping where there are no validations for action 1. Now on
validation errors of action 2 it would redirect to this action 1; thus
skipping validations of action 1.
if u want the function call only and no validations... may b u can call the
method action1
Thanks for the comment.
The problem is not that I'm losing the validation errors. I'm keeping
those across the redirect by using a modified interceptor stack with
the STORE interceptor. So, that's cool.
The problem is that *because* the errors are being preserved across
the redirect (I
Kevin Wade wrote:
Greetings. I've seen a number of posts about this issue -- or related
issues -- but no comprehensive solution. I'll try again and be succinct:
I have an action (Action1) that prepares a search screen (i.e. populates
a drop-down box). The search screen/form calls Action2 bu
Responses inline...
-Original Message-
From: Minghui Yu [mailto:[EMAIL PROTECTED]
Sent: Thu 11/15/2007 7:16 PM
To: Struts Users Mailing List
Cc:
Subject: Basic Struts work flow question
Hi there,
Minghui Yu wrote:
Hi there,
I am new to Struts (version 1.2.7). I am developing a small app to
learn Struts. Could
you please give me some suggestions?
Respectfully, my first suggestion would be to use Struts 2. If you're
just getting started and you need to climb a learning-curve anyway, wh
Never mind! The solution involved some not-so-obvious steps
1. download and install the jstl (ok, this should have been obvious)
2. Change the top of my web.xml (this was not obvious...see
http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0)
3. read the docs on jstl and FormBeans
On 12/19/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
These should be easy questions, but I can't find the answers...if
someone could either answer them or point me to the right docs, I would
appreciate it.
1. What is the proper uri for the jstl core library? According to my
JSP book it should
Hi,
If you are using logic equal , you should also use logic not equal.
Regards,
Nagesh
-Original Message-
From: siva sajja [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 12:08 PM
To: Struts Users Mailing List
Subject: Re: Basic wrote:
>
> Greetings everyone:
>
>
Logic iterate can be used only over a collection of elements.
Check whether the property userRoles in the bean returned by
LookUpConstants.SESSION_OBJECT is a collection.
Also the property names used in bean:write(role) is different from the
property name used in logic:iterate(userRoles) which I
This may help:
http://struts.apache.org/struts-action/struts-taglib/index.html
You may also want to consider using the jstl tags. i think the struts
logic tags may be depreciated in favor of jstl. the jstl tags to solve
your problem are and and the documentation is here:
http://java.sun.com/prod
why not use tag instead?
josh t <[EMAIL PROTECTED]> wrote: Greetings everyone:
Objective: Retrieve an object from the session that contains a Collection of
String for userRoles. Iterate through userRoles, and if one of the roles
equals "SUPER" include a href.
So this is what
Thanks. Does anyone know where I can get some good reference material on Struts
Tags?
"Patil, Sheetal" <[EMAIL PROTECTED]> wrote: Hi there
As my best knowledge your And supports for either int or boolean
-Original Message-
From: josh t [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11
Hi there
As my best knowledge your mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 7:41 AM
To: user@struts.apache.org
Subject: Basic
test
.
Note: I can get the session value just fine, when i do the follow
: "Michael Jouravlev" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, November 07, 2005 3:06 PM
Subject: Re: Basic template
On 11/7/05, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote:
Hello,
What would be the best aproach without hurt
On 11/7/05, Marcio Ghiraldelli <[EMAIL PROTECTED]> wrote:
> Hello,
>
> What would be the best aproach without hurting MVC framework in having
> one central "template.jsp" and inserting into it Struts actions, such as:
>
>
>
>
>
>
>
>
>
> The u
I would suggest using Tiles.
Greg
On Nov 7, 2005, at 12:55 PM, Marcio Ghiraldelli wrote:
Hello,
What would be the best aproach without hurting MVC framework in
having one central "template.jsp" and inserting into it Struts
actions, such as:
PROTECTED]
Sent: Thursday, August 25, 2005 12:28 PM
To: Struts Users Mailing List
Subject: Re: basic date field question
A slight tweak to that...
StudentVO(){
private Date birthDate;
public long getBirthDate() {
return birthDate.getTime();
}
public java.util.Date getBirthDateAsDate
Users Mailing List
Subject: Re: basic date field question
A slight tweak to that...
StudentVO(){
private Date birthDate;
public long getBirthDate() {
return birthDate.getTime();
}
public java.util.Date getBirthDateAsDate(){
return birthDate;
}
Why?
Because this way two subsequent
A slight tweak to that...
StudentVO(){
private Date birthDate;
public long getBirthDate() {
return birthDate.getTime();
}
public java.util.Date getBirthDateAsDate(){
return birthDate;
}
Why?
Because this way two subsequent calls to 'getBirthDateAsDate' will return the
same obj
On Thu, 2005-08-25 at 12:34 +0200, Rivka Shisman wrote:
> Hi friends
>
Shalom,
>
>
> I'm puzzled with a basic design problem:
>
>
>
> I have a VO - say StudentVO - that has a property -> birth_date.
>
>
>
> Should the birth_date property be of type String (and then in the DAO
> conver
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> To me, this is very confusing. Why doesn't the html:property tag perform
> the same kind of logic as JSTL does? I would think I should be able to
> just do...
>
>
>
> and not need to create a new accessor method name and the odd syntax (x) ?
Rick Reumann wrote the following on 7/14/2005 4:26 PM:
Rick Reumann wrote the following on 7/14/2005 4:20 PM:
From the FAQ I'm going to try this in my ActionForm..
public Object getStringMapped(String key) {
return map.get(key);
}
public void setStringMapped(String key, Obj
Right as rain, Rick! You also can have a getMap() method and use
map.name rather than map[1].name. There is some fairly weird code,
unfortunately, underlying all this, which makes the creation of an
ActionForm as an instrumented Map impossible. However, looking at the
code itself is very instruc
Rick Reumann wrote the following on 7/14/2005 4:20 PM:
From the FAQ I'm going to try this in my ActionForm..
public Object getStringMapped(String key) {
return map.get(key);
}
public void setStringMapped(String key, Object value) {
map.put(key, value);
}
When i
Rick Reumann wrote the following on 7/14/2005 3:17 PM:
Ok this is basic, but I'm stumped here at the moment...
Imagine a Map of Animals. (Animal has a "name" property)
map.put(new Integer(1), new Animal() );
map.put(new Integer(2), new Animal() );
In my Action form this map is in there as:
pr
John,
When I was first learning Struts, I saw that kind of page when I had an
incorrect action method. I use execute() and there are two performs. One
with this ServletRequest and ServletResponse while the other has
HttpServletRequest and HttpServletResponse. Have you tried using execute()
in p
If you don't specify anything than you will be using the locale set in
your browser (if you don't set this than its usually the locale set in
your O/S).
This behavior usually works good for most apps. If you want to allow a
person to proactively change the Locale you can do it in an Action. Tak
Okay, Andy -- JSTL operates on scoped variables not scripting variables.
You are trying to access scripting variables. I found this good primer
on JSTL that explains this at
http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html
andy wix wrote:
Hi,
In trying to resolve another (more
xxx needs to be somewhere accessible to the c:forEach tag. Do a search
on scoped variables. This can be done in your scriptlet or in the action
that forwards to this jsp.
Brett
andy wix wrote:
Hi,
In trying to resolve another (more Struts related!) problem someone
suggested using a
<%@ taglib
and
what is 8.3 directory names ??
I will correct the classpath surely.
Birendar Singh Waldiya
"David Friedman" <[EMAIL PROTECTED]>
22-04-04 11:19 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing L
nd stock libraries like java.io.* or anything else
you'd expect.
Regards,
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 1:55 AM
To: Struts Users Mailing List
Subject: RE: basic problem in java
Yes it may me nast
Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
Birendar,
That is a nasty looking classpath with slashes going in both directions
in
your JDK path portion (incredibly unwise), long p
k1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
\common\lib\servlet.jar;
to something a bit more normal?
Regards,
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 1:29 AM
To: Struts Users Mailing List
Subject: RE: basic
lease respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
So Birendar,
What was your problem? I never saw a post about you resolving it.
(and,
curiosity
PROTECTED]>
To
"'Struts Users Mailing
List'" <[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
that probably won't compile either
import java.io.*;
class test
{
public static void main(String[] args)
{
System.out .println("My
riginal Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 10:17 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java
Hi,
Im very sorry and apologize to all for not telling the about the
resolving problem,
Actually my problem is resolved
iedman"
<[EMAIL PROTECTED]>
21-04-04 08:30 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
Dhaliwal,
Birendar never seeme
hanks anyway,
David
-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 8:00 PM
To: 'Struts Users Mailing List'
Subject: RE: basic problem in java
You are using something like
SomeClass someClass = java.io.SomeClass();
See w
that c:\Drivers and c:\biren\java do not have any classes in them.
HTH,
Pritpal Dhaliwal
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 2:09 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java
So Birendar,
What was your
"David Friedman" <[EMAIL PROTECTED]>
17-04-04 08:54 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
ndard 8.3 directory names works. Again, you might need to do the same for
the .jar files but I don't know for sure since I use Tomcat and Eclipse
making paths 'mostly' unimportant to me.
Regards,
David
-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Sund
D]>
18-04-04 05:43 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
Struts Users Mailing List
<[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
Post the contents of your jaba1.java file up to and
including the
"import
MAIL PROTECTED]>
>
> 17-04-04 08:54 PM
> Please respond to
> "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> To
> "Struts Users
> Mailing List"
> <[EMAIL PROTECTED]>
>cc
>
>
edman"
<[EMAIL PROTECTED]>
17-04-04 08:54 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
RE: basic problem in java
What is your CLASSPATH variable set to an
What is your CLASSPATH variable set to and is java installed in
c:\biren\java?
Regards,
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 17, 2004 2:47 AM
To: Struts Users Mailing List
Subject: basic problem in java
Hi,
74 matches
Mail list logo