Not in particular. Basically, they all more or less do the same
(although sometime with different approaches to mocking): Set up the
action context, create a mock invocation and invoke intercept on the
interceptor with the mock invocation.
I think this is the smallest and simplest interceptor test
I had a look at a few in the 2.0.11.1 source tree. I couldn't
understand how they were structured. I haven't looked at the 2.1.3
source tree. Is there a particular one you would suggest?
Mark
On 11/09/2008, at 3:40 PM, Nils-Helge Garli Hegvik wrote:
Have you looked at the tests in the s
Have you looked at the tests in the source repository?
Nils-H
On Thu, Sep 11, 2008 at 7:31 AM, Mark <[EMAIL PROTECTED]> wrote:
> Hi all:
>
> Does anyone have a working example of unit testing a Struts 2 app? I've
> been looking around for awhile know and found the following resources.
> However
Hi all:
Does anyone have a working example of unit testing a Struts 2 app?
I've been looking around for awhile know and found the following
resources. However, I've not been able to get any of them to work.
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-
struts-2-action
Hi,
now i am working with tree control, when i load the tree i want to load
it default extended and what ever the node id i pass that should be
activated. how i can achieve this using struts 2.1 version. and one more
thing is when i select a node in the jsp page itself i have to find out the
pa
I¹m not certain, but could this be a conflict between jquery and whatever
new js libraries you¹ve added:
I¹d look into these 3. That¹s probably where the issue lies.
Z.
Do not give up, the game is not still over . (you can still do sth about it)
As an alternative, you can import the source code of xwork into ur workspace
and remove xwork the jar file, run your code in debug mode, find the culprit,
fix it. Then you can replace the class file in xwork jar fil
Musachy Barroso wrote:
this ticket: https://issues.apache.org/struts/browse/WW-2653 ?
Yeah, that's a fix for the same issue.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The OP isn't really using the built-in intrange validator, but doing it
manually (for some reason).
The problem, however, lies in the OP's configuration fragment:
WTT_CARDS_EDITOR
def_page_employee_card
def_page_employee_card
As soon as you start defining an action's inter
If Integer Range Validator does not work for you then you shoud consider
regular expression validation for same, its can be done by restricting
number of digits and allowing only numeric characters.
Here is an example of similar problem
http://struts-2-developers.blogspot.com/2008/08/struts-2-in
YES, you can backport struts 2 core and dependancy jar files to JDK 1.4 and
use them.
Here are the details of backporting
http://struts-2-developers.blogspot.com/2008/08/backporting-struts-2-to-jdk14-using.html
Backporting Struts 2 to JDK 1.4
Regards,
Priya
Praveen, Galagali (IE10) wrote:
Thanks.
Applying the workaround with Struts 2.0.11.1 and XWorks 2.0.4, and modifying
struts.xml by adding the interceptor-ref tag does not work:
22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw
exception
java.lang.IllegalArgumentException: URI scheme is not "file"
a
Any help would be appreciated. Tks!
- Original Message
From: Bipin Sadhwani <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Tuesday, September 9, 2008 1:07:12 PM
Subject: struts tiles problem
Hi everyone,
I have this wierd issue with tiles. Probably its a bug.
My environment is:
Hi,
There is nothing wrong : ) I just wanted to know if there was another method
to deal with this.
Thanks for the reply.
Regards,
- Original Message -
From: Dave Newton
To: Struts Users Mailing List
Sent: Wednesday, September 10, 2008 6:18 PM
Subject: Re: Dynamic radio bu
--- On Wed, 9/10/08, [EMAIL PROTECTED] wrote:
> Is this applicable to Struts 1.x?
No. What's the issue with indexed properties? They're the recommended way to
deal with indexed properties.
You could just do it by hand, tool.
Dave
> http://struts.apache.org/2.x/docs/radio.html
> specigy you
I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it
still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email
below:
- Original Message
From: Rene Gielen <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, July 16, 2008 2:
Thanks Martin,
Is this applicable to Struts 1.x?
Regards
- Original Message -
From: Martin Gainty
To: Struts Users Mailing List
Sent: Wednesday, September 10, 2008 5:12 PM
Subject: RE: Dynamic radio buttons with bean
http://struts.apache.org/2.x/docs/radio.html
specigy
http://struts.apache.org/2.x/docs/radio.html
specigy your list attribute to point to iterable map ( returned from Action
class )
e.g.
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the offici
Sorry but i dont understand what you mean, that´s what I am trying to do, get
the data, send it though a request bean to the jsp, and display the info as a
radio button. As far as i know, is not as easy as 123 (or I think), that´s why
I am looking for any better or easier ideas for "indexed prop
Something like this:
2008/9/10 amolbehl <[EMAIL PROTECTED]>:
>
> Hi I am trying to display a ArrayList of lists using struts2 iterator tag.
>
>
> private void dataReady(){
> for (int itr = 0; itr < this.HOURS; itr++) {
> tempList = new Array
Hi I am trying to display a ArrayList of lists using struts2 iterator tag.
private void dataReady(){
for (int itr = 0; itr < this.HOURS; itr++) {
tempList = new ArrayList();
// Add all the till related data
this ticket: https://issues.apache.org/struts/browse/WW-2653 ?
On Wed, Sep 10, 2008 at 9:58 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> Didn't we fix this already in xwork trunk?, I think I committed a patch
> someone supplied at some point.
>
>
> On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Eva
Didn't we fix this already in xwork trunk?, I think I committed a patch
someone supplied at some point.
On Wed, Sep 10, 2008 at 6:58 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
>
>
> Bobby Mitch wrote:
>
>> ok,
>> well for your information I asked about that problem in the JBoss problem,
>> thin
Most probably it is an xwork issue, I have been experiencing the same problem
for Websphere for 2.0.11.2 and 2.1.2, though 2.0.11.1 works for me.
- Original Message
From: Bobby Mitch <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, September 10, 2008 4:41:40 AM
Subje
use servlet the get the html, create the item name from database;
then use servlet request get the value in the html, the name of buttons U
can get from database 2.
I think it's simple than others.
--
BestRegards,
Mead
http://yayisoft.com
Jack Benny - "I don't deserve this award, but I have arth
Hi,
I need to display in a jsp a form with dynamic radio buttons, I mean:
There are several items in my DB. One item is read (each item has one
question and 4 possible answers).
I need to display the question and the 4 answers as a radio option
dynamically (with a bean). Then the users cheks a
I've removed it (I thought it was mandatory the theme="ajax" in the s:div due
to the previous code
Buscar
usuario
It does the same, the results page is loaded but after sorting or pagination
the results page is not opened in the div.
In fact, the scr
depends on if you want JS validation
action validation
ajax validation
explained at
http://struts.apache.org/2.x/docs/ajax-validation.html
HTH
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the
Thanks Dave.
I'll Will do accordingly.
Thanks,
ManiKanta
Dave Newton wrote:
--- On Wed, 9/10/08, ManiKanta G wrote:
Yes, from action class I m returning entire jsp page.
Well, that would explain why you're seeing an entire page in the div, then.
How can I return HTML fragment?
Lukasz Lenart escribió:
As Don said, implement small form, only with submit button and you
wouldn't have to use JavaScript.
Regards
OK, I´ll try to do it
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
> Can you confirm whether "crud.Group.listAll" is invoked after
> a validation failure?
No, when validation returns to the form action 'crud.Group.listAll' is
not invoked.
This happens with struts versions 2.0.11.x and 2.1.x
So you would expect using an action tag in this manner (to produce a
l
--- On Wed, 9/10/08, ManiKanta G wrote:
> Yes, from action class I m returning entire jsp page.
Well, that would explain why you're seeing an entire page in the div, then.
> How can I return HTML fragment? you mean another jsp page
> which contains only that html fragment?
Yes, if you're loading
Found the solution: http://struts.apache.org/2.x/docs/action.html
-Original Message-
From: Matthew Seaborn
Sent: 08 September 2008 17:12
To: Struts Users Mailing List
Subject: RE: Include menu action with sitemesh
Whenever I try to us s:include or jsp:include to access a Struts 2 action f
--- On Wed, 9/10/08, Francisco Exposito wrote:
>
>
Does it work if you remove *this* ? Again--if the div itself isn't
doing anything but is just a placeholder there's no reason to use ,
although I don't know if it would break anything.
> type="text/javascript">
> src="src/
Thanks Dave.
Yes, from action class I m returning entire jsp page.
Action class:
public class TimeServer extends ActionSupport {
private Date date = null;
public String execute() throws InterruptedException {
System.out.println("Request received...");
--- On Wed, 9/10/08, Cosmin Marginean wrote:
> Sorry for the misunderstanding - might not have been so
> clear. I meant performing some logic in the JSP. I would
> like to be able to do something like:
>
> class="someErrorClass"
>
...
In that case, use ValidationAware's getFie
Gawain Hammond wrote:
A really nice solution so far has been to an action tag to populate
forms, which has worked nicely the rest of the time. I've really liked
using this approach to fill drop-downs, like so:
...
list="%{#groupAction.list}" listKey="id" listValue="name"/>
That's a n
Dave, I'm lost... I don't see any difference but the ajax (between two
executions I only change the struts.xml file). I'll try to explain again and
please, if after my explanation you think there are too much differences,
please tell me which differences do you see. But I think I've isolated al
--- On Wed, 9/10/08, ManiKanta G wrote:
> ...
>
>
>
>
>
> Current time from server
> theme="ajax" id="timeDiv">
>
>
>
>
>notifyTopics="time"/>
>
>
>
HI,
Thanks very much for your input. I think a lot of the confusion I'm
having is that I've been following 2.1.x documentation while using
2.0.x. Sometimes it's not been clear if the documentation I'm following
is for a particular version or not, and with the many way to do
something it can be ea
Sorry for the misunderstanding - might not have been so clear. I meant
performing some logic in the JSP. I would like to be able to do
something like:
class="someErrorClass"
>
--- On Wed, 9/10/08, Cosmin Marginean wrote:
Is there a way to check if a certain field error has been
Hi,
I've just started experimenting with Ajax capabilities in S2.
For this I m getting the time from action class when ever user clicked
the 'Get time' button.
...
Current time from server
..
--- On Wed, 9/10/08, Cosmin Marginean wrote:
> Is there a way to check if a certain field error has been set?
In S2 use ValidationAware's getFieldErrors(...) method.
http://struts.apache.org/2.0.11.2/struts2-core/apidocs/com/opensymphony/xwork2/ValidationAware.html#getFieldErrors()
Dave
--
--- On Wed, 9/10/08, Francisco Expositowrote:
> The unique difference I see is that the correct one
> doesn't use ajax, isn't it?
There's a huge number of differences between the two examples. That's not how
you isolate a problem.
The advice I provided stands; and I'd still remove the tags if
Anyone listening that has the kudos to remove [EMAIL PROTECTED]
from struts-dev and struts-user?
I've grown weary of the warning received whenever I post a message to
either list.
Original Message
Subject:Warning: [EMAIL PROTECTED] - User unknown!
Date: Wed, 10 Sep
Hello everyone,
I am trying to provide some custom validation error handling in a JSP.
For this I would like to perform some logic in the JSP when a validation
fails, instead (or in addition) of displaying the actual error message.
Is there a way to check if a certain field error has been set?
The unique difference I see is that the correct one doesn't use ajax, isn't it?
As I've seen, the javascripts are executed only when the menu page is loaded.
When I go to the secondary page, it is not executed.
I've created a button adding it a call to the function changeLoads (which is
inside
Bobby Mitch wrote:
ok,
well for your information I asked about that problem in the JBoss problem,
thinking that the problem could come from JBoss, and I just posted the question
on the XWORK forum
where i hope they will help me fix it.
http://forums.opensymphony.com/thread.jspa?threadID=4542
There are too many differences between your two examples. You should build up
the functionality from one to another until it breaks and start from there.
One thing I'd comment is that if your divs are just containers then don't use
the tag, as with the ajax theme they're really designed for
so
I've changed the order and now that error doesn't appear, but it doesn't work
yet...
I have done a test with this page:
<%@ page import="ads.web.action.UsuarioAction"%>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
<%
Object result = session.getAttribute( "result" );
Usuario
ok,
well for your information I asked about that problem in the JBoss problem,
thinking that the problem could come from JBoss, and I just posted the question
on the XWORK forum
where i hope they will help me fix it.
http://forums.opensymphony.com/thread.jspa?threadID=454261
http://www.jboss.com
2008/9/10 Marcello Savino <[EMAIL PROTECTED]>:
> No it's a string customer table
> I mean the same application must show differents strings depending on
> the installazion
> Ie.: some customer prefer the descriptor "Main store" and others prefer
> "Main location" on the same place of the same web p
No it's a string customer table
I mean the same application must show differents strings depending on
the installazion
Ie.: some customer prefer the descriptor "Main store" and others prefer
"Main location" on the same place of the same web page.
> -Original Message-
> From: Antonio Petr
2008/9/10 Marcello Savino <[EMAIL PROTECTED]>:
>
> I have to menage a string table (something like the application
> resource), that is a "customer customized" table.
> The same resource message could be different, depending on the
> installation.
Is it some sort of configuration stored in a DB? I
Hi everybody.
I have to menage a string table (something like the application
resource), that is a "customer customized" table.
The same resource message could be different, depending on the
installation.
I figure out some solution (xml file, DB table) but i'd like to know if
there something in t
55 matches
Mail list logo