quinquin2209 wrote:
I am using Struts 2 and I wanna develop a datagrid as that provided in
Struts Layout. I have couple of questions:
I don't know what Struts layout is, but there is a nice
grid in dojo 1.0 (in dojox).
It's not included in Struts2 (I think), but it will be someday.
Łukasz Łapiński wrote:
I would really love to use IoC in my struts project. Has anyone any
experiences with integration Struts and Guice.
I'm using Guice, but I'm not defining any modules
(what do you need them for?)
I just added 3 libs (guice-1.0.jar, guice-servlet-1.0.jar,
Diego Ezquerro wrote:
I'm developing a web app using struts and wanna know if there is a way to get
the session attributes using struts tags.
What i want to do is something like this (within a jsp page):
%
User user = (User)session.getAttribute(user);
out.println(bWelcome +
setecastronomy wrote:
Hello, I'm moving the first steps with S2.
I'm going to build a form with many input components. Some of them should be
disabled or hidden based upon the selection of a radio button. In a pure jsp
scenario where html tags are used I can link some javascript function which
JBL wrote:
We have a link to a Struts 2 action that includes a URL parameter
(.../something_method.action?name=NAME), and the URL parameter is getting
lost -- it doesn't show up in the action, the request map (when we implement
RequestAware), the parameter map (when we implement ParameterAware),
Session A Mwamufiya wrote:
1. capture values from the frame and put them in the session object
2. load a different page in the current frame
3. force the other frame to reload
Getting 1 and 2 are fine with the standard struts 2 flow of events (1 in the
action, and 2 as the result page), but
Session A Mwamufiya wrote:
Is there a way to implement access control in struts 2? I presume that we can
use an interceptor, but I'm not sure how to map actions to specific roles. Any
ideas?
Session A Mwamufiya wrote:
Thanks for the replies guys, but is there an example that I can follow? It
seems to me that a user's roles are defined in a request object, but I'm not
sure how. I'm continuing to search online for examples.
Mapping roles to action is putting this into
rrecoba wrote:
Hi, i´m trying to do something like the example A div that calls the server,
and JS in the resulting page is executed in the showcase. But with a little
diference, i´m not using the href in the s:div tag, i´m just using a link to
reload the content.
The problem is that the
sol myr wrote:
1. Have you used struts2 in production, and did you feel it was mature and
stable?
We used it.
It's AJAX theme is not very mature, the rest is.
If you know how to use DOJO manually - you're pretty safe.
Oleg
rrecoba wrote:
Hi, The problem was that the js has some javascript to be executed that uses
the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
Define a function with your JS and execute it once page is
nodep wrote:
and it's wrong because there's a tag field-validator not closed.
Struts2 doesn't stop the flow and go to my action: for me it's not logic,
it should stop with some error and return to the prev page ...
What do you think?
We think that XML validity check is a task of DTD
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
Session A Mwamufiya wrote:
I'm relaunching this thread in case an s:tree expert may have missed it the
first time around :).
Is there a way that when a s:tree is reloaded, it expends to a particular
level of expansion? I presume that I will save that expansion level in
my session object, but
Session A Mwamufiya wrote:
I'm relaunching this thread in case an s:tree expert may have missed it the
first time around :).
Is there a way that when a s:tree is reloaded, it expends to a particular
level of expansion? I presume that I will save that expansion level in
my session object, but
Hi!
Anyone fought a problem with guice plugin not working
with custom converters?
Thanks,
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
vamsi wrote:
I have some problem with date conversion.
Is struts automatically converts String in to date format?
if the answer is YES How to do that
http://struts.apache.org/2.x/docs/type-conversion.html
XWork will automatically handle the most common type conversion for you.
Laszlo Borsos wrote:
When I have a syntax error in a tag, I get an Unable to load class for
JSP / ClassNotFoundException, as the JSP file does not get translated
and compiled. But Tomcat 6 logs don't show the original exception, that
would refer to the problem. How can it be logged?
Syntax
Oleg Mikheev wrote:
Anyone fought a problem with guice plugin not working
with custom converters?
I'm working it around by using per field converters
instead of global ones, but it's no good.
Oleg
-
To unsubscribe, e-mail
vamsi wrote:
But it is saying Paramtert interceptor unable to convert the
java.lang.String to Date and giving an Illegalargumentexception
any information why it is saying like that
You have to make sure the value entered is in correct format.
It should be in format that is
Néstor Boscán wrote:
I created a code based on the WebWork code that can invoke a Struts 2 Action
from DWR. You can invoke it just like the WebWork version and you can use
DWRActionUtil.js. It does not do everything that the WebWorks code does, it
invokes de Action method and returns the Action
Anna Simbirtsev wrote:
html:link page=/myAction.do paramId=param1 paramName=value
html:img srcKey=add.button.image altKey=add.button.image.alt
width=80 height=20border=0//html:link
value is a bean in struts, that has get/set functions.
I think that value itself should be a String not
Anna Simbirtsev wrote:
I tried first assigning the value to a string and then sending it.
% String value_ = duf1.getValue(); %
html:link page=/myAction.do paramId=value_name paramName=value_
html:img srcKey=add.button.image altKey=add.button.image.alt
width=80
Hi!
I wrote an article on AJAX tables with Struts 2:
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
Should a module be created based on that concept?
Oleg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
j alex wrote:
I'm using Websphere and am still stuck with using Ajax for validations ;
since i'm not able to install the right patch etc.
The performance tuning tip says copy the static content from the Struts 2
jar when using the Ajax theme . Can someone please give me the steps to do
this ? .
j alex wrote:
i need to customize them in terms of the error message
presentation ; and also because i'm using Websphere which is not resolving
the references from the JAR directly.
Concerning customization - you don't need to edit anything,
you can just introduce your own JavaScript function
j alex wrote:
How can i get some insight into the js functions invoked for Ajax
validation? ; unless i know what they are i cannot override them :-) .
Looking at the example showcase, i only see the s:head theme=ajax/ and
seems it does all the magic
It does, but to customize it you have to
Anna Simbirtsev wrote:
Hello
I have 2 screens that use the same form. The form class has a validate
function. To distinguish which screen(jsp file) is using the form I do the
following in jsp files:
% session.setAttribute(page, add) %
% session.setAttribute(page, add_2) %
Then in the form
j alex wrote:
Since i cannot use the Ajax/XHTML theme due to UI layout issues , i'm having
a custom theme that extends simple ; i wanted to know if this validation
really depends on having theme=ajax
I replaced s:head theme=ajax / with the equivalent javascript includes,
and it seems to work
j alex wrote:
If you don't mind can you please paste the script includes and directory
structure where you placed the actual files (in relation to the webapp
root). I tried going thru the saved HTML output from S2 showcase example and
got a bunch of js files ; but not able to place them
N N wrote:
And a JSP (fragment):
...
...
It's a miracle.
Empty JSPs don't usually result in any request parameters.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Marc Eckart wrote:
Any ideas? Or any other suggestions?
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Martin Gainty wrote:
Im sorry.. what is the question?
I think he is asking whether he needs to use Spring
fw to connect to DB several times.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Session A Mwamufiya wrote:
I ran a simple jsp page with the img tag to add an image, and it ran fine.
However, if I do the same in my struts 2 project, I don't get anything showingup. My
image file is within the same folder as the jsp file and is referenced the same way
in both cases.
Any
Session A Mwamufiya wrote:
Any pointers as to which template file I should be modifying?
Get Firebug and see what exactly makes it being italic.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Phil404 wrote:
I presume you mean org.apache.struts2.servlet.ParameterAware. If I implement
setParameters(), it is not called before the execute() method. I'm still in
the dark. I feel like I'm missing something really simple.
Try this:
Phil404 wrote:
I don't think this is the problem since if I view source the generate code
says:
--img
src='/surveytortoise-main/piechart.action?visual=10amp;auditory=15amp;kinesthetic=20'
/
So, the code seems to be correct. Why are these parameters not being set by
Struts2? Please help!
Dave Newton wrote:
I have just renamed it to struts2-core.jar and
replaced in my application that was working with
2.0.9 version.
You can't just randomly replace libraries.
You can replace 2.0.8 with 2.0.9, but you can't
replace 2.0.9 with 2.1.0
This is what they call a rule of thumb 8-)
Brian Trzupek wrote:
s:if test=%{(#isAdmin == true) or (#isScanner == true)}
s:set name=isAdmin
value=[EMAIL PROTECTED]@getRequest().isUserInRole('Administrator')}/
Both of the above constructs should execute in no time.
I really think that there is something else that slows downs
your
Henry Park wrote:
I could not get the packaged struts2 ajax implementation to work, so I am
trying to go at it with plain javascript.
I have Struts2 ajax working fine.
What was the problem?
-
To unsubscribe, e-mail: [EMAIL
Zarar Siddiqi wrote:
I really recommend using something like Prototype to do your Ajax
stuff. There's no need to reinvent the wheel and introduce countless
Struts2 incorporates DoJo, so there's not much sense
adding another Ajax framework
sol myr wrote:
What's the Strut2 recommendation for Table Pagination (AKA Paging)?
We're showing a large table (say, 500 records) and need to break it down to
25 pages (20 records per page).
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
I was trying to upgrade from 2.0.9 to the latest Struts 2 and
encountered this issue:
http://issues.apache.org/struts/browse/WW-2107
If I have a lot of code like this:
s:checkbox id=${transactionType}form_qoInceptionPPDO_${forStatus.index}
name=qoInceptionPPDO_${forStatus.index} theme=simple
Hoying, Ken wrote:
Editorial: I cannot help but wonder if these consecutive painful
upgrades are going to have an adverse affect on Struts2 adoption, future
user base and perception. I have been a big proponent of Struts2 up
till now, but must admit that I am finding myself questioning if
Dave Newton wrote:
Change the TLD?
The combination of the two levels of EL is a security risk in some
applications. If you're not worried about it or not affected by it then
it's an easy, if annoying, workaround.
Thanks
Is repackaging struts jar the only way of doing that?
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?
After I read REST plugin author's Struts 2 in
Hi
Are there any plans to re-enable JSTL EL in custom tags which
was disabled starting from Struts 2.0.10?
And, where can I find the changes between Struts 2 and 2.1?
Any 2.1 documentation available yet?
Thanks,
Oleg
-
To
Chris Pratt wrote:
I proposed a method of enabling JSTL EL safely a while ago, but I
haven't heard anything (or had any time to actually do anything about
it myself).
But if they had to get rid of one of two ELs why did they decide to
keep OGNL?
Isn't JSTL more popular and more standard?
Oleg
Paolo Niccolò Giubelli wrote:
html:link href=/reserved/new_item/step1/${category.id}/${category.name}
bean:write name=category property=name/
/html:link
What is your Struts 2 version? I thought that at some point Struts 2
made it impossible
Dave Newton wrote:
I'm pretty sure it's Struts 1, since there are both html:... and bean:... tags.
The c:url... answer, however, is probably the easiest.
My bad :)
I always keep forgetting that two Struts' share one mail list
Oleg
Hello
To put it straight:
do I understand it right that S2 AJAX validation doesn't
take care of action errors, only the field ones?
So that action errors are displayed only on submit.
Thanks
-
To unsubscribe, e-mail: [EMAIL
Musachy Barroso wrote:
I think I misunderstood your question, it does serializes the action
errors, but it doesn't show them on the page for you.
But it doesn't serialize them in 2.0.x right?
I understand that 2.1 is very promising, but it is still in beta...
And since 2.1 doesn't display
ndario wrote:
Is there any way to validate the string before conversion to BigDecimal?
The right (and default) way of handling conversion errors is to
use the Conversion Error Interceptor:
http://struts.apache.org/2.x/docs/conversion-error-interceptor.html
There is no converter for
Hi guys!
What are the plans for v2.1 release? Is there
any roadmap available?
Like this one but with dates:
http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi all,
I've written an article on Struts 2 validation.
http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html
Any comments are welcome, especially on the 'hack' proposed
there in 'advanced' section.
W/o that hack S2 AJAX validation would require me to
create a separate
Hi
I was trying to create a project as described here:
http://struts.apache.org/2.1.8.1/docs/struts-2-blank-archetype.html
If failed due to issue https://issues.apache.org/jira/browse/WW-3366
The issue is months old.
If the issue takes so long to get fixed why would someone change
the
Guys,
I'm trying to use 2.1.8.1.
Do I really need to have saxon9-dom.jar with it?
When I was on 2.0.x I don't think it was required.
Now when I try to start a tutorial webapp I see this error
(filed it as https://issues.apache.org/jira/browse/WW-3412)
Mar 21, 2010 1:38:30 AM
Hi,
I don't like Spring and that's why I'm using Struts2.
I thought that Struts2 Spring integration is optional,
at least that's the official version.
Unfortunately mvn dependency:tree tells me that struts2-core
depends on Spring:
[INFO] +- org.apache.struts:struts2-core:jar:2.1.8.1:compile
created an issue
https://issues.apache.org/jira/browse/XW-379
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Oleg Mikheev wrote:
Do I really need to have saxon9-dom.jar with it?
That strange error message was caused by some other jars
in Tomcat share lib folder, probably castor.
Strange
Oleg
-
To unsubscribe, e-mail: user
Guys,
It took me some quite some time to understand how to pass a
dynamic value to a textfield label.
It appeared that I needed to use this strange notation: %{#var}
like this:
c:set var=ro value=qwe scope=request/
s:textfield name=username label=%{#request.ro} /
I haven't found any description
62 matches
Mail list logo