Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
This is the tiles.defs.xml : http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>

Re: How to get all sessions in one web application

2008-06-26 Thread Nils-Helge Garli Hegvik
Most application servers expose some kind of monitoring and management operations, usually through JMX. Check the documentation for your application server for more information. Nils-H On 26. juni. 2008, at 13.42, Joey <[EMAIL PROTECTED]> wrote: for example, in a application, a admin user

InternetExplorer > View... > Encoding

2008-06-26 Thread Raghuveer
I have designed a web multiannual web application in "UTF-8". JSP Code: <%@ page contentType="text/html;charset=utf-8" %> <% request.setCharacterEncoding("utf-8"); // this can be added in Servlet Filter or in Action Form %> When JSP page is rendered it is found in IE > View... > Enco

RE: Multi-row tabular forms

2008-06-26 Thread Dave Newton
That was, more or less, why I suggested manually creating an array index in the name of the field. --- On Thu, 6/26/08, Kleiderman, Matthew <[EMAIL PROTECTED]> wrote: > From: Kleiderman, Matthew <[EMAIL PROTECTED]> > Subject: RE: Multi-row tabular forms > To: "Struts Users Mailing List" > Date

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
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 yo

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
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 --

RE: Multi-row tabular forms

2008-06-26 Thread Kleiderman, Matthew
And I think the problem I'm having is figuring out what to do in the absence of an indexed property in the s:textfield tag - there's nothing in the generated HTML that suggests this is going into a Collection on the Action side. - Matt -Original Message- From: Nikhil Walvekar [mailto:[EM

Re: How to get all sessions in one web application

2008-06-26 Thread Paweł Wielgus
Hi Joey, from a security point of view, this should be forbiden. But You may have a look at manager application from tomcat distribution, there is exactly such thing that counts and show all sessions in application. I've no idea how it's done there though, but most likely there are sources for it i

Re: How to get all sessions in one web application

2008-06-26 Thread Joey
for example, in a application, a admin user maybe want to check all sessions on this application, just for this as I wrote in my first email, I am using a listener to add each session when a session created, but I am lazy', so just wondering maybe there is a better and easier way to get all s

jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
I want to test an action with jUnit. I have found a way to test Struts2 from http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit this tutorial. I set the configuration file to struts.xml file. It works as expected if I do not include tiles. My test cl

Re: Multi-row tabular forms

2008-06-26 Thread Nikhil Walvekar
Hi Matt, For Struts 1.1, I used to do following things: Syntax may be wrong (tried 2 yrs back :D ). But with this, I got another error, while populating data into form. The collection needs to have required number of objects. If you know that only 2 rows will be present then you

Re: How to get all sessions in one web application

2008-06-26 Thread Wendy Smoak
On Thu, Jun 26, 2008 at 3:53 AM, Joey <[EMAIL PROTECTED]> wrote: > Just want to know how to get all sessions. > now, I used a listener to add ActionContext.getContext().getSession() > to a list by myself, I just wondering maybe there is a struts API can > get all sessions. AFAIK there is no 'getS

Re: How to get all sessions in one web application

2008-06-26 Thread Jorge Martín Cuervo
Hi Joey, i think this is not a struts issue. As far as i know, you can't access all sessions with servlet 2.3 compliant container (i don't know earlier versions) You can try to use session listeners to session store info in a common place or jmx solution. El jue, 26-06-2008 a las 18:53 +0800, Joe

Re: How to get all sessions in one web application

2008-06-26 Thread Lukasz Lenart
Hi, The best option is to build your own session listener like that [1] and register it with web.xml [1] http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm Regards -- Lukasz http://www.lenart.org.pl/ - To uns

How to get all sessions in one web application

2008-06-26 Thread Joey
Hi, Just want to know how to get all sessions. now, I used a listener to add ActionContext.getContext().getSession() to a list by myself, I just wondering maybe there is a struts API can get all sessions. Thanks. Joey - To unsu

Re: weird problem tag.

2008-06-26 Thread Paweł Wielgus
Hi Sarath, this is content of my TestAction: --- public List getMyList() { ArrayList result = new ArrayList(); result.add("1."); result.add("2.."); result.add("3..."); return result;

<    1   2