Hi,
thanks for the hint, but I used namespace="/secure" already. Only typed
it wrong into the mail.
Also compared namespace names between struts.xml and my nav.jsp. Thats
also correct, so I looked if the user (a variable in the session) is
null. But the user is not null.
So it looks like there
I upgraded my app to Struts2, which provides file uploading. Now my custom
servlet for uploading an attachment no longer receives the request. Is
there a configurable option for restoring the old functionality of having
the custom servlet upload the attachment? Thanks.
FYI - 1) Initially an
Hi,
I am getting following errors in validation.xml and struts-config.xml at
line 1 in Eclipse.
Referenced file contains errors
(http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd). For more
information, right click on the message and select "Show Details..."
Referenced file contains e
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
The instructions are pretty straight-forward. If you've
never used maven
before, it's a bit tricky at first, but once you run
through it a few
times, it's pretty easy. If you're building from
trunk, then you might
want t
I have a list of items in DB:
ITEMS contain rows ID and NAME
I would like to know what is the recommended way to have a form that
lets the user select an option from the database list of items and when
the uses clicks the preview action the selected item is shown prior to
the last action of confir
Is the namespace the same as what is defined in your struts.xml? Have you
tried namespace="/secure" for instance?
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: Michael Obster <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 10 Jul 2008 19:52:53 +020
Note that Acegi has become Spring Security:
http://static.springframework.org/spring-security/site/index.html
On Thu, Jul 10, 2008 at 3:43 PM, nani2ratna <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> can anybody tell me how to configure struts 2.0 and acegi,
> I searched, but i got something in the java
Hi,
Thanks for immediate reply.
Please send me the example, my mail id is [EMAIL PROTECTED]
Which is the best one for authentication and authorization for
struts 2, spring, hibernate.
Please suggest me.
Thanks and Regards
Ratna Sekhar
Miguel-55 wrote:
>
> The configuration is trivial if you
The configuration is trivial if you only want to use the url
interceptor, using struts, o servlets or anything, and spring security
2.x.
If you need to use the acl's to restrict the callable method in the
struts action objects, theoretically it could be done, but i haven't
tried that.
I can send yo
Hi,
can anybody tell me how to configure struts 2.0 and acegi,
I searched, but i got something in the javaworld for spring, struts 2 and
acegi.
Cant i implement with struts 2.1
If any body there who has already implemented this one.
If you dont mind please dont give any other links,
because i sea
You can always use Nabble:
http://www.nabble.com/Struts---User-f206.html
L.
Gabriel Belingueres wrote:
I personally would like to interact using a web based forum where you
can post with formatted java and xml code and even with emoticons
instead of this email based mailing list, but this woul
hi
i am using an iframe to update my page. i noticed that the url does not change
and my buttons have problems accessing javascript functions that are supposed
to be loaded along with the new data. the new data is shown and i used firebug
to check that my scripts are loaded.
however if i put
Oh, I see. Since we have a need to cache much of our data between
requests (rather than fetching the data from the back end systems on
every action request), we have more code that would have to be copied
to each execute method (using your scheme). So in our case it
relieves a lot of headaches to
SUCCESS! I figured out what was going wrong with my code. Whew, what a
tangled mess.
I have a CustomRequestProcessor that initializes variables for users coming to
the site and it was mucking up because part of my query includes values that
come from that initialization. I had thought I had
It's an S2 REST plugin issue...
--- On Thu, 7/10/08, John Moose <[EMAIL PROTECTED]> wrote:
> no problem, is this a Struts 2 issue or Struts sandbox
> issue??
>
> On Thu, Jul 10, 2008 at 2:15 PM, Musachy Barroso
> <[EMAIL PROTECTED]> wrote:
>
> > Could you open a jira ticket with the details?
> >
Struts 2
musachy
On Thu, Jul 10, 2008 at 2:26 PM, John Moose <[EMAIL PROTECTED]> wrote:
> no problem, is this a Struts 2 issue or Struts sandbox issue??
>
> On Thu, Jul 10, 2008 at 2:15 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
>> Could you open a jira ticket with the details?
>>
>> musach
If you're doing validation in JavaScript anyway, why wouldn't you use a
JavaScript-based date validation method and avoid the heinous mixing of Java
and JavaScript?!
Dave
--- On Thu, 7/10/08, vimala <[EMAIL PROTECTED]> wrote:
> I am using struts for web application development. I have a
> class
Spring only inject the service. The data returned by the service is
holded into an instance variable of the action (or I could just store
the data in session or application scope).
Spring dependencies are wired this way:
Service <--- Cache <--- DAO
Ex:
class MyAction extends ActionSupport {
no problem, is this a Struts 2 issue or Struts sandbox issue??
On Thu, Jul 10, 2008 at 2:15 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> Could you open a jira ticket with the details?
>
> musachy
>
> On Thu, Jul 10, 2008 at 2:03 PM, John Moose <[EMAIL PROTECTED]> wrote:
> > building with Stru
Hai all,
I am using struts for web application development. I have a class
clsDateTools within which I define a function public boolean isDate(String
dateToCheck) for validating date values. Here is my jsp page
<%@ page import="visg.usrBeans.clsDateTools" %>
<% clsDateTools datetool = new
Could you open a jira ticket with the details?
musachy
On Thu, Jul 10, 2008 at 2:03 PM, John Moose <[EMAIL PROTECTED]> wrote:
> building with Struts-2.1.3-SNAPSHOT and xworks-2.1.2-SNAPSHOT
>
> the XML extenson and XHTML extension seem to work OK both in the showcase
> and my app, but the .json
I guess I'm confused. If Spring is injecting the data, why do you
need it to also inject the Service?
(*Chris*)
On Thu, Jul 10, 2008 at 10:41 AM, Gabriel Belingueres
<[EMAIL PROTECTED]> wrote:
> IMHO both approaches are similar, as the intention is to inject the
> required data when you need it
building with Struts-2.1.3-SNAPSHOT and xworks-2.1.2-SNAPSHOT
the XML extenson and XHTML extension seem to work OK both in the showcase
and my app, but the .json extension seems to be triggering a File Download
action...even in the showcase???
fwiw, JSON serialized data is a key feature of our n
I put in the text as you suggested and it did indeed show the text from the
body. So now the issue has moved to being that the data variable is not being
found. Alright, that helped me find some more issues but we're not quite there
yet.
The results from the body come back with ONLY "Hello fr
Hi,
I've a problem with holding the session between two namespaces.
I defined 3 namespaces:
- /: The unsecure namespace
- /secure: The secure namespace -> user has to be logged in
- /usermanager: The special secure namespace -> user has to have
permission to get there
The LoginAction forwards
You could always try modifying the manifest file and re-packaging; if that's
the only version issue you're having it's unlikely that a ..n version issue
would cause an issue. It could, though.
Dave
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> From: Milan Milanovic <[EMAIL
IMHO both approaches are similar, as the intention is to inject the
required data when you need it. The difference is that you created
both an interface and an interceptor to perform the injection, while I
relied on Spring to do this work.
As a general rule I think on writing custom interceptors o
Dear Dave,
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> Oh, it uses commons-logging-1.0.3.jar but I'm using
>> commons-logging-1.0.4.jar in my applications lib directory.
>> So, I need to delete 1.0.4 and copy 1.0.3 in my lib ?
>
> Wouldn't it have
You are correct, the default is REQUEST (if no dispatcher is specified).
Also, depending on your needs, consider using Spring Security. I was
finally able to add it to all my struts2 app without problems. J2EE
authentication has it's own limitations as you will continue to learn
and in these ki
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> Oh, it uses commons-logging-1.0.3.jar but I'm using
> commons-logging-1.0.4.jar in my applications lib directory.
> So, I need to delete 1.0.4 and copy 1.0.3 in my lib ?
Wouldn't it have been quicker to try it?
If it can't find a
Dear Dave,
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> I noticed this, but my Sitegraph plugin in the same
>> directory as the dependent jars so I don't need to
>> put them into classpath?
>
> Oh, it looks like the sitegraph plugin puts its requir
Hi all,
I have a table (displayTag) and a form. when the user check (checkbox) some
of the items in the table and clicks submit the action is performed BUT
after it is finished it performs again... my question is why and how can I
avoid that?
Thank You!
--
View this message in context:
http:/
But then your Service Bean/DAO has to be injected into every Action
that might need to load it and the code to check for the Data Object
and load it, then store it to the context has to be Cut-n-Pasted
between each of those Actions. Way too many chances for Cut-n-Paste
errors or incomplete fixes f
Dimitris Mouchritsas wrote:
Hi all,
I've got a multipage form bean to complete a registration in 3 steps.
Validator
is not working correctly. Some fields in the first page are validated,
some are not.
In the 3rd page none of the fields are validated. Now from what I
understand
I need to extend
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> I noticed this, but my Sitegraph plugin in the same
> directory as the dependent jars so I don't need to
> put them into classpath?
Oh, it looks like the sitegraph plugin puts its requirements in its manifest
file, so never mind a
Hi
I have implemented ajax based parital page rendering in Struts 2.0.
Currently i'm facing browser compatibility issue because of radio button
events.
While using onclick,it is working fine in IE but not in Firefox2.0
Similarly, when using onchange it is working vice-versa.
Currently is there
Hi
I have implemented ajax based parital page rendering in Struts 2.0.
Currently i'm facing browser compatibility issue because of radio button
events.
While using onclick,it is working fine in IE but not in Firefox2.0
Similarly, when using onchange it is working vice-versa.
Currently is there
OK, I think I've twigged this now
Every jsp page has this include
recently I have included this in header.jsp (I'm messing around with
Struts2 i18n)
<%@ taglib prefix="s" uri= "/struts-tags" %>
...
If I go back to this config in web.xml ..
struts2
/*
...
/welcome.jsp
... whe
Dear Dave,
newton.dave wrote:
>
> So... you didn't use "x.x.x", and you didn't add "[-ns NAMESPACE]", which
> are obviously placeholders. So is the "...". It should be replaced with
> (a) nothing, removing the -cp, and rely on the CLASSPATH environment
> variable, (b) use -cp and use the CLASSP
2008/7/10 Ryan Henson <[EMAIL PROTECTED]>:
> I posted the resulting HTML code at the bottom of that last email.
Whoops! Sorry I did not see it.
> It would appear from my side that the is
> not executing properly as does actually
> produce the correct text.
Now I see it, that's strange. I se
I posted the resulting HTML code at the bottom of that last email. It would
appear from my side that the is not executing
properly as does actually produce the
correct text.
My question is focused on why does HttpURLConnection not seem to work correctly
with tiles:insert?
- Original
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> this is how it is given at SiteGraph page:
>
> java -cp ... -jar struts2-sitegraph-plugin-x.x.x.jar
> -config CONFIG_DIR
> -views VIEWS_DIRS
> -output OUTPUT
> [-ns NAMESPACE]
So... you didn't use "x.x.x", and y
Dear Lukasz,
Yes, Environment variable CLASSPATH, I wrote above what is content of the
variable.
java -cp is for setting classpath and it is given at Sitegraph page.
I tried just with "java -jar struts2-sitegraph-plugin-2.0.11.1.jar -config
../src/java...", but it is the same.
--
Milan
Lukas
Dear Dave,
this is how it is given at SiteGraph page:
java -cp ... -jar struts2-sitegraph-plugin-x.x.x.jar
-config CONFIG_DIR
-views VIEWS_DIRS
-output OUTPUT
[-ns NAMESPACE]
--
Milan
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>
When I write echo %CLASSPATH% in my command prompt I get this:
and I get this exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/lo
gging/LogFactory
at
org.apache.struts2.sitegraph.SiteGraph.(SiteGraph.java:51)
When I write echo %CLASSPATH% in my co
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> I put this in my classpath:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar;
>
> and I run sitegraph from my lib folder:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib>java
> -cp ...
2008/7/10 Ryan Henson <[EMAIL PROTECTED]>:
> I will note that calling this definition works correctly when I just view it
> using a browser.
So I doubt it is a problem of Tiles. Can you see if the HTML is ok
just before you use it with iText?
Antonio
You didn't unclude the most important part of all your command line:
"java -cp "
Obviously you failed to add the commons logging jar file to the classpath.
Try: java -cp path/to/the/following/file/commons-logging-1.0.4.jar;... ..
2008/7/10 Milan Milanovic <[EMAIL PROTECTED]>:
>
> Dear D
> I put this in my classpath:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar;
>
> and I run sitegraph from my lib folder:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib>java -cp ... -jar stru
> ts2-sitegraph-plugin-2.0.11.1.jar -config ../src/java -vi
I would have thought would handle all of that for
you, but I guess it may not be working, or doesn't aim to.
2008/7/10 Paweł Wielgus <[EMAIL PROTECTED]>:
> Hi all,
> just yesterday i had the very same problem in rails with date field,
> so i searched for disabled definition and found this:
> http
Sure, I'll post the important excepts from my tiles-def.xml and attach it as
well since its kind of large. I will note that calling this definition works
correctly when I just view it using a browser. I am reconstructing the exact
same call to my function using HttpURLConnection and have verif
Dear Dave,
I put this in my classpath:
C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar;
and I run sitegraph from my lib folder:
C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib>java -cp ... -jar stru
ts2-sitegraph-plugin-2.0.11.1.jar -config ../src/java -vi
On Thu, Jul 10, 2008 at 1:59 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote:
> As far as I know, the servlet spec 2.3 didn't comment much on what to do on
> forwards (whether to make forwarded resources pass through the filters as
> well or not). Tomcat 4.x assumed you didn't have to, whereas othe
On Thu, Jul 10, 2008 at 1:13 PM, Jeoffrey Bakker
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Are you sure that the behaviour was really odd?
I can't think of a better word to describe it frankly
I have the following link
View my account
This is a protected resource and requires a login
If you don't ge
As far as I know, the servlet spec 2.3 didn't comment much on what to do
on forwards (whether to make forwarded resources pass through the
filters as well or not). Tomcat 4.x assumed you didn't have to, whereas
other containers (e.g. weblogic 8) passed them through. This was fix in
servlet spec
Hi,
Check PrepareInterceptor [1] with prepare() method
[1] http://struts.apache.org/2.1.2/docs/prepare-interceptor.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
>
> struts2
> /*
> REQUEST
> FORWARD
>
>
> It does appear to solve the problem I was just wondering why ?
Because it's up to a servlet container how it will forward to /*
(request, forward, redirect ;-), the same is with
index.action is working or not.
Regards
--
Lukasz
http://www.lenart.
Iterator Tag [1], second and third example
[1] http://struts.apache.org/2.0.11.2/docs/iterator.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
Hello everyone,
this is my first S2 project - i am a newbie (although i have a tiny
little experience with S1...). :-)
I am storing my view (JSP) files in /WEB-INF/jsp/... so they cannot be
accessed directly to prevent links from external pages that contain fake
parameters. Therefore all request
Hi,
Are you sure that the behaviour was really odd? So, you didn't have
different entry points to show login page. E.g. directly requesting the
login page or being forwarded by an other url.
Regards,
Jeoffrey
2008/7/10 Lyallex <[EMAIL PROTECTED]>:
> Hello
>
> Tomcat version 5.5.26
> Struts2 v
--- On Thu, 7/10/08, Mike Watson <[EMAIL PROTECTED]> wrote:
> So what's the best way to get the latest 2.1.3 snapshot as source?
Via SVN.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Actually you don't even have to use the modulus operator there -- you can
access #stat.even or #stat.odd directly.
jk
On Thu, Jul 10, 2008 at 5:56 AM, ManiKanta G <[EMAIL PROTECTED]>
wrote:
> In which theme u want to implement?
> If it is in S2, u can use DisplayTag (displaytag.sourceforge.net),
--- On Thu, 7/10/08, AjaySrini <[EMAIL PROTECTED]> wrote:
> I'm using Struts2.0 in our application.I have written
> the code in such a way it supports Ajax().
> I'm successfully implemented the login screen using
> ajax.After user successfully logs in, the user views four
> Radio buttons written i
The thing to remember here is that unlike the constructor, prepare() won't
run on its own outside of a Struts context. So if you are writing unit
tests of your various execute() type methods, be aware that you will need to
run prepare() manually within the unit tests (or as part of setUp() or
what
2008/7/10 Radoslav Nedyalkov <[EMAIL PROTECTED]>:
> I'm so excited finally getting a consistent error page without a bunch
> of workarounds and patches, so
> here is the recipe for the struts/tiles/freemarker combination:
>
I think you'd better open a JIRA issue for this.
About Tiles 2.0.6 the
Hello,
I'm so excited finally getting a consistent error page without a bunch
of workarounds and patches, so
here is the recipe for the struts/tiles/freemarker combination:
prerequisites:
1. struts-2.1.x - put template_exception_handler=rethrow in
freemarker.properties to catch for the writeIfCo
Hello
Tomcat version 5.5.26
Struts2 version 2.0.11.1
I'm trying to understand why, given the following in web.xml requests
sometimes 'miss out' the Struts2 filter
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
It appears to really only be an issue with web.xml
In which theme u want to implement?
If it is in S2, u can use DisplayTag (displaytag.sourceforge.net), which
will look almost all needs of tabular reports or form (including paging,
sorting).
If you want to implement using tag, then use rowStatus of
the iterator and using the modulo (%) div
Use
.cust tr.odd {background-color:#ff;}
.cust tr.even {background-color:#DD;}
or
Find in google
-Original Message-
From: Narayana S [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 3:18 PM
To: Struts Users Mailing List
Subject: Customizing CSS
Hi,
as
Hi,
as per my requirement, i have to apply two different colors to
alternate rows.can any one guide me how to extend theme to implement this?
So what's the best way to get the latest 2.1.3 snapshot as source?
Only the jars seem to be in the maven snapshot repo...
Are there any instructions on doing that somewhere? I've looked but
can't find them...
2008/7/3 Jeromy Evans <[EMAIL PROTECTED]>:
> Mike Watson wrote:
>>
>> Hi Jeromy,
>>
>> I
Hi all,
I'm using Struts2.0 in our application.I have written the code in such a way
it supports Ajax().
I'm successfully implemented the login screen using ajax.After user
successfully logs in, the user views four Radio buttons written in a
struts 2 div tag.Based on the selection of the radio
Hi all,
I've got a multipage form bean to complete a registration in 3 steps.
Validator
is not working correctly. Some fields in the first page are validated,
some are not.
In the 3rd page none of the fields are validated. Now from what I
understand
I need to extend ValidatorActionForm instead
Sheesh, that works like a dream, thanks ...
Can't think how I missed that bit in the book.
Preparable, marvelous.
lyallex
On Wed, Jul 9, 2008 at 5:04 PM, Jim Kiley <[EMAIL PROTECTED]> wrote:
> I think in this situation I would have SomeAction implement Preparable, and
> put someComponent's init
Hi all,
just yesterday i had the very same problem in rails with date field,
so i searched for disabled definition and found this:
http://www.w3.org/TR/html401/interact/forms.html#successful-controls
and
http://www.w3.org/TR/html401/interact/forms.html#h-17.12
It looks like disabled flag will simpl
75 matches
Mail list logo