to
tiles.defs.xml as suggested, but it gave an XML parse exception. What can
be the solution;?
Thanks
jUnit newbie Ezgi :)
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18131822.html
Sent from the Struts - User mailing list archive at Nabble.com
2008/6/26 ezgi [EMAIL PROTECTED]:
If I include the tiles part in struts.xml, it gives a NullPointerException :
Did you add the StrutsTilesListener in your web.xml?
http://cwiki.apache.org/confluence/display/WW/Tiles+Plugin
Did you configure Tiles correctly?
Antonio
2008/6/26 ezgi [EMAIL PROTECTED]:
If you look at the tutorial I refer, you can understand that I am not the
only one who have this problem. I try to set the configuration file to
tiles.defs.xml as suggested, but it gave an XML parse exception.
Can we see the Tiles definition files that you
: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18132170.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail
2008/6/26 ezgi [EMAIL PROTECTED]:
This is the tiles.defs.xml :
listener
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class
/listener
servlet
servlet-nametiles/servlet-name
/tutorial/configuration.html
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
The problem is that you are using StrutsTilesListener (that
loads /WEB-INF/tiles.xml by default), TilesServlet and
TilesFilter at the same time.
Two is one, one is none! Three is... three is right out.
You're just mad because of
2008/6/26 Dave Newton [EMAIL PROTECTED]:
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
The problem is that you are using StrutsTilesListener (that
loads /WEB-INF/tiles.xml by default), TilesServlet and
TilesFilter at the same time.
Two is one, one is none! Three is... three
2008/6/26 ezgi [EMAIL PROTECTED]:
I tried three of them seperatley, but it did not work.
Please clarify, what do you mean with it did not work? Do you
receive an exception at startup?
Should I modify the configuration variable in the BaseStrutsTestCase? I did
not add there
web.xml and
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote:
Eh? I know I am supposed to laugh, but since I am Italian
could you explain it a little ;-)
Or cry; Spain whupped ya' 4-2.
Dave
-
To unsubscribe, e-mail: [EMAIL
2008/6/26 Al Sutton [EMAIL PROTECTED]:
At least they made it to the tournament :(
Ah now I got it. You know, I removed the tournament from my memory
after the penalty kicks :-D
I see the positive point though, Donadoni is going away and Lippi is
coming back.
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18132968.html
Sent from the Struts
2008/6/26 Antonio Petrelli [EMAIL PROTECTED]:
2008/6/26 Al Sutton [EMAIL PROTECTED]:
At least they made it to the tournament :(
Ah now I got it. You know, I removed the tournament from my memory
after the penalty kicks :-D
Oh by the way, Al, I have to say one little secret.
We sent you
2008/6/26 ezgi [EMAIL PROTECTED]:
I have just replaced the code with the new one, isn't it the one you
suggested?
Yes, but you had to adapt it to your needs.
By the way, do you still receive a parsing error, at startup?
Antonio
: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133212.html
Sent from the Struts - User mailing list archive at Nabble.com
2008/6/26 ezgi [EMAIL PROTECTED]:
If I add the location of web.xml or any other thing to here
private static final String CONFIG_LOCATIONS = file:src/struts.xml ;
I got a parsing error. I am not very experienced with tiles, I just test the
code in a big project. The problem is , if I do not
configuring the artificial environment?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing
2008/6/26 ezgi [EMAIL PROTECTED]:
In my action, I have a reference to Http request and it requires to access
the HttpServletRequest object, so I can not easily test the action with just
calling the execute method and comparing the result. So, I have found out a
solution from the link that I
in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133751.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
2008/6/26 ezgi [EMAIL PROTECTED]:
If you look at the link, you can understand the problem. Whose
initialization is the one that you can't understand?
I see, but I am sorry, without initialization Tiles won't work.
Antonio
-
.
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133946.html
2008/6/26 ezgi [EMAIL PROTECTED]:
How can I initialize tiles in this context?
In some ways, you have to manage to put StrutsTilesListener, or at
least its code, but I don't really know how to do it.
I suggest to ask the BaseStrutsTestCase developers.
Antonio
/jUnit-Testing-Problem-with-Tiles-tp18131822p18134225.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
23 matches
Mail list logo