RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
One more addendum to this.
 In case you want this intialization parameter to be 
available to all the servlets in your web application, then
it should be defined like this in web.xml


 myParamName
 myParamValue


Now you can call getInitParameter("myParamName") on the 
ServletContext to retrieve it's value.

ServletContext ctxt = servlet.getServletContext();
String  sname = ctxt.getInitParameter("myParamName");

 OR

String paramValue =
 request.getSession().getServletContext().getInitParameter("myParamValue");

There is one ServletContext per "web application" per Java Virtual Machine. 

If intialization parmaeter is defined for a specific servlet, then it'll be
accessible only by this servlet. To retrieve this parameter need to call
getInitParameter() on this servlet.

Hope it clears your doubt.
- Ashutosh

-Original Message-
From: Ashutosh Satyam 
Sent: Thursday, May 20, 2004 10:45 AM
To: Struts Users Mailing List
Subject: RE: How to read a parameter in web.xml from Action class


Try using the below mentioned code to read intialization parameter
defined in the Web descriptor file.

String sname = servlet.getInitParameter("myParamName");
 
   OR

ServletConfig config = servlet.getServletConfig();
String sname = config.getInitParameter("myParamName");

'servlet' is a field defined in Action class, so it can be used in your action class. 
It returns the controller servlet instance (i.e instance of the ActionServlet ) to 
which 
the Action clas is attached to.

Regards,
Ashutosh

-Original Message-
From: Frank Burns [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 8:59 AM
To: Struts Users Mailing List
Subject: Re: How to read a parameter in web.xml from Action class


Sorry, see my CORRECTION below:

- Original Message - 
From: "Frank Burns" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 4:19 AM
Subject: How to read a parameter in web.xml from Action class


> Hi,
>
> From an Action class, I want to read a parameter specified in the web.xml
> file. I thought I could place it in an  block, within the
> action element, like this:
>
> 
>   myParamName
>   myParamValue
> 
>
> and then read it within the Action class using:
>
> String paramValue =
> request.getSession().getServletContext().getInitParameter("myParamValue");


CORRECTION:
request.getSession().getServletContext().getInitParameter("myParamName");

>
> But I get null.
>
> What am I doing wrong?
>
> Thanks,
>
> Frank.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: connection pooling

2004-05-19 Thread brati . sankarghosh

If 5 users are simultaneously using
the database connections then you need to create more connections.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





Lokanath <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
05/20/2004 10:11 AM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
Struts Users Mailing List
<[EMAIL PROTECTED]>


cc



Subject
connection pooling








hi all

i have a doubt over connection pooling.When 5 users are using a project
in
struts and if i have defined the maximumnumber of connection to 4 .Then
how
many connection will be estblished.What i mean to say is how many visible
connection will be there in mysqlprocess

              lokanath

-Original Message-
From: Struts Users Mailing List [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:19 AM
To: [EMAIL PROTECTED]
Subject: Multiple nested Hashmaps. Limit?


I am running into a problem with multiple Mapped nested properties



When I use the following lines to access the Value form my dynaValueObj
Object I get this error

<%

  String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";

%>







[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''



After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().



Is there a limitation on how many map-backed properties you can
reference?



Thanks

Randy Shelley

[EMAIL PROTECTED]





-- Dyna Table Form Bean

public class DynaTableDataForm extends ActionForm {



  private DynaTableObj dynaTableObj = null;



  public DynaTableObj getDynaTableObj () {

    if (this.dynaTableObj==null) {

      this.dynaTableObj = new DynaTableObj();

    }

    return this.dynaTableObj;

  }

  public void setDynaTableObj (DynaTableObj dynaTableObj) {

    this.dynaTableObj = dynaTableObj;

  }

}

 Dyna Table Object

public class DynaTableObj {

  private LinkedHashMap dynaColumnObjs = null;



  public DynaTableObj() {}



  public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {

    this.dynaColumnObjs = dynaColumnObjs;

  }

  public LinkedHashMap getDynaColumnObjs() {

    return this.dynaColumnObjs;

  }

  public Object getDynaColumnObjs(String dynaColumnId) {

    if (dynaColumnObjs==null) {

      this.dynaColumnObjs = new LinkedHashMap();

      this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

    }

    else if (this.dynaColumnObjs.get(dynaColumnId)==null) {

      this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

    }

    return this.dynaColumnObjs.get(dynaColumnId);

  }



  public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {

    if (dynaColumnObjs==null) {

      this.dynaColumnObjs = new LinkedHashMap();

    }

    this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);

  }

}

-- Dyna Row Object

public class DynaRowObj {

  private LinkedHashMap dynaValueObjs = null;



  public DynaRowObj() {}



  public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {

    this.dynaValueObjs = dynaValueObjs;

  }

  public LinkedHashMap getDynaValueObjs() {

    return this.dynaValueObjs;

  }

  public Object getDynaValueObjs(String dynaColumnId) {

    if (dynaValueObjs==null) {

      this.dynaValueObjs = new LinkedHashMap();

      this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());

    }

    else if (this.dynaValueObjs.get(dynaColumnId)==null) {

      this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());

    }

    return this.dynaValueObjs.get(dynaColumnId);

  }

  public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{

    if (dynaValueObjs==null) {

      this.dynaValueObjs = new LinkedHashMap();

    }

    this.dynaValueObjs.put(dynaColumnId,dynaValueObj);

  }

}



- Dyna Value Object

package rshelley.timesheet.util;



public class DynaValueObj {

  private String dynaColumnValue = null;



  public DynaValueObj() {

  }

  public void setDynaColumnValue(String dynaColumnValue) {

    this.dynaColumnValue = dynaColumnValue;

  }

  public String getDynaColumnValue() {

    return this.dynaColumnValue;

  }

}





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT9596
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in wh

Form repopulation after validate

2004-05-19 Thread brati . sankarghosh

We are using the validate method to validate
the action form. However if validate returns false then we return to the
same page from where we came. But on returning, the form in the page remains
blank. How can we show this form populated.

Thanks
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multiple Databases.

2004-05-19 Thread Vishal Arora
well  that not the problem  but my problem is that i want to connect to
different databases  in my application and i m using datasource object  and
in my xml file i have given the details of my database
url,username,password  etc etc. but now i want to connect to another
database and if in struts-config.xml i give information abt other database
.but when in my controller when i will give call to my datasource object to
which database the connection will be made and how can i handle
it..like if i want to make connection to Database A and after sometime in
the same file if i want to make connection to DatabaseB how will it work and
what all changes i will have to make.and where. Pleaseif anybody can provide
an example it will be very helpfull.

Thanks.

Riyad Kalla wrote:

> IIRC you should use the connection pool mechanism of your App Server and
> not Struts... I believe its use was deprecated (someone please correct
> me if I'm wrong).
>
> Vishal Arora wrote:
>
> >Hi,
> >I want to connect to different Databases  in my application  using
> >the connection pooling of struts.How can i implement this and what all
> >changes i have to make in my application  and struts-config.xml file
> >to use such a scenario.If anybody can provide an example  it will be
> >very helpfull.
> >
> >Thanks in advance.
> >Vishal   .
> > "Everybody makes mistakes; that's why they put erasers on pencils."
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Vishal.

 "Everybody makes mistakes; that's why they put erasers on pencils."



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
Try using the below mentioned code to read intialization parameter
defined in the Web descriptor file.

String sname = servlet.getInitParameter("myParamName");
 
   OR

ServletConfig config = servlet.getServletConfig();
String sname = config.getInitParameter("myParamName");

'servlet' is a field defined in Action class, so it can be used in your action class. 
It returns the controller servlet instance (i.e instance of the ActionServlet ) to 
which 
the Action clas is attached to.

Regards,
Ashutosh

-Original Message-
From: Frank Burns [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 8:59 AM
To: Struts Users Mailing List
Subject: Re: How to read a parameter in web.xml from Action class


Sorry, see my CORRECTION below:

- Original Message - 
From: "Frank Burns" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 4:19 AM
Subject: How to read a parameter in web.xml from Action class


> Hi,
>
> From an Action class, I want to read a parameter specified in the web.xml
> file. I thought I could place it in an  block, within the
> action element, like this:
>
> 
>   myParamName
>   myParamValue
> 
>
> and then read it within the Action class using:
>
> String paramValue =
> request.getSession().getServletContext().getInitParameter("myParamValue");


CORRECTION:
request.getSession().getServletContext().getInitParameter("myParamName");

>
> But I get null.
>
> What am I doing wrong?
>
> Thanks,
>
> Frank.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Databases.

2004-05-19 Thread Riyad Kalla
IIRC you should use the connection pool mechanism of your App Server and 
not Struts... I believe its use was deprecated (someone please correct 
me if I'm wrong).

Vishal Arora wrote:
Hi,
   I want to connect to different Databases  in my application  using
the connection pooling of struts.How can i implement this and what all
changes i have to make in my application  and struts-config.xml file
to use such a scenario.If anybody can provide an example  it will be
very helpfull.
Thanks in advance.
Vishal   .
"Everybody makes mistakes; that's why they put erasers on pencils."

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: connection pooling

2004-05-19 Thread Riyad Kalla
If your pool max is 4, then you will see 4 and your 5th user will wait 
until someone returns their connection to the pool.


Lokanath wrote:
hi all
i have a doubt over connection pooling.When 5 users are using a project in
struts and if i have defined the maximumnumber of connection to 4 .Then how
many connection will be estblished.What i mean to say is how many visible
connection will be there in mysqlprocess
 lokanath
-Original Message-
From: Struts Users Mailing List [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:19 AM
To: [EMAIL PROTECTED]
Subject: Multiple nested Hashmaps. Limit?
I am running into a problem with multiple Mapped nested properties

When I use the following lines to access the Value form my dynaValueObj
Object I get this error
<%
 String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";
%>



[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''

After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().

Is there a limitation on how many map-backed properties you can
reference?

Thanks
Randy Shelley
[EMAIL PROTECTED]


-- Dyna Table Form Bean
public class DynaTableDataForm extends ActionForm {

 private DynaTableObj dynaTableObj = null;

 public DynaTableObj getDynaTableObj () {
   if (this.dynaTableObj==null) {
 this.dynaTableObj = new DynaTableObj();
   }
   return this.dynaTableObj;
 }
 public void setDynaTableObj (DynaTableObj dynaTableObj) {
   this.dynaTableObj = dynaTableObj;
 }
}
 Dyna Table Object
public class DynaTableObj {
 private LinkedHashMap dynaColumnObjs = null;

 public DynaTableObj() {}

 public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {
   this.dynaColumnObjs = dynaColumnObjs;
 }
 public LinkedHashMap getDynaColumnObjs() {
   return this.dynaColumnObjs;
 }
 public Object getDynaColumnObjs(String dynaColumnId) {
   if (dynaColumnObjs==null) {
 this.dynaColumnObjs = new LinkedHashMap();
 this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());
   }
   else if (this.dynaColumnObjs.get(dynaColumnId)==null) {
 this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());
   }
   return this.dynaColumnObjs.get(dynaColumnId);
 }

 public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {
   if (dynaColumnObjs==null) {
 this.dynaColumnObjs = new LinkedHashMap();
   }
   this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);
 }
}
-- Dyna Row Object
public class DynaRowObj {
 private LinkedHashMap dynaValueObjs = null;

 public DynaRowObj() {}

 public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {
   this.dynaValueObjs = dynaValueObjs;
 }
 public LinkedHashMap getDynaValueObjs() {
   return this.dynaValueObjs;
 }
 public Object getDynaValueObjs(String dynaColumnId) {
   if (dynaValueObjs==null) {
 this.dynaValueObjs = new LinkedHashMap();
 this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());
   }
   else if (this.dynaValueObjs.get(dynaColumnId)==null) {
 this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());
   }
   return this.dynaValueObjs.get(dynaColumnId);
 }
 public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{
   if (dynaValueObjs==null) {
 this.dynaValueObjs = new LinkedHashMap();
   }
   this.dynaValueObjs.put(dynaColumnId,dynaValueObj);
 }
}

- Dyna Value Object
package rshelley.timesheet.util;

public class DynaValueObj {
 private String dynaColumnValue = null;

 public DynaValueObj() {
 }
 public void setDynaColumnValue(String dynaColumnValue) {
   this.dynaColumnValue = dynaColumnValue;
 }
 public String getDynaColumnValue() {
   return this.dynaColumnValue;
 }
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple Databases.

2004-05-19 Thread Vishal Arora
Hi,
I want to connect to different Databases  in my application  using
the connection pooling of struts.How can i implement this and what all
changes i have to make in my application  and struts-config.xml file
to use such a scenario.If anybody can provide an example  it will be
very helpfull.

Thanks in advance.
Vishal   .
 "Everybody makes mistakes; that's why they put erasers on pencils."



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



connection pooling

2004-05-19 Thread Lokanath
hi all

i have a doubt over connection pooling.When 5 users are using a project in
struts and if i have defined the maximumnumber of connection to 4 .Then how
many connection will be estblished.What i mean to say is how many visible
connection will be there in mysqlprocess

  lokanath

-Original Message-
From: Struts Users Mailing List [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:19 AM
To: [EMAIL PROTECTED]
Subject: Multiple nested Hashmaps. Limit?


I am running into a problem with multiple Mapped nested properties



When I use the following lines to access the Value form my dynaValueObj
Object I get this error

<%

  String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";

%>







[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''



After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().



Is there a limitation on how many map-backed properties you can
reference?



Thanks

Randy Shelley

[EMAIL PROTECTED]





-- Dyna Table Form Bean

public class DynaTableDataForm extends ActionForm {



  private DynaTableObj dynaTableObj = null;



  public DynaTableObj getDynaTableObj () {

if (this.dynaTableObj==null) {

  this.dynaTableObj = new DynaTableObj();

}

return this.dynaTableObj;

  }

  public void setDynaTableObj (DynaTableObj dynaTableObj) {

this.dynaTableObj = dynaTableObj;

  }

}

 Dyna Table Object

public class DynaTableObj {

  private LinkedHashMap dynaColumnObjs = null;



  public DynaTableObj() {}



  public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {

this.dynaColumnObjs = dynaColumnObjs;

  }

  public LinkedHashMap getDynaColumnObjs() {

return this.dynaColumnObjs;

  }

  public Object getDynaColumnObjs(String dynaColumnId) {

if (dynaColumnObjs==null) {

  this.dynaColumnObjs = new LinkedHashMap();

  this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

}

else if (this.dynaColumnObjs.get(dynaColumnId)==null) {

  this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

}

return this.dynaColumnObjs.get(dynaColumnId);

  }



  public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {

if (dynaColumnObjs==null) {

  this.dynaColumnObjs = new LinkedHashMap();

}

this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);

  }

}

-- Dyna Row Object

public class DynaRowObj {

  private LinkedHashMap dynaValueObjs = null;



  public DynaRowObj() {}



  public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {

this.dynaValueObjs = dynaValueObjs;

  }

  public LinkedHashMap getDynaValueObjs() {

return this.dynaValueObjs;

  }

  public Object getDynaValueObjs(String dynaColumnId) {

if (dynaValueObjs==null) {

  this.dynaValueObjs = new LinkedHashMap();

  this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());

}

else if (this.dynaValueObjs.get(dynaColumnId)==null) {

  this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());

}

return this.dynaValueObjs.get(dynaColumnId);

  }

  public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{

if (dynaValueObjs==null) {

  this.dynaValueObjs = new LinkedHashMap();

}

this.dynaValueObjs.put(dynaColumnId,dynaValueObj);

  }

}



- Dyna Value Object

package rshelley.timesheet.util;



public class DynaValueObj {

  private String dynaColumnValue = null;



  public DynaValueObj() {

  }

  public void setDynaColumnValue(String dynaColumnValue) {

this.dynaColumnValue = dynaColumnValue;

  }

  public String getDynaColumnValue() {

return this.dynaColumnValue;

  }

}





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-bean:write and dynamic property parameter?

2004-05-19 Thread Rahul Mohan



hi 
dennis,
 
 ya...if u r using the rt version of taglibs u can use 
property="<%=parameter%>" . if u r using the el tags then use 
property="${parameter}"  
 
hope 
this helps
 
rahul

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 18, 
  2004 11:40 PMTo: Struts Users Mailing ListSubject: 
  struts-bean:write and dynamic property 
  parameter?Is there some 
  way to pass a pass a parameter to the "property" attribute of 
  struts-bean:write tag? Thanks, Dennis
** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm
* End of message ***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Multiple nested Hashmaps. Limit?

2004-05-19 Thread Randy Shelley
I am running into a problem with multiple Mapped nested properties

 

When I use the following lines to access the Value form my dynaValueObj
Object I get this error

<%

  String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";

%>

 



 

[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''

 

After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().

 

Is there a limitation on how many map-backed properties you can
reference?

 

Thanks

Randy Shelley

[EMAIL PROTECTED]

 

 

-- Dyna Table Form Bean

public class DynaTableDataForm extends ActionForm {

 

  private DynaTableObj dynaTableObj = null;

 

  public DynaTableObj getDynaTableObj () {

if (this.dynaTableObj==null) {

  this.dynaTableObj = new DynaTableObj();

}

return this.dynaTableObj;

  }

  public void setDynaTableObj (DynaTableObj dynaTableObj) {

this.dynaTableObj = dynaTableObj;

  }

}

 Dyna Table Object

public class DynaTableObj {

  private LinkedHashMap dynaColumnObjs = null;

 

  public DynaTableObj() {}

 

  public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {

this.dynaColumnObjs = dynaColumnObjs;

  }

  public LinkedHashMap getDynaColumnObjs() {

return this.dynaColumnObjs;

  }

  public Object getDynaColumnObjs(String dynaColumnId) {

if (dynaColumnObjs==null) {

  this.dynaColumnObjs = new LinkedHashMap();

  this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

}

else if (this.dynaColumnObjs.get(dynaColumnId)==null) {

  this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

}

return this.dynaColumnObjs.get(dynaColumnId);

  }

 

  public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {

if (dynaColumnObjs==null) {

  this.dynaColumnObjs = new LinkedHashMap();

}

this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);

  }

}

-- Dyna Row Object

public class DynaRowObj {

  private LinkedHashMap dynaValueObjs = null;

 

  public DynaRowObj() {}

 

  public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {

this.dynaValueObjs = dynaValueObjs;

  }

  public LinkedHashMap getDynaValueObjs() {

return this.dynaValueObjs;

  }

  public Object getDynaValueObjs(String dynaColumnId) {

if (dynaValueObjs==null) {

  this.dynaValueObjs = new LinkedHashMap();

  this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());

}

else if (this.dynaValueObjs.get(dynaColumnId)==null) {

  this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());

}

return this.dynaValueObjs.get(dynaColumnId);

  }

  public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{

if (dynaValueObjs==null) {

  this.dynaValueObjs = new LinkedHashMap();

}

this.dynaValueObjs.put(dynaColumnId,dynaValueObj);

  }

}

 

- Dyna Value Object

package rshelley.timesheet.util;

 

public class DynaValueObj {

  private String dynaColumnValue = null;

 

  public DynaValueObj() {

  }

  public void setDynaColumnValue(String dynaColumnValue) {

this.dynaColumnValue = dynaColumnValue;

  }

  public String getDynaColumnValue() {

return this.dynaColumnValue;

  } 

}



RE: [OT] Stress testing?

2004-05-19 Thread adam
You can also check out the Grinder 3 for stress testing your application. 



-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 4:27 PM
To: Struts Users Mailing List
Subject: RE: [OT] Stress testing?

I've used JUnit and JUnitPerf to drive tests written with HttpUnit. These
worked well for me, allowing me to stress our Struts app to levels of 100
simultaneous users. Is that stressful enough for you? (It certainly stressed
out our DB2 DBA's watching what all that application activity did to their
database ... we managed to get up to 100% CPU usage on an IBM 390! :-)
 
We didn't use SSL, so that might be a dealbreaker.
 
Simon
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 3:28 PM
To: Struts
Subject: [OT] Stress testing?


Hi All,
 
I am looking for a tool to help me stress test my application and would
greatly appreciated any recommendations, suggestions on how to perform such
testing and any procedures to follow:-). 
 
My requirements:
 
1)   Mimic the work flow process for processing a transaction over
several pages where session information is maintained so that my Transaction
control tokens will not be invalid. I would like to be able to specify the
starting form and follow the process request/response over several steps and
eventually complete the transaction.
 
2)   The ability to specify number of loops, threads(for concurrency)
and timed duration would be great. 
 
3)   Support for SSL
 
 
Thanks,
 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552 ext 230

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

  
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invalid Path

2004-05-19 Thread Hammer
Hi,

I am getting the following "Invalid path" error when I tried to add a 
action tag block in the struts-config.xml.

Any idea why this is happening?



   




The error I am getting is :

Error Code : 400 
Error occured while processing request : 
http://livdsweb2.aig.com/TerrorismApp/error.jsp 
Exception Type : com.ibm.servlet.engine.webapp.WebAppErrorReport 
Message : Invalid path /countryWiseDetailsInput was requested 
Stack Trace : com.ibm.servlet.engine.webapp.WebAppErrorReport: 
Invalid path /countryWiseDetailsInput was requested at 
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError
(WebAppDispatcherResponse.java:93) at 
org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1557) at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService
(ServletManager.java:827) at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:167) at 
com.ibm.servlet.engine.webapp.IdleServletState.service
(StrictLifecycleServlet.java:297) at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:110) at 
com.ibm.servlet.engine.webapp.ServletInstance.service
(ServletManager.java:472) at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
(ServletManager.java:1012) at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch 


Shiva


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Content length

2004-05-19 Thread itsraghuveerhere
Hi, 

I work for a financial organization. All of our applications will 
have to go thru a common portal for authentication and authorization. 
The problem is that this Portal has a limit of the output to be 
written. If we dont SPECIFY the CONTENT LENGTH of our pages and our 
pages contain exceed the limit as what was set by the portal then the 
exceeding portion of the page would be truncated and would not be 
displayed. We are using struts in our application. in out previous 
project where we didnt use struts we handled this problem by doing : 
Wrote a class which extends JSPWriter.
capturing "OUT" object in JSPs and stored it in a variable. Used  
out class object (which I created in the first step) and in the end I 
am getting the output string from the class object and setting the 
response content length as the length of output string we took from 
the class object and then using the variable that we used to store 
the OUT object we are printing it. This worked. But now the same 
doesnt work in struts environment. I dont know why?

We are using Servlets 2.2 specification thus not being able to use 
Servler Filters. All I need is to find the length of the output being 
written to response before the response object is sent.

Can anybody give me some inputs?

Thanks
RV


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts-bean:write and dynamic property parameter? (SOLVED)

2004-05-19 Thread DGraham

Never mind...seems that my email was
the catalyst to jiggle the response out of the recesses of my brain.



Thanks,
Dennis







Dennis Graham/EvergreenFunds
05/18/2004 02:09 PM




To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>


cc



Subject
struts-bean:write and dynamic
property parameter?Link







Is there some way to pass a pass a parameter
to the "property" attribute of struts-bean:write tag?

Thanks,
Dennis
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

struts-bean:write and dynamic property parameter?

2004-05-19 Thread DGraham

Is there some way to pass a pass a parameter
to the "property" attribute of struts-bean:write tag?

Thanks,
Dennis-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[ANN] Velocity Tools 1.1 released

2004-05-19 Thread Nathan Bubna
The Velocity team is happy to announce the release of Velocity Tools 1.1.

This release includes:
- support for Struts 1.1+ features (e.g. modules, sslext, tiles, and
validator)
- much improved generic tools (DateTool, MathTool, etc.)
- several new tools (ImportTool, CookieTool, etc.)
- support for integrating Commons-Logging and Velocity's LogSystem
- numerous minor bugfixes and improvements
- and other stuff too :)

For a more detailed list of changes see:
http://jakarta.apache.org/velocity/tools/changes.html

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Source Code: http://jakarta.apache.org/site/sourceindex.cgi

For more information on Jakarta Velocity Tools, see
http://jakarta.apache.org/velocity/tools/index.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Include common javascript file with relative path

2004-05-19 Thread Ding Lei
Hello folks,
There is a common jsp file named common_header.jsp used throughout the system, 
under PROJECT_ROOT/js/ directory, and various function jsp files are under different 
subdirs of PROJECT_ROOT, for example, appEdit.jsp,appRemove.jsp under PROJECT_ROOT/app 
directory.
Now the question is that how do I include a common javascript file in 
common_header.jsp without specifying an absolute path? Now i have to use something 
like "../js/common.js", which works for files under one level 
subdir(PROJECT_ROOT/app)... but definitely won't work other files under the 
PROJECT_ROOT or PROJECT_ROOT/app/something/ 
Any ideas?
Thanks in advance.


-- 
Regards,

<(( D i n gL e i ))>>
 ||  ||
 || Ext: 8102||
 || Email:||
 || Dept. Of Technology/Engineering  ||
 || Embedded Information Services Inc.   ||
 ||  ||
<((= )>>>

"I went to the museum where they had all the heads and arms from the
statues that are in all the other museums."
-- Steven Wright

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Sorry, see my CORRECTION below:

- Original Message - 
From: "Frank Burns" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 4:19 AM
Subject: How to read a parameter in web.xml from Action class


> Hi,
>
> From an Action class, I want to read a parameter specified in the web.xml
> file. I thought I could place it in an  block, within the
> action element, like this:
>
> 
>   myParamName
>   myParamValue
> 
>
> and then read it within the Action class using:
>
> String paramValue =
> request.getSession().getServletContext().getInitParameter("myParamValue");


CORRECTION:
request.getSession().getServletContext().getInitParameter("myParamName");

>
> But I get null.
>
> What am I doing wrong?
>
> Thanks,
>
> Frank.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Hi,

>From an Action class, I want to read a parameter specified in the web.xml
file. I thought I could place it in an  block, within the
action element, like this:


  myParamName
  myParamValue


and then read it within the Action class using:

String paramValue =
request.getSession().getServletContext().getInitParameter("myParamValue");

But I get null.

What am I doing wrong?

Thanks,

Frank.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ot] eclipse vs. IDEA

2004-05-19 Thread Shane Mingins
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 20 May 2004 2:34 p.m.
> To: Struts Users Mailing List
> Subject: Re: [ot] eclipse vs. IDEA
> 
> I can't say concerning the Mac, but on both Windows and Linux IDEA has
> always seemed to perform better than Eclipse. (Surprising because I
> don't even think IDEA uses SWT.) 

That's right, IDEA uses Swing!  I emailed and asked them once because
someone suggested they may have written their own windowing toolkit.

IDEA is one of the nicer examples of a Swing Application out there IMO.

Shane


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Riyad Kalla
IDEA (Swing) currently performs better on Mac and Linux because (a) IBM 
is dragging their feet getting the performance of SWT up to par on those 
non-Windows platforms. There was a HUGE stink about Linux performance, 
starting here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=37683, that 
resulted in major reworking of some key parts of Eclipse which will make 
3.0 much faster on all platforms, but that is still 1/2 as fast as Windows.

Also keep in mind that the JetBrains team is some of the sharpest and 
most systematic guys you'll ever meet. IntelliJ is an application with 
some of the finest tuned Swing programmer just about anywhere and the 
end result is a fantastic IDE.

If you have to use Eclipse and IntelliJ for 6 months each, I think you 
would fine IntelliJ is a much nicer IDE. "It Just Works" is a phrase you 
will find yourself using a lot. If you are doing JUST Java programming, 
you might be hard pressed to make a differential bulleted list, but if 
you are doing development (Java, Swing, JSP, Servlets, HTML Files, XML 
Files, DTDs, Schemas, TLDs, etc. etc. etc. etc.) you will spend most of 
your day trying to find half-finished plugins for Eclipse to do all of 
that (except the Java programming) while IntelliJ will offer you far 
superior support for these technologies by default. Also if you take the 
time to watch the viewlets for the GUI builder, I think you'll be 
pleasently surprised how powerful it can be.

If money isn't an object, and you are the kind of person that 
appreciates polish and attention to detail (I'm assuming you are, since 
you are on Mac already) then you have already selected IntelliJ. If you 
are a pretty nuts and bolts developers that loves free stuff and can 
stand needing to search for a plugin to give you missing functionality, 
and even then maybe not have the best support for it, then Eclipse is 
your choice.

Pound for Pound comparison of pure Java programming might be tight 
between the two, they are both *fantastic*, but once you start asking 
about other technologies and the like, then the arrow just points more 
and more to IntelliJ.

I hope this helped... I'm a bit passionate about IDEs :)
Best,
Riyad
Andy Engle wrote:
Hi all,
I am wondering (for you Mac users out there) if IDEA is less of a
resource hog than eclipse?  When I fire up eclipse on my Mac it seems
like that thing takes a lot o' juice.  Is IDEA just as bad, or is it a
little lighter?
Thanks,
Andy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Rick Reumann
Andy Engle wrote:
I am wondering (for you Mac users out there) if IDEA is less of a
resource hog than eclipse?  
I can't say concerning the Mac, but on both Windows and Linux IDEA has 
always seemed to perform better than Eclipse. (Surprising because I 
don't even think IDEA uses SWT.) I've used both Eclipse and 
IDEA and ended up buying IDEA when it went on discount. When I use IDEA, 
I don't feel like I'm using an IDE.. everything seems more inuitive.. 
the menus, the project set up, and the whole 'feel' of the application 
is more to my liking.

--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


form processing

2004-05-19 Thread Dean A. Hoover
I don't quite understand how DynaActionForm
gets populated when a form is submitted. The
form I have gets processed exactly as I expect,
except for a group of checkboxes (generated in
JSP by a custom tag I wrote). If I have one or
more checked it works fine. However, if I uncheck
all of them, it fails. The boxes come in checked
as they were before I unchecked all. I'm using
struts 1.1 and am generating
some checkboxes that look like this in
the JSP:
...

...



Health & Fitness



Diet





Fitness



...
When it hits my ChangeSeriesProps Action:
  public ActionForward execute
   (
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response
   ) throws Exception
   {
   DynaActionForm vForm = (DynaActionForm)form;
   log.debug("AAA: change properties: " + vForm.toString());
The log shows:
2004-05-19 18:47:38 DEBUG ChangeSeriesProps.java:52 - AAA: change properties: 
DynaActionForm[dynaClass=seriesProps,categoryIds={7},title=Life's a Bowl of Cherries 
xxx,description=Life is indeed a bowl of cherries 
xxx,strategy=weekdays,weekdays={Monday,Wednesday,Friday}]
The struts-config.xml has this definition:
   
 
 
 
 
 
   
...
   
 
 
 
   
Any ideas why categoryIds is *not* empty?
Dean Hoover


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Pedro Salgado
On 04/05/19 23:57, "Andy Engle" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 

  I tested IDEA 3 and it ran great on my G3 600MHZ (640Mb RAM) with Jaguar.
  Last week, I checked IDEA 4 with Panther on the same machine... It ran
great but, a little bit slower than the previous version but good enough,
even with Tomcat running (ant builds are the only problem).

> I am wondering (for you Mac users out there) if IDEA is less of a
> resource hog than eclipse?  When I fire up eclipse on my Mac it seems
> like that thing takes a lot o' juice.  Is IDEA just as bad, or is it a
> little lighter?

  I only used Eclipse M2 on my mac so... It has been a while :) to make a
good comparison.

  On both cases it is better to have a lot of RAM.

  I find IDEA a better option to use as a development environment (it is
what I use at work but I prefered the old IDEA 3.0.4 version).

Pedro Salgado

> 
> 
> Thanks,
> Andy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Taglib to convert http:// to link

2004-05-19 Thread Satish Satish
Hi,
Is there a taglib to convert a string starting with http:// or
https:// to a link. 

Example:
Suppose the data in the db is
"Please click the link http://www.home.com for more details"

When I retrieve this data and put it in jsp (using )
the url is not a link. 

So is there a taglib which can can detect urls in a string and
convert them to links automatically.

Thanks in advance

Regards,
Satish



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionForm does not work in InternetExplorer...

2004-05-19 Thread Scott Tavares
... but works in mozilla.
Hi all,
I'm trying to implement the 'Value List Handler or Page by Page 
Iterator' design pattern in Struts.
I'm hoping to use one Action to do scrollFirst, scrollLast, scrollNext, 
and scrollBack by sending
which direction to 'scroll' in by passing a value into a FormBean based 
on which form image inputtype
was clicked by the user.

here is the source of the form:

   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   


   


   
   
   
   
   

in struts-config i have this


   
type="gov.us.state.ri.doc.infacts.struts.beans.SecurityStatusFormBean"/>



   
type="gov.us.state.ri.doc.infacts.struts.action.ScrollInmateListAction"
   name="securityStatusFormBean" scope="request" 
input="/ui/tiles/pages/securityDetail.jsp">
  
   
  


and the bean 
gov.us.state.ri.doc.infacts.struts.beans.SecurityStatusFormBean has 
three properities: securityId, statusCode and direction

So in the action execute method of the action object I can do this:
String direction = request.getParameter("securityStatusFormBean.direction");
and get the value I'm looking for.
This _does_ work in Mozilla but _NOT_
in IE. In IE the 
request.getParameter("securityStatusFormBean.direction"); just returns null.

Anyone know why? Have suggestion for a better way of doing this?
TIA,
-ScottTavares-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


nested property and javascript reference

2004-05-19 Thread ZCurtis
I am struggling with using javascript to reference a nested property that 
is two levels deep. I didn't seem to find anything on this topic that 
helped me when searching the archive list. Here is an example of my code 
that is not working because document.forms[0].myHidden does not exist.

JSP code:



HTML output code:



Thanks much!

Zach Curtis
TSYS Technology Center
[EMAIL PROTECTED]
208-424-2145


-
The information contained in this communication (including any attachments hereto) is 
confidential and is intended solely for the personal and confidential use of the 
individual or entity to whom it is addressed.  The information may also constitute a 
legally privileged confidential communication.  If the reader of this message is not 
the intended recipient or an agent responsible for delivering it to the intended 
recipient, you are hereby notified that you have received this communication in error 
and that any review, dissemination, copying, or unauthorized use of this information, 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited.  If you have received this communication in error, please notify 
us immediately by e-mail, and delete the original message.  Thank you


RE: html:select onchange question

2004-05-19 Thread Tom McCobb
I got it.  The form bean referred to in the stmtDetail.do (DetailForm)is a
different one than where the selMtr property lives (HeaderForm), and I just
had to loop through a mapping that took me through the HeaderForm first.

-Original Message-
From: Tom McCobb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 6:59 PM
To: [EMAIL PROTECTED]
Subject: html:select onchange question


I have read most of the archived messsages on this subject, and I am still
left with questions.  Here is my basic problem:  When I change the value of
the SELECT by selecting a new option, I expect the new value to be set in
the form bean.  I then want to be able to retrieve the value from the form
bean to pass as a parameter to a method in another action class.  I am doing
this instead of request.getParameter('xxx') just as a matter of preference
to keep everything in the form beans.  Here is the code from the jsp:



   Current Costs
   



>From the debug statements in my stmtDetail.do action class, where I call a
getSelMtr() on the appropriate form bean, no value is passed.  Apparently
the submit() just triggers the stmtDetail.do before the changed value gets
set in the HeaderForm???

So what is the solution?

T. McCobb


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struggled for Days. Please Help With This NullPointerException Problem.

2004-05-19 Thread Caroline Jen
Please help me to find the possible place the problem
comes from.

I have been struggling with this problem for days.  I
tried a number of things but just could not get rid of
the problem.

The Tomcat log does not give enough clue to trace
where the problem occurs.  
My class extends Action.  But the log keeps indicating
the problem is from
where the ParameterAction is.  I am completely
disoriented.

I think the Tomcat console provides better clue (log
messages are posted after the console messages):

org.apache.struts.util.PropertyMessageResources 

INFO: Initializing,
config='org.apache.struts.taglib.logic.LocalStrings', 
returnNull=true

org.apache.struts.util.PropertyMessageResources 
INFO: Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

org.apache.struts.util.PropertyMessageResources 
INFO: Initializing,
config='org.apache.struts.util.LocalStrings',
returnNull=true

org.apache.struts.util.PropertyMessageResources 
INFO: Initializing,
config='org.apache.struts.taglib.bean.LocalStrings',
returnNull=true

WARNING: Unhandled Exception thrown: class
java.lang.NullPointerException

Below are the log messages:
 
- Root Cause -
java.lang.NullPointerException
at
org.apache.struts.scaffold.ParameterAction.findSuccess(Unknown
Source)
at
org.apache.struts.scaffold.BaseAction.execute(Unknown
Source)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
.
.
 
My struts-config.xml looks like:
[CODE]
;

[/CODE]
I have a java class ListThread.java that extends
Action.  This java class simply calls a couple of
helper classes to access my database.  In the end of
the ListThread.java, it is a standard statement:
 
  return ( mapping.findForward( "success" ) );

[CODE]
import LOTS OF PACKAGES AND CLASSES;
 
public final class ListThread extends Action
{
   public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest
request,
HttpServletResponse
response)
throws Exception 
   {
 
  String memberName = request.getRemoteUser();
 
  // for sort and order stuff
  String sort  = request.getParameter( "sort" );
  String order = request.getParameter( "order" );
 
  if ( sort.length() == 0 ) sort =
"ThreadLastPostDate";
  if ( order.length()== 0 ) order = "DESC";
 
  int offset  = 0;
  int rows=
MessageInboxConfig.ROWS_IN_THREADS;
  offset = Integer.parseInt( request.getParameter(
"offset" ) );
  rows = Integer.parseInt( request.getParameter(
"rows" ) );
 
  ListThreadHandler lthandler = new
ListThreadHandler();
  ListPostHandler lphandler = new
ListPostHandler();
 
  int totalThreads =
lthandler.getNumberOfThreads_forReceiver( memberName
);
  if ( offset > totalThreads ) 
  {
 throw new BadInputException( "The offset is
not allowed to be greater than total rows." );
  }
 
  Collection beans =
lthandler.getThreads_forReceiver_withSortSupport_limit(
memberName, offset, rows, sort, order );
 
  SiteUtil.prepareNavigate( request, offset,
beans.size(), totalThreads,
MessageInboxConfig.ROWS_IN_THREADS );
  int totalPosts =
lphandler.getNumberOfPosts_forReceiver( memberName );
 
  request.setAttribute( "ThreadBeans", beans );
  request.setAttribute( "TotalThreads", new
Integer( totalThreads ) );
  request.setAttribute( "TotalPosts", new Integer(
totalPosts ) );
 
  return ( mapping.findForward( "success" ) );
 
   }
}
[/CODE]




__
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ot] eclipse vs. IDEA

2004-05-19 Thread Andy Engle
Hi all,

I am wondering (for you Mac users out there) if IDEA is less of a
resource hog than eclipse?  When I fire up eclipse on my Mac it seems
like that thing takes a lot o' juice.  Is IDEA just as bad, or is it a
little lighter?


Thanks,
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:select onchange question

2004-05-19 Thread Tom McCobb
I have read most of the archived messsages on this subject, and I am still
left with questions.  Here is my basic problem:  When I change the value of
the SELECT by selecting a new option, I expect the new value to be set in
the form bean.  I then want to be able to retrieve the value from the form
bean to pass as a parameter to a method in another action class.  I am doing
this instead of request.getParameter('xxx') just as a matter of preference
to keep everything in the form beans.  Here is the code from the jsp:



   Current Costs
   



>From the debug statements in my stmtDetail.do action class, where I call a
getSelMtr() on the appropriate form bean, no value is passed.  Apparently
the submit() just triggers the stmtDetail.do before the changed value gets
set in the HeaderForm???

So what is the solution?

T. McCobb


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getResource(path)

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
I just read in SCWCD exam prep book about this method:

"You can not pass a URL of any active resource -- for example, a JSP
page or servlet -- to this method."

I thought you could serve up your JSP pages, i.e., their actual JSP code
using this method. What does the above statement mean? 

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OFF TOPIC] - iterate over Two Dates

2004-05-19 Thread Martin Gainty
Julio:
Did you check out the Jakarta Taglib DateTime Tag?
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
HTH,
Martin
- Original Message - 
From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 19, 2004 4:39 PM
Subject: [OFF TOPIC] - iterate over Two Dates


> Hi , sorry about this but maybe someone has had the same trouble.
> I need to iterate over to Date object, what's the best way?
>  
> Thanks, 
> Julio Cesar De Salvo
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question

2004-05-19 Thread Glenn Wilson

this.servlet.getServletContext();

HTH,
Glenn

-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: Newbie question


Hi,

How do you get at ServletContext object inside an Action?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


===
This email message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please contact the 
sender by reply email and destroy all copies of the original message. If you are the 
intended recipient, please be advised that the content of this message is subject to 
access, review and disclosure by the sender's Email System Administrator.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dot notation with Validator?

2004-05-19 Thread David Erickson
Is it possible to use dot notation with the xml validator? Ie i want to
validate the zipcode String which is a member variable of my reference
object which is on the form.  Ie reference.zipcode?  I've tried but havn't
been successful.. anyone else solved this?

This is essentially what I'd like to do:




mask
^[0-9]{5}



Possible?


Thanks
-David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie question

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
Hi,

How do you get at ServletContext object inside an Action?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Stress testing?

2004-05-19 Thread Martin Gainty
Greg-
Have you looked at Clover?
http://www.thecortex.net/clover/index.html
HTH,
Martin

  - Original Message - 
  From: Greg Hess 
  To: Struts 
  Sent: Wednesday, May 19, 2004 4:28 PM
  Subject: [OT] Stress testing?


  Hi All,

   

  I am looking for a tool to help me stress test my application and would greatly 
appreciated any recommendations, suggestions on how to perform such testing and any 
procedures to followJ. 

   

  My requirements:

   

  1)   Mimic the work flow process for processing a transaction over several pages 
where session information is maintained so that my Transaction control tokens will not 
be invalid. I would like to be able to specify the starting form and follow the 
process request/response over several steps and eventually complete the transaction.

   

  2)   The ability to specify number of loops, threads(for concurrency) and timed 
duration would be great. 

   

  3)   Support for SSL

   

   

  Thanks,

   

Greg Hess
   
Software Engineer
   
Wrapped Apps Corporation
   
275 Michael Cowpland Dr.
   
Suite 201
   
Ottawa, Ontario
   
K2M 2G2
   
Tel: (613) 591 -7552 ext 230
   
Fax: (613) 591-0523
   
1 (877) 388-6742
   
www.wrappedapps.com
   

   

   



[struts workflow extension] workflow violation ?s

2004-05-19 Thread Wood, Derek (DIS Contractor)
workflow violation seems to work when trying to navigate off the workflow
when pressing the browser's
back button or reload button and when selecting a navigation link when the
link points to a resource within
the current application context.

can't anything be done to prevent a workflow violation when a user presses
the browser's home button or
a bookmark?  or when a navigation link points to a resource in another web
application hosted on the same
server?  or even to a resource on another host?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Stress testing?

2004-05-19 Thread Greg Hess








Hi All,

 

I am looking for a tool to help me stress test my
application and would greatly appreciated any recommendations, suggestions on
how to perform such testing and any procedures to followJ. 

 

My requirements:

 

1)   Mimic the
work flow process for processing a transaction over several pages where session
information is maintained so that my Transaction control tokens will not be
invalid. I would like to be able to specify the starting form and follow the
process request/response over several steps and eventually complete the
transaction.

 

2)   The ability
to specify number of loops, threads(for concurrency)
and timed duration would be great. 

 

3)   Support
for SSL

 

 

Thanks,

 


 
  
  Greg
   Hess
  
 
 
  
  Software
  Engineer
  
 
 
  
  Wrapped
  Apps Corporation
  
 
 
  
  275 Michael Cowpland Dr.
  
 
 
  
  Suite
   201
  
 
 
  
  Ottawa, Ontario
  
 
 
  
  K2M
  2G2
  
 
 
  
  Tel:
  (613) 591 -7552 ext 230
  
 
 
  
  Fax:
  (613) 591-0523
  
 
 
  
  1 (877) 388-6742
  
 
 
  
  www.wrappedapps.com
  
 
 
  
  
  
 


 








struts ClassCastException

2004-05-19 Thread ksitron
My web-app runs great when first starting JBoss. After making src 
changes to my web-app, I build, and redeploy using ant. I then
attempt to test my changes by going down the exact same html:link 
navigation as before, only to receive a ClassCastException from 
org.apache.util.RequestUtils.createActionForm(RequestUtils.java: 777)

Any pointers would be greatly appreciated.
JBoss 3.2.3
JDK 1.4.2
--
Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 566-2403

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Stress testing?

2004-05-19 Thread Chappell, Simon P
I've used JUnit and JUnitPerf to drive tests written with HttpUnit. These worked well 
for me, allowing me to stress our Struts app to levels of 100 simultaneous users. Is 
that stressful enough for you? (It certainly stressed out our DB2 DBA's watching what 
all that application activity did to their database ... we managed to get up to 100% 
CPU usage on an IBM 390! :-)
 
We didn't use SSL, so that might be a dealbreaker.
 
Simon
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 3:28 PM
To: Struts
Subject: [OT] Stress testing?


Hi All,
 
I am looking for a tool to help me stress test my application and would greatly 
appreciated any recommendations, suggestions on how to perform such testing and any 
procedures to follow:-). 
 
My requirements:
 
1)   Mimic the work flow process for processing a transaction over several pages 
where session information is maintained so that my Transaction control tokens will not 
be invalid. I would like to be able to specify the starting form and follow the 
process request/response over several steps and eventually complete the transaction.
 
2)   The ability to specify number of loops, threads(for concurrency) and timed 
duration would be great. 
 
3)   Support for SSL
 
 
Thanks,
 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552 ext 230

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

  
 


[OFF TOPIC] - iterate over Two Dates

2004-05-19 Thread Julio Cesar De Salvo
Hi , sorry about this but maybe someone has had the same trouble.
I need to iterate over to Date object, what's the best way?
 
Thanks, 
Julio Cesar De Salvo


Re: [OT] Stress testing?

2004-05-19 Thread Niall Pemberton
http://marc.theaimsgroup.com/?l=struts-user&m=108387088028600&w=2

http://www.opensta.org/


- Original Message - 
From: Greg Hess
To: Struts
Sent: Wednesday, May 19, 2004 9:28 PM
Subject: [OT] Stress testing?


Hi All,

I am looking for a tool to help me stress test my application and would
greatly appreciated any recommendations, suggestions on how to perform such
testing and any procedures to follow.

My requirements:

1)   Mimic the work flow process for processing a transaction over
several pages where session information is maintained so that my Transaction
control tokens will not be invalid. I would like to be able to specify the
starting form and follow the process request/response over several steps and
eventually complete the transaction.

2)   The ability to specify number of loops, threads(for concurrency)
and timed duration would be great.

3)   Support for SSL


Thanks,

Greg Hess
Software Engineer
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552 ext 230
Fax: (613) 591-0523
1 (877) 388-6742
www.wrappedapps.com






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



new to jcl and tcl scripts?

2004-05-19 Thread sudheshna aaa
Hi Team,
I am new to jcl or tcl scripts. Is there any site where I can quickly get a 
grasp of them?

Thanks for your help.
SD
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Stress testing?

2004-05-19 Thread Greg Hess
Thanks Simon,

Actually I have been assigned to test 100 simultaneous users as a max,
so that would do fine. We do have some JUnit tests in the bag that we
use but I haven't worked with them yet. I will have a look at HttpUnit,
hope SSL is supported because our application runs exclusively on SSL.

I have been planning to set up my tests as follows:

Client Machine
- running the testing tool hitting the server

Server Machine
- running app server being profiled by JProfiler

I am not sure what performance to expect and how to configure the app
server for optimal performance but I will learn. 

Do you know of any guidelines regarding resource consumption like if my
max load is 100 simultanious users performing the heaviest transaction
my CPU usage should not exceed 80% and memory should not exceed 75% of
max available?

Cheers, 

Greg Hess   
Software Engineer   
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201   
Ottawa, Ontario 
K2M 2G2 
Tel: (613) 591 -7552 ext 230
Fax: (613) 591-0523 
1 (877) 388-6742
www.wrappedapps.com 


> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 4:27 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Stress testing?
> 
> I've used JUnit and JUnitPerf to drive tests written with HttpUnit.
These
> worked well for me, allowing me to stress our Struts app to levels of
100
> simultaneous users. Is that stressful enough for you? (It certainly
> stressed out our DB2 DBA's watching what all that application activity
did
> to their database ... we managed to get up to 100% CPU usage on an IBM
> 390! :-)
> 
> We didn't use SSL, so that might be a dealbreaker.
> 
> Simon
> -Original Message-
> From: Greg Hess [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 3:28 PM
> To: Struts
> Subject: [OT] Stress testing?
> 
> 
> Hi All,
> 
> I am looking for a tool to help me stress test my application and
would
> greatly appreciated any recommendations, suggestions on how to perform
> such testing and any procedures to follow:-).
> 
> My requirements:
> 
> 1)   Mimic the work flow process for processing a transaction over
> several pages where session information is maintained so that my
> Transaction control tokens will not be invalid. I would like to be
able to
> specify the starting form and follow the process request/response over
> several steps and eventually complete the transaction.
> 
> 2)   The ability to specify number of loops, threads(for
concurrency)
> and timed duration would be great.
> 
> 3)   Support for SSL
> 
> 
> Thanks,
> 
> 
> Greg Hess
> 
> Software Engineer
> 
> Wrapped Apps Corporation
> 
> 275 Michael Cowpland Dr.
> 
> Suite 201
> 
> Ottawa, Ontario
> 
> K2M 2G2
> 
> Tel: (613) 591 -7552 ext 230
> 
> Fax: (613) 591-0523
> 
> 1 (877) 388-6742
> 
> www.wrappedapps.com
> 
>  
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant scripts for websphere4.0

2004-05-19 Thread sudheshna aaa
Hi,
May be I am in the wrong mailing list. I posted in ant mailing list and did 
not get any response.

Do anybody have any ant scripts for any of the below tasks in websphere 4.0:
1.stopping the server group
2.deploy the ear on one of the node
3.copy the deployed ear to clustered env
4.start the server group.
Can Ant achieve the above process or do I need to use jackle or tickle?
Your help is greately appreciated.
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: R: R: Turning OFF auto form population?

2004-05-19 Thread None None
Ok, good enough.  If that's the only way than that's that.  Thanks for the 
replies!


From: "Amleto Di Salle" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: R: R: Turning OFF auto form population?
Date: Wed, 19 May 2004 20:30:05 +0200
Hi,
you are right when you said "...I'd like to avoid doing that...", but
unfortunely the only possible solution is to extend the RequestProcessor
and override the processPopulate() method.
Maybe the solution is to eliminate the RequestUtils.populate inside the
processPopulate() method, i.e
protected void processPopulate(HttpServletRequest request,
HttpServletResponse response, ActionForm form, ActionMapping mapping)
throws ServletException {
if (form == null) {
return;
}
// Populate the bean properties of this ActionForm instance
if (log.isDebugEnabled()) {
log.debug(" Populating bean properties from this request");
}
form.setServlet(this.servlet);
form.reset(mapping, request);
if (mapping.getMultipartClass() != null) {
request.setAttribute(Globals.MULTIPART_KEY,
 mapping.getMultipartClass());
}
/*
TO ELIMINATE
RequestUtils.populate(form, mapping.getPrefix(),
mapping.getSuffix(),
  request);
*/
// Set the cancellation request attribute if appropriate
if ((request.getParameter(Constants.CANCEL_PROPERTY) != null) ||
(request.getParameter(Constants.CANCEL_PROPERTY_X) != null))
{
request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
}
}
The other thing to do is to configure the strut-config.xml, i.e.

BR
/Amleto
-Messaggio originale-
Da: None None [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 19 maggio 2004 20.08
A: [EMAIL PROTECTED]
Oggetto: RE: R: Turning OFF auto form population?
That's interesting, I knew Struts was designed to be extended in a
number of
places, I hadn't thought of doing that... However, I've purposely NOT
extended it in some other places, and I'd like to avoid doing that, just
from a philosophical point of view (i.e., unless I have a real good
reason
to, it's probably less complex to use the Struts classes as-is).  It's a
thought though.
You raise an interesting point about the name attribute though... I know
I
can just leave it out, and then I'll be responsible for instantiating
the
ActionForm and putting it in request to return to the view (which is
what
our homegrown framework does).  I was thinking that I would let Struts
instantiate it for me, and send it to the view for me, then I can remove
some code that would at that point be superfolous.  But, your point is a
good one: since the code is doing it already, I can just NOT specify an
ActionForm for the Actions, then it wouldn't matter what class I extend
them
from.  That would do the trick.
But, I still at some future point would have to go back into
struts-config.xml and put the name attribute back in becuase presumably
I'm
going to want to do that eventually (and I in fact do).  So, although
what
you point out is a solution I can use, I'd still like to know if there
is a
way I can get the benefit of Struts handling the creation of the
ActionForm
and the passing it to the view for me WITHOUT having it auto-populate it
on
the way in.  That's still i think the ideal situation for me, if it's
possible, so the question still stands.
>From: "Amleto Di Salle" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: R: Turning OFF auto form population?
>Date: Wed, 19 May 2004 19:59:16 +0200
>
>Hi,
>but have you used in the action tag inside the "struts-config.xml" the
>"name" attribute?
>
>Anyway, if I understood correctly, you can always extend the
>RequestProcessor class and override the processPopulate(...) method.
>
>Furthermore, you have to configure struts to use the extended
>RequestProcessor version.
>
>BR
>/Amleto
>
>
>-Messaggio originale-
>Da: None None [mailto:[EMAIL PROTECTED]
>Inviato: mercoledì 19 maggio 2004 19.33
>A: [EMAIL PROTECTED]
>Oggetto: Turning OFF auto form population?
>
>
>Hello all... Is it possible to turn OFF Struts auto-populating an
>ActionForm with the paramters from the client?
>
>The reason I ask is that I'm converting a non-Struts app over, and in
>this app, because it was using a homegrown framework, we have value
>object classes which are basically exactly what ActionForms are, except
>that they
>are NOT auto-popualated.  The problem is that some of the getter and
>setter
>method names may not match the input parameters, and rather than trying
>to
>go through it all and change the names to match (which I can do as a
>later
>step), I'd like to turn off the auto-populate function if I can.
>
>If I can't, I can just leave these classes as-is and just hav

RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Geeta Ramani
Dan: 

Here you go:

http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/

Geeta

> -Original Message-
> From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:32 PM
> To: Struts Users Mailing List
> Subject: Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility
> 
> 
> Geeta:
> 
> I can't seem to locate v1.02 via google search.  I couldn't 
> find it at 
> http://apache.mirrors.pair.com/jakarta/struts/struts-legacy/ either.  
> Any idea where I can get a copy of the struts 1.02 binaries?
> 
> Thanks,
> Dan
> 
> Geeta Ramani wrote:
> 
> >Dan:
> >
> >Struts 1.1 requires at least Tomcat 4.0. You will have to 
> stick with Struts 1.02.
> >
> >Regards,
> >Geeta
> >
> >  
> >
> >>-Original Message-
> >>From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, May 19, 2004 2:20 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility
> >>
> >>
> >>I've used struts with great success in the past on some of 
> the latest 
> >>application servers available today.  However, I have a client who 
> >>necessitates the use of Tomcat 3.3.1.  I know that Tomcat 
> >>3.3.1 supports 
> >>the Servlet 2.2 and JSP 1.1 specifications.  I only have 
> >>experience with 
> >>Struts with Tomcat 4.x or higher with the latest Servlet and JSP 
> >>specifications.
> >>
> >>Is there a version of Struts that I can use with Tomcat 
> >>3.3.1?  Is v1.1 
> >>ok or do I need to go back to an earlier version?
> >>
> >>Thanks!
> >>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >  
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Pingili, Madhupal

I have 2 web applications using Struts 1.1 running successfully 
on WebSphere 4.0.4 (Servlet 2.2/JSP 1.1) for about 9 months now.

WebSphere 5.0.x supports Servlet 2.3/JSP 1.2 specs. So, you can mix
filters, context listeners with Struts 1.1 concepts. 

-Reddy

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:30 PM
> To:   Struts Users Mailing List
> Subject:  Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility
> 
> I was actually wondering the same thing as I will be starting a project
> using a
> version of WebSphere(5, I think) that supports 2.2/1.1.  According to this
> page:
> http://jakarta.apache.org/struts/status.html
> 
> all 1.x Struts releases should work on a 2.2/1.1 server.
> 
> -Ben
> 
> Quoting Dan Tarkenton <[EMAIL PROTECTED]>:
> 
> > I've used struts with great success in the past on some of the latest
> > application servers available today.  However, I have a client who
> > necessitates the use of Tomcat 3.3.1.  I know that Tomcat 3.3.1 supports
> > the Servlet 2.2 and JSP 1.1 specifications.  I only have experience with
> > Struts with Tomcat 4.x or higher with the latest Servlet and JSP
> > specifications.
> >
> > Is there a version of Struts that I can use with Tomcat 3.3.1?  Is v1.1
> > ok or do I need to go back to an earlier version?
> >
> > Thanks!
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Dan Tarkenton
Geeta:
I can't seem to locate v1.02 via google search.  I couldn't find it at 
http://apache.mirrors.pair.com/jakarta/struts/struts-legacy/ either.  
Any idea where I can get a copy of the struts 1.02 binaries?

Thanks,
Dan
Geeta Ramani wrote:
Dan:
Struts 1.1 requires at least Tomcat 4.0. You will have to stick with Struts 1.02.
Regards,
Geeta
 

-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 2:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility
I've used struts with great success in the past on some of the latest 
application servers available today.  However, I have a client who 
necessitates the use of Tomcat 3.3.1.  I know that Tomcat 
3.3.1 supports 
the Servlet 2.2 and JSP 1.1 specifications.  I only have 
experience with 
Struts with Tomcat 4.x or higher with the latest Servlet and JSP 
specifications.

Is there a version of Struts that I can use with Tomcat 
3.3.1?  Is v1.1 
ok or do I need to go back to an earlier version?

Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread benanderson
I was actually wondering the same thing as I will be starting a project using a
version of WebSphere(5, I think) that supports 2.2/1.1.  According to this
page:
http://jakarta.apache.org/struts/status.html

all 1.x Struts releases should work on a 2.2/1.1 server.

-Ben

Quoting Dan Tarkenton <[EMAIL PROTECTED]>:

> I've used struts with great success in the past on some of the latest
> application servers available today.  However, I have a client who
> necessitates the use of Tomcat 3.3.1.  I know that Tomcat 3.3.1 supports
> the Servlet 2.2 and JSP 1.1 specifications.  I only have experience with
> Struts with Tomcat 4.x or higher with the latest Servlet and JSP
> specifications.
>
> Is there a version of Struts that I can use with Tomcat 3.3.1?  Is v1.1
> ok or do I need to go back to an earlier version?
>
> Thanks!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
Hi, 
you are right when you said "...I'd like to avoid doing that...", but
unfortunely the only possible solution is to extend the RequestProcessor
and override the processPopulate() method.

Maybe the solution is to eliminate the RequestUtils.populate inside the
processPopulate() method, i.e
protected void processPopulate(HttpServletRequest request,
HttpServletResponse response, ActionForm form, ActionMapping mapping)
throws ServletException {

if (form == null) {
return;
}

// Populate the bean properties of this ActionForm instance
if (log.isDebugEnabled()) {
log.debug(" Populating bean properties from this request");
}
form.setServlet(this.servlet);
form.reset(mapping, request);
if (mapping.getMultipartClass() != null) {
request.setAttribute(Globals.MULTIPART_KEY,
 mapping.getMultipartClass());
}
/*
TO ELIMINATE
RequestUtils.populate(form, mapping.getPrefix(),
mapping.getSuffix(),
  request);
*/
// Set the cancellation request attribute if appropriate
if ((request.getParameter(Constants.CANCEL_PROPERTY) != null) ||
(request.getParameter(Constants.CANCEL_PROPERTY_X) != null))
{
request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
}

}

The other thing to do is to configure the strut-config.xml, i.e.



BR
/Amleto

-Messaggio originale-
Da: None None [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 19 maggio 2004 20.08
A: [EMAIL PROTECTED]
Oggetto: RE: R: Turning OFF auto form population?


That's interesting, I knew Struts was designed to be extended in a
number of 
places, I hadn't thought of doing that... However, I've purposely NOT 
extended it in some other places, and I'd like to avoid doing that, just

from a philosophical point of view (i.e., unless I have a real good
reason 
to, it's probably less complex to use the Struts classes as-is).  It's a

thought though.

You raise an interesting point about the name attribute though... I know
I 
can just leave it out, and then I'll be responsible for instantiating
the 
ActionForm and putting it in request to return to the view (which is
what 
our homegrown framework does).  I was thinking that I would let Struts 
instantiate it for me, and send it to the view for me, then I can remove

some code that would at that point be superfolous.  But, your point is a

good one: since the code is doing it already, I can just NOT specify an 
ActionForm for the Actions, then it wouldn't matter what class I extend
them 
from.  That would do the trick.

But, I still at some future point would have to go back into 
struts-config.xml and put the name attribute back in becuase presumably
I'm 
going to want to do that eventually (and I in fact do).  So, although
what 
you point out is a solution I can use, I'd still like to know if there
is a 
way I can get the benefit of Struts handling the creation of the
ActionForm 
and the passing it to the view for me WITHOUT having it auto-populate it
on 
the way in.  That's still i think the ideal situation for me, if it's 
possible, so the question still stands.


>From: "Amleto Di Salle" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: R: Turning OFF auto form population?
>Date: Wed, 19 May 2004 19:59:16 +0200
>
>Hi,
>but have you used in the action tag inside the "struts-config.xml" the 
>"name" attribute?
>
>Anyway, if I understood correctly, you can always extend the 
>RequestProcessor class and override the processPopulate(...) method.
>
>Furthermore, you have to configure struts to use the extended 
>RequestProcessor version.
>
>BR
>/Amleto
>
>
>-Messaggio originale-
>Da: None None [mailto:[EMAIL PROTECTED]
>Inviato: mercoledì 19 maggio 2004 19.33
>A: [EMAIL PROTECTED]
>Oggetto: Turning OFF auto form population?
>
>
>Hello all... Is it possible to turn OFF Struts auto-populating an 
>ActionForm with the paramters from the client?
>
>The reason I ask is that I'm converting a non-Struts app over, and in 
>this app, because it was using a homegrown framework, we have value 
>object classes which are basically exactly what ActionForms are, except

>that they
>are NOT auto-popualated.  The problem is that some of the getter and
>setter
>method names may not match the input parameters, and rather than trying
>to
>go through it all and change the names to match (which I can do as a
>later
>step), I'd like to turn off the auto-populate function if I can.
>
>If I can't, I can just leave these classes as-is and just have them not

>extend ActionForm... since they are always manually dealt with, that's 
>not a problem, but if I can make make them extend ActionForm and turn 
>off the auto-populate, then I can just swing back around in a later 
>iteration and
>make the changes I need to then.
>
>Thanks a

RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Geeta Ramani
Dan:

Struts 1.1 requires at least Tomcat 4.0. You will have to stick with Struts 1.02.

Regards,
Geeta

> -Original Message-
> From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility
> 
> 
> I've used struts with great success in the past on some of the latest 
> application servers available today.  However, I have a client who 
> necessitates the use of Tomcat 3.3.1.  I know that Tomcat 
> 3.3.1 supports 
> the Servlet 2.2 and JSP 1.1 specifications.  I only have 
> experience with 
> Struts with Tomcat 4.x or higher with the latest Servlet and JSP 
> specifications.
> 
> Is there a version of Struts that I can use with Tomcat 
> 3.3.1?  Is v1.1 
> ok or do I need to go back to an earlier version?
> 
> Thanks!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Dan Tarkenton
I've used struts with great success in the past on some of the latest 
application servers available today.  However, I have a client who 
necessitates the use of Tomcat 3.3.1.  I know that Tomcat 3.3.1 supports 
the Servlet 2.2 and JSP 1.1 specifications.  I only have experience with 
Struts with Tomcat 4.x or higher with the latest Servlet and JSP 
specifications.

Is there a version of Struts that I can use with Tomcat 3.3.1?  Is v1.1 
ok or do I need to go back to an earlier version?

Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: R: Turning OFF auto form population?

2004-05-19 Thread None None
That's interesting, I knew Struts was designed to be extended in a number of 
places, I hadn't thought of doing that... However, I've purposely NOT 
extended it in some other places, and I'd like to avoid doing that, just 
from a philosophical point of view (i.e., unless I have a real good reason 
to, it's probably less complex to use the Struts classes as-is).  It's a 
thought though.

You raise an interesting point about the name attribute though... I know I 
can just leave it out, and then I'll be responsible for instantiating the 
ActionForm and putting it in request to return to the view (which is what 
our homegrown framework does).  I was thinking that I would let Struts 
instantiate it for me, and send it to the view for me, then I can remove 
some code that would at that point be superfolous.  But, your point is a 
good one: since the code is doing it already, I can just NOT specify an 
ActionForm for the Actions, then it wouldn't matter what class I extend them 
from.  That would do the trick.

But, I still at some future point would have to go back into 
struts-config.xml and put the name attribute back in becuase presumably I'm 
going to want to do that eventually (and I in fact do).  So, although what 
you point out is a solution I can use, I'd still like to know if there is a 
way I can get the benefit of Struts handling the creation of the ActionForm 
and the passing it to the view for me WITHOUT having it auto-populate it on 
the way in.  That's still i think the ideal situation for me, if it's 
possible, so the question still stands.


From: "Amleto Di Salle" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: R: Turning OFF auto form population?
Date: Wed, 19 May 2004 19:59:16 +0200
Hi,
but have you used in the action tag inside the "struts-config.xml" the
"name" attribute?
Anyway, if I understood correctly, you can always extend the
RequestProcessor class and override the processPopulate(...) method.
Furthermore, you have to configure struts to use the extended
RequestProcessor version.
BR
/Amleto
-Messaggio originale-
Da: None None [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 19 maggio 2004 19.33
A: [EMAIL PROTECTED]
Oggetto: Turning OFF auto form population?
Hello all... Is it possible to turn OFF Struts auto-populating an
ActionForm
with the paramters from the client?
The reason I ask is that I'm converting a non-Struts app over, and in
this
app, because it was using a homegrown framework, we have value object
classes which are basically exactly what ActionForms are, except that
they
are NOT auto-popualated.  The problem is that some of the getter and
setter
method names may not match the input parameters, and rather than trying
to
go through it all and change the names to match (which I can do as a
later
step), I'd like to turn off the auto-populate function if I can.
If I can't, I can just leave these classes as-is and just have them not
extend ActionForm... since they are always manually dealt with, that's
not a
problem, but if I can make make them extend ActionForm and turn off the
auto-populate, then I can just swing back around in a later iteration
and
make the changes I need to then.
Thanks all!
_
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
Hi,
but have you used in the action tag inside the "struts-config.xml" the
"name" attribute?

Anyway, if I understood correctly, you can always extend the
RequestProcessor class and override the processPopulate(...) method. 

Furthermore, you have to configure struts to use the extended
RequestProcessor version.

BR
/Amleto


-Messaggio originale-
Da: None None [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 19 maggio 2004 19.33
A: [EMAIL PROTECTED]
Oggetto: Turning OFF auto form population?


Hello all... Is it possible to turn OFF Struts auto-populating an
ActionForm 
with the paramters from the client?

The reason I ask is that I'm converting a non-Struts app over, and in
this 
app, because it was using a homegrown framework, we have value object 
classes which are basically exactly what ActionForms are, except that
they 
are NOT auto-popualated.  The problem is that some of the getter and
setter 
method names may not match the input parameters, and rather than trying
to 
go through it all and change the names to match (which I can do as a
later 
step), I'd like to turn off the auto-populate function if I can.

If I can't, I can just leave these classes as-is and just have them not 
extend ActionForm... since they are always manually dealt with, that's
not a 
problem, but if I can make make them extend ActionForm and turn off the 
auto-populate, then I can just swing back around in a later iteration
and 
make the changes I need to then.

Thanks all!

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Turning OFF auto form population?

2004-05-19 Thread None None
Hello all... Is it possible to turn OFF Struts auto-populating an ActionForm 
with the paramters from the client?

The reason I ask is that I'm converting a non-Struts app over, and in this 
app, because it was using a homegrown framework, we have value object 
classes which are basically exactly what ActionForms are, except that they 
are NOT auto-popualated.  The problem is that some of the getter and setter 
method names may not match the input parameters, and rather than trying to 
go through it all and change the names to match (which I can do as a later 
step), I'd like to turn off the auto-populate function if I can.

If I can't, I can just leave these classes as-is and just have them not 
extend ActionForm... since they are always manually dealt with, that's not a 
problem, but if I can make make them extend ActionForm and turn off the 
auto-populate, then I can just swing back around in a later iteration and 
make the changes I need to then.

Thanks all!
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Using tokens in links

2004-05-19 Thread Daniel Perry

  
  


works, but uses the constants values directly.  Sould any of the constants
values change, then it would stop working.

Daniel.

> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 19 May 2004 17:23
> To: Struts User List
> Subject: Using tokens in links
>
>
> I'm trying to use a token in a link.
>
> I am expecting somthing like the following to work:
>
> 
>value="<%=session.getAttribute(org.apache.struts.Globals.TRANSACTI
> ON_TOKEN_K
> EY)%>"/>
>   
> 
>
> But it gives a thread death :(
>
>
> Any ideas?
>
> Daniel.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: EL in JSP 1.2?

2004-05-19 Thread Daniel Perry

> 1) Am I correct in thinking that you are able to use EL under JSP 1.2
> container?

Yes

>
> 2) If yes, are there any differences in how you would use it under JSP
> 1.2?

Yes, there are things in jsp2 el that are not in jsp1.2 el.  Check the specs
for details.

>
> 3) How do you set up your container/jsp so it can use EL?

In the struts package, check:
contrib\struts-el

It contains everything you need to get the el versions of struts taglibs,
and jstl 1 taglibs to work.

Daniel.


>
> Thank you.
>
> Yaakov Chaikin
> Software Engineer
> BAE SYSTEMS
> 301-838-6899 (ph)
> 301-838-6802 (fax)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using tokens in links

2004-05-19 Thread Daniel Perry
I'm trying to use a token in a link.

I am expecting somthing like the following to work:


  
  


But it gives a thread death :(


Any ideas?

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[struts workflow extension] Workflow Violation Help

2004-05-19 Thread Wood, Derek (DIS Contractor)
I have everything working using the Struts Workflow 
extension except that I am having problems with the 
workflow violation mechanism. 

I have a wizard consisting of 6 pages. The workflow 
through the entire 6 pages is assigned a single primary 
workflow value. So, I made one violation mapping to 
handle violations. 

What I want to happen is when the workflow is violated, 
I want the user to be sent back to the wizard page they 
were currently on (ie. page 4) and have a message on 
that page saying the violation. I can't seem to figure 
out how to get the user back to the page they were on ... 
given that I have only one workflow/violation defined. 

Thank you. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



EL in JSP 1.2?

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
Hi,

1) Am I correct in thinking that you are able to use EL under JSP 1.2
container?

2) If yes, are there any differences in how you would use it under JSP
1.2?

3) How do you set up your container/jsp so it can use EL?

Thank you.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: Modular packaging of a large application

2004-05-19 Thread Amleto Di Salle
Hi Daniel,
the Struts modules can be used to separate the web-tier and only for
"development" purpose (i.e. you use the stuts module only for design
purpose). 

So you will continue to create the war file for the web-tier and the jar
file for the business-tier.

BR
/Amleto


-Messaggio originale-
Da: Brian Styles [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 19 maggio 2004 17.38
A: [EMAIL PROTECTED]
Oggetto: RE: Modular packaging of a large application


Hi Daniel,

thanks for the reply.

That's fine for development but what about deployment though? Will all
the 
modules have to be deployed in a single war file so they can see each
other?


>From: "Daniel Perry" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Modular packaging of a large application
>Date: Wed, 19 May 2004 16:18:17 +0100
>
>
> > 1) Should all my entity beans be packaged in a single jar?
> >
>
>no idea... i dont go in for the session beans/entity beans, i'm using 
>OJB
>so
>it's a bit different.
>
> > 2) Different modules will probably mean different session beans, 
> > jsps
>and
> > struts actions.
> >
>
>This is no problem.  Different modules all have their own config file, 
>so
>as
>long as the action classes/jsps dont overlap there wont be a problem.
I
>would suggest you put the action classes for different modules in
different
>packages, and jsps in different folders.  That way, development can be
as
>independant as you like.
>
>Daniel.
>
>
> > -Original Message-
> > From: Brian Styles [mailto:[EMAIL PROTECTED]
> > Sent: 19 May 2004 15:30
> > To: [EMAIL PROTECTED]
> > Subject: Modular packaging of a large application
> >
> >
> > Hi everyone,
> >
> > I've built an application in a standard j2EE format
> >
> > JSPs-->Struts-->Session Beans-->CMR Entity Beans.
> >
> > This is deployed in an exploded ear, with struts and JSPs in the war

> > as well as the session bean interfaces. Then I have the Session 
> > Beans and CMR Entity
> > Beans in a jar.
> >
> > Now I want to go to a larger environment where different developers 
> > are working on different modules, yet I still want each module to be

> > accessable through a single point - ie, struts.
> >
> > Struts 1.1 has the concept of modules, allowing different struts 
> > config files per module, however, from the context of deployment I 
> > have some worries.
> >
> > 1) Should all my entity beans be packaged in a single jar?
> >
> > 2) Different modules will probably mean different session beans, 
> > jsps
>and
> > struts actions.
> >
> > Therefore, I would really appreciate advice/experienc on packaging 
> > up an architecture like this.
> >
> > regards,
> > Brian
> >
> > _
> > The new MSN 8: advanced junk mail protection and 2 months FREE* 
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Modular packaging of a large application

2004-05-19 Thread Daniel Perry
As far as i understand, all of the app must be deployed in the same war
file:  I dont think an app can be split between war files (please correct me
if i'm wrong here!).

If you can split an app, then i doubt struts would be bothered.

With our webapps we make use of cvs, and for deployment checkout the whole
thing, and build it, deploy it, restart app server all automatically.

Note also that you dont have to package a webapp using a war file... i dont
Just copying the directory strusture into a folder in webapps is certainly
much easier for development.

Daniel.



> -Original Message-
> From: Brian Styles [mailto:[EMAIL PROTECTED]
> Sent: 19 May 2004 16:38
> To: [EMAIL PROTECTED]
> Subject: RE: Modular packaging of a large application
>
>
> Hi Daniel,
>
> thanks for the reply.
>
> That's fine for development but what about deployment though?
> Will all the
> modules have to be deployed in a single war file so they can see
> each other?
>
>
> >From: "Daniel Perry" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: Modular packaging of a large application
> >Date: Wed, 19 May 2004 16:18:17 +0100
> >
> >
> > > 1) Should all my entity beans be packaged in a single jar?
> > >
> >
> >no idea... i dont go in for the session beans/entity beans, i'm
> using OJB
> >so
> >it's a bit different.
> >
> > > 2) Different modules will probably mean different session beans, jsps
> >and
> > > struts actions.
> > >
> >
> >This is no problem.  Different modules all have their own config
> file, so
> >as
> >long as the action classes/jsps dont overlap there wont be a problem.  I
> >would suggest you put the action classes for different modules
> in different
> >packages, and jsps in different folders.  That way, development can be as
> >independant as you like.
> >
> >Daniel.
> >
> >
> > > -Original Message-
> > > From: Brian Styles [mailto:[EMAIL PROTECTED]
> > > Sent: 19 May 2004 15:30
> > > To: [EMAIL PROTECTED]
> > > Subject: Modular packaging of a large application
> > >
> > >
> > > Hi everyone,
> > >
> > > I've built an application in a standard j2EE format
> > >
> > > JSPs-->Struts-->Session Beans-->CMR Entity Beans.
> > >
> > > This is deployed in an exploded ear, with struts and JSPs in the
> > > war as well
> > > as the session bean interfaces. Then I have the Session Beans and
> > > CMR Entity
> > > Beans in a jar.
> > >
> > > Now I want to go to a larger environment where different
> developers are
> > > working on different modules, yet I still want each module to be
> > > accessable
> > > through a single point - ie, struts.
> > >
> > > Struts 1.1 has the concept of modules, allowing different
> struts config
> > > files per module, however, from the context of deployment I have some
> > > worries.
> > >
> > > 1) Should all my entity beans be packaged in a single jar?
> > >
> > > 2) Different modules will probably mean different session beans, jsps
> >and
> > > struts actions.
> > >
> > > Therefore, I would really appreciate advice/experienc on
> packaging up an
> > > architecture like this.
> > >
> > > regards,
> > > Brian
> > >
> > > _
> > > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multipage form and multibox fields

2004-05-19 Thread Diego


Hi everyone! I have a multi-page form with several multibox fields in its
different pages. The form is stored in session. In the ActionForm Javadoc I
found this:

--If the form is stored in session-scope so that values can be collected over
--multiple requests (a "wizard"), you must be very careful of which properties,
if
--any, are reset. As mentioned, session-scope checkboxes must be reset to false
--for any page where this property is set. This is because the client does not
--submit a checkbox value when it is clear (false). If a session-scoped
checkbox
--is not proactively reset, it can never be set to false.

Well, the problem I have is that I don't know how to do that. I mean, I know
where the reset() method is and I know how to set the multibox to false, but is
there a way to know what is the page number the user is going to? I just need to
reset the multibox fields that are on that page, if I've understood the text
above. The "page" field doesn't give me the page number I'm moving to, but the
previous one, I think.

Thanks in advance.


This message was sent using IMP, the Internet Messaging Program.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hi Daniel,
thanks for the reply.
That's fine for development but what about deployment though? Will all the 
modules have to be deployed in a single war file so they can see each other?


From: "Daniel Perry" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Modular packaging of a large application
Date: Wed, 19 May 2004 16:18:17 +0100
> 1) Should all my entity beans be packaged in a single jar?
>
no idea... i dont go in for the session beans/entity beans, i'm using OJB 
so
it's a bit different.

> 2) Different modules will probably mean different session beans, jsps 
and
> struts actions.
>

This is no problem.  Different modules all have their own config file, so 
as
long as the action classes/jsps dont overlap there wont be a problem.  I
would suggest you put the action classes for different modules in different
packages, and jsps in different folders.  That way, development can be as
independant as you like.

Daniel.
> -Original Message-
> From: Brian Styles [mailto:[EMAIL PROTECTED]
> Sent: 19 May 2004 15:30
> To: [EMAIL PROTECTED]
> Subject: Modular packaging of a large application
>
>
> Hi everyone,
>
> I've built an application in a standard j2EE format
>
> JSPs-->Struts-->Session Beans-->CMR Entity Beans.
>
> This is deployed in an exploded ear, with struts and JSPs in the
> war as well
> as the session bean interfaces. Then I have the Session Beans and
> CMR Entity
> Beans in a jar.
>
> Now I want to go to a larger environment where different developers are
> working on different modules, yet I still want each module to be
> accessable
> through a single point - ie, struts.
>
> Struts 1.1 has the concept of modules, allowing different struts config
> files per module, however, from the context of deployment I have some
> worries.
>
> 1) Should all my entity beans be packaged in a single jar?
>
> 2) Different modules will probably mean different session beans, jsps 
and
> struts actions.
>
> Therefore, I would really appreciate advice/experienc on packaging up an
> architecture like this.
>
> regards,
> Brian
>
> _
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FW: code too large for try statement

2004-05-19 Thread Joe Germuska
At 1:38 PM +0530 5/19/04, Rahul Mohan wrote:
Thank for the reply joe...
	But the Tomcat I am using is 4.1 only.I have checked the 
documentation
and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3
( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs
hm.   I was going off of this page of release notes for Tomcat 4.1:
http://java.sun.com/webservices/docs/1.0/tomcat/ReleaseNotes.html
"Maximum size of a JSP page - The JSP page compiler can generate a 
Java class that exceeds the 64kb size limit on a single Java method 
that is imposed by the JVM. A common way for this to occur is to 
include large numbers (> 75) of custom tags in a single page. To work 
around this problem, divide your large page into smaller pages, and 
use the  standard action to combine them."

Maybe that was only for 4.1.2 and was fixed in later releases.
further, i feel that the problem is with the mechanism with which the
container translates the JSP to servlet when the JSP is having tags
Ultimately, this is true.
Now, my question is whether we can configure Weblogic in some way to do
the translation as Tomcat does? ( I need to use  Weblogic, thats a project
requirement )
I think this is possible in theory, but unfortunately, I can't give 
you instructions.  Tomcat uses a subsystem called "Jasper" for JSP 
handling.  You could use Ant and Jasper to precompile your JSPs. 
Perhaps you can figure out a way to reconfigure the application 
server to use a different JSP compiler too.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hey Ricardo,
absolutely. But I said in "a" standard format. Not "the" standard format :-)

From: "Ricardo Cortes" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: Modular packaging of a large application
Date: Wed, 19 May 2004 11:15:56 -0400
Not to be cheeky but who says JSP->Struts->Session Beans->Entity Beans is 
the standard J2EE format?

:P
What about JSP -> Tiles -> Struts -> Business Delegate -> DAO -> Hibernate 
on JBoss?

-Original Message-
From: Brian Styles [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 10:30 AM
To: [EMAIL PROTECTED]
Subject: Modular packaging of a large application
Hi everyone,
I've built an application in a standard j2EE format
JSPs-->Struts-->Session Beans-->CMR Entity Beans.
This is deployed in an exploded ear, with struts and JSPs in the war as 
well
as the session bean interfaces. Then I have the Session Beans and CMR 
Entity
Beans in a jar.

Now I want to go to a larger environment where different developers are
working on different modules, yet I still want each module to be accessable
through a single point - ie, struts.
Struts 1.1 has the concept of modules, allowing different struts config
files per module, however, from the context of deployment I have some
worries.
1) Should all my entity beans be packaged in a single jar?
2) Different modules will probably mean different session beans, jsps and
struts actions.
Therefore, I would really appreciate advice/experienc on packaging up an
architecture like this.
regards,
Brian
_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Modular packaging of a large application

2004-05-19 Thread Daniel Perry

> 1) Should all my entity beans be packaged in a single jar?
>

no idea... i dont go in for the session beans/entity beans, i'm using OJB so
it's a bit different.

> 2) Different modules will probably mean different session beans, jsps and
> struts actions.
>

This is no problem.  Different modules all have their own config file, so as
long as the action classes/jsps dont overlap there wont be a problem.  I
would suggest you put the action classes for different modules in different
packages, and jsps in different folders.  That way, development can be as
independant as you like.

Daniel.


> -Original Message-
> From: Brian Styles [mailto:[EMAIL PROTECTED]
> Sent: 19 May 2004 15:30
> To: [EMAIL PROTECTED]
> Subject: Modular packaging of a large application
>
>
> Hi everyone,
>
> I've built an application in a standard j2EE format
>
> JSPs-->Struts-->Session Beans-->CMR Entity Beans.
>
> This is deployed in an exploded ear, with struts and JSPs in the
> war as well
> as the session bean interfaces. Then I have the Session Beans and
> CMR Entity
> Beans in a jar.
>
> Now I want to go to a larger environment where different developers are
> working on different modules, yet I still want each module to be
> accessable
> through a single point - ie, struts.
>
> Struts 1.1 has the concept of modules, allowing different struts config
> files per module, however, from the context of deployment I have some
> worries.
>
> 1) Should all my entity beans be packaged in a single jar?
>
> 2) Different modules will probably mean different session beans, jsps and
> struts actions.
>
> Therefore, I would really appreciate advice/experienc on packaging up an
> architecture like this.
>
> regards,
> Brian
>
> _
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem while loading validation.xml

2004-05-19 Thread Hengge Joachim
Hi mailing list,

today quite a strange (at least in my opinion) behaviour of my struts application. I'm 
developing an application based on weblogic 8.1 SP2. So far so good, everything works 
fine (struts and tiles), but as soon as i add the validator plugin in the 
struts-config.xml and redeploy my application, weblogic throws the below mentioned 
exception while loading both validation.xml and validation-rules.xml. I'm not quite 
sure if the problem is struts or weblogic related, but i hope, the struts mailing list 
is able to help me solving this problem. 

Additional information: 
- web archive (.war) is located inside an enterprise archive (.ear)
- deploying the war-file individually leads to the same exception
- deployment failed in different weblogic domains -> same exception
- validation configuration should be correct (i have another running 
application (.war), that works with validation on weblogic)
- deployment also failed using the validator.xml and validator-rules.xml of 
the running application
- the validator xml files are well-formed and validated

I appreciate any ideas, as i spent way too much time trying to solve this problem...

2004-05-19 16:12:19,667 [main] INFO  org.apache.struts.validator.ValidatorPlugIn - 
Loading validation rules file from '/WEB-INF/validator-rules.xml'
<19.05.2004 16.12 Uhr CEST>
2004-05-19 16:12:41,028 [main] ERROR org.apache.struts.validator.ValidatorPlugIn - 
Tried all: '1' addresses, but could not connect over HTTP to server: 
'jakarta.apache.org', port: '80'
java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP 
to server: 'jakarta.apache.org', port: '80'
at weblogic.net.http.HttpClient.openServer(HttpClient.java:275)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:327)
at weblogic.net.http.HttpClient.(HttpClient.java:128)
at weblogic.net.http.HttpClient.New(HttpClient.java:196)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:117)
at 
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:293)
at java.net.URL.openStream(URL.java:913)
at 
weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:836)
at 
weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:796)
at 
weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:275)
at 
weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:841)
at 
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at 
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:259)
at 
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:222)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
at 
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
at 
weblogic.servlet.internal.Ser

Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hi everyone,
I've built an application in a standard j2EE format
JSPs-->Struts-->Session Beans-->CMR Entity Beans.
This is deployed in an exploded ear, with struts and JSPs in the war as well 
as the session bean interfaces. Then I have the Session Beans and CMR Entity 
Beans in a jar.

Now I want to go to a larger environment where different developers are 
working on different modules, yet I still want each module to be accessable 
through a single point - ie, struts.

Struts 1.1 has the concept of modules, allowing different struts config 
files per module, however, from the context of deployment I have some 
worries.

1) Should all my entity beans be packaged in a single jar?
2) Different modules will probably mean different session beans, jsps and 
struts actions.

Therefore, I would really appreciate advice/experienc on packaging up an 
architecture like this.

regards,
Brian
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Class path in Oracle 9Ias

2004-05-19 Thread Richard Yee
Duncan,
Is there a switch or something on oc4j that will cause the 
ServletContextListener.contextInitialized() method to be called before the 
init methods of the servlets that are configured to load on startup? I 
think the behavior I have seen on OAS 9.0.3 is that contextInitialized() 
happens after the init() methods are run. This behavior differs from Tomcat 
and the SunOne server.

Regards,
Richard
At 05:38 AM 5/19/2004, you wrote:
You can do this at the application level by a  entry in the 
orion-web.xml that is deployed with the app or at the OC4J Level as a 
whole in the j2ee/home/config/application.xml

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED] wrote:
Hello All,
I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j
Thanks,
VJ,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [JBoss-user] [Beginners Corner] - deployment big picture

2004-05-19 Thread Brian Styles
Hi everyone,
I've built an application in a standard j2EE format
JSPs-->Struts-->Session Beans-->CMR Entity Beans.
This is deployed in an exploded ear, with struts and JSPs in the war as well 
as the session bean interfaces. Then I have the Session Beans and CMR Entity 
Beans in a jar.

Now I want to go to a larger environment where different developers are 
working on different modules, yet I still want each module to be accessable 
through a single point - ie, struts.

Struts 1.1 has the concept of modules, allowing different struts config 
files per module, however, from the context of deployment I have some 
worries.

1) Should all my entity beans be packaged in a single jar?
2) Different modules will probably mean different session beans, jsps and 
struts actions.

Therefore, I would really appreciate advice/experienc on packaging up an 
architecture like this.

regards,
Brian
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: html:text with format property

2004-05-19 Thread Slattery, Tim - BLS
> Anybody knows any tag like html:text that has a format property?

I think the best you can do for that is to have the getter method that the
 tag invokes return appropriately formatted text. You'll also
have to write the corresponding setter method to accept the formatted text,
and transform it into whatever form is appropriate for processing and
storage.

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:text with format property

2004-05-19 Thread Paulo Rezende
Hi friends,

Anybody knows any tag like html:text that has a format property?

tks, Paulo

RE: FW: code too large for try statement

2004-05-19 Thread Rahul Mohan

Thank for the reply joe...

But the Tomcat I am using is 4.1 only.I have checked the documentation
and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3
( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs

further, i feel that the problem is with the mechanism with which the
container translates the JSP to servlet when the JSP is having tags

On comparison of servlets I could find out that:
1. Weblogic generated servlet has a HUGE jspservice method. The size can be
attributed to all the EXTRA tag handling statements ( like getting a tag
object frm the tag pool, setting its attributes, calling its doStart()
etc... )
2. On the other hand, Tomcat generated a servlet with a much smaller
jspservice method. At each tag handling part, it just calls a method to
handle the tag. Those methods will also be generated by Tomcat in the
servlet. This definitely seems to be a smarter strategy.

Now, my question is whether we can configure Weblogic in some way to do
the translation as Tomcat does? ( I need to use  Weblogic, thats a project
requirement )

   Please help.

 Thanks,

rahul

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 6:57 PM
To: Struts Users Mailing List; struts
Subject: Re: FW: code too large for try statement


It just so happens that I just wrote an answer to in response to a
different email.

At 8:18 AM -0500 5/18/04, Joe Germuska wrote:
>
>It works find on Tomcat 5 because JSP 2.0 works around the maximum
>method-length limitation.  Weblogic 8.1 is still J2EE 1.3 (Servlet
>2.3/JSP 1.2).
>
>I'd suggest using Tomcat 4 where you now use Tomcat 5 to minimize
>the likelihood of these kinds of surprises.

You are using Tomcat 5, aren't you?


Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
   "Imagine if every Thursday your shoes exploded if you tied them
the usual way.  This happens to us all the time with computers, and
nobody thinks of complaining."
 -- Jef Raskin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with number formatting

2004-05-19 Thread Hubert Rabago
The Struts form tags don't handle formatting or i18n.  That's up to the
Action object (or maybe ActionForm, depending on how you write your app).  I
believe there are locale-aware BeanUtils converters, though I haven't used
them myself.  
You might wanna take a look at FormDef (http://www.rabago.net/struts/formdef
and http://formdef.dev.java.net).  There's a sample app that does what I
think you're trying to do, which allows the user to use forms that contain
data formatted to the locale being used.

--- [EMAIL PROTECTED] wrote:
> Hi
> 
> This won't work - If a user enters say "1,2" in the html:text field on
> the form, then what happens is that once you call
> BeanUtils.copyProperties - in the process converting it from String to
> Double - the converted value becomes 0d. If the user enters "1.2" the
> conversion is Ok.
> 
> So - Why is the Struts html:text tag not working along with the locale
> as it should do ?
> 
> Hermod
> 
> -Opprinnelig melding-
> Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sendt: 19. mai 2004 13:42
> Til: [EMAIL PROTECTED]
> Emne: SV: Problem with number formatting
> 
> 
> Hi
> 
> I'll give it a try. I just thought  that there might be someway of
> setting the formatting of html:text globally.
> 
> Hermod
> 
> -Opprinnelig melding-
> Fra: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sendt: 19. mai 2004 13:39
> Til: Struts Users Mailing List
> Emne: Re: Problem with number formatting
> 
> 
> You could try something like
> 
> 
> 
> 
> 
> On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote:
> 
> > Hi
> >
> > I see a kind of strange behaviour with the Struts html tags. When on a
> > form I have a html:text field which displays a number, say 1.2 it
> > displays as "1.2", but according to the locale I am using it should
> > display as "1,2". On the same form I have a JSTL tag fmt:number, and
> it
> > displays it as it should i.e "1,2". Does anybody have know how to get
> > these two to display the same format?
> >
> > Hermod
> >
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > * * *
> >
> > This email with attachments is solely for the use of the individual or
> > entity to whom it is addressed. Please also be aware that DnB NOR 
> > cannot
> > accept any payment orders or other legally binding correspondence with
> > customers as a part of an email.
> >
> > This email message has been virus checked by the virus programs used
> > in the DnB NOR Group.
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > * * *
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting the locale toa different value thanthe Browser Locale []

2004-05-19 Thread Kransen, J.
For a default language, make sure that there's a file
ApplicationResources.properties without a "_en", "_fr" etc suffix. That
language will be used if there's no match for the preferred language. If you
want German speakers to see English, and still have the rest (default) see
French, you can copy the _en file to _de or make a soft/hard link on *NIX.
I'm not sure why you would want to do this, because people who don't have
French as preferred language are more likely to understand English than
French. 

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Verzonden: woensdag 19 mei 2004 3:25
> Aan: Struts Users Mailing List
> Onderwerp: Setting the locale toa different value thanthe Browser Locale[]
> 
> 
> The application we are currently building is bi-lingual : French & English
> If we are rather please by the Mulilingualism support offered by Struts,
> we need to allow a  (say) German native speaker to choose another
> language than the default we set (typically choose French instead of
> English).
> How can I do that properly within Struts ?
> Is there a magic Cookie or an Attribute that Struts will pick up from
> the request to set the Locale (language) to a default other than the
> one's set in the Browser ?
> 
> Tx for any hint, pointers,
> 
> \T,
> 
> 
> 
> 
> 
> --
> 
> 
> Thomas SMETS
> rue J. Wytsmanstraat 62
> 1050 Brussels
> Tel. : +32 (0)2 742 05 94
> GSM : +32 (0)497 44 68 12
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Internationalisation

2004-05-19 Thread Prakasan OK
  Hi All,


I am trying to implement internationalisation with my struts application.
I am having three resource files namely a.properites,a_ar.properties and 
a_fr.properties.
I have done the following things.

In IE 5 I have done as follows 
Tools->Internet Options...->Languages...->Add Language to Arabic and French.


Then I am able to access the resource files in french when I set the language as 
French, but not able to access the resource files in arabic when i set the language as 
Arabic.

For some values in my arabic property file ,I am getting the following exception 
org.apache.jasper.JasperException: Malformed \u encoding.
.In other cases the values in the default property file is displayed.

Any idea???

Thanks in Advance,
Regards,
Prakasan


SV: SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi

1. implement the validation method on your ActionForm
2. Check if a particular button was pressed (give your button a name via
the "property" property). Use request.getParameter("the name of the
button").
3. If they do not match, call super.validate()

Hermod


-Opprinnelig melding-
Fra: Gunnar Schmitz [mailto:[EMAIL PROTECTED]
Sendt: 19. mai 2004 14:49
Til: [EMAIL PROTECTED]
Emne: Re: SV: Validation only on SUBMIT but not on BACK


  dnbnor.no> writes:

> 
> Hi
> In the javascript validation routine there is a parameter : bCancel
> <<<-Set this to false if you do not want client side validation
> as in :
> 
>   
> 
> Hermod
> 
Hello Hermod,

I am sorry if my description was unclear. My problem is on the server
side. I 
want my pages to work even without Javascript. What I need is a way to
validate 
or not to validate depending on the button/action/... that is passed to
Struts. 

Any ideas?

Thanks,
Gunnar





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
duh... attachment seemed to get lost
BackgroundSender.java follows:

/*
 * Created on 19-May-2004
 *
 */
package org.apache.commons.mail;

import javax.mail.MessagingException;

/**
 * A class to send messages in the background. Compose the mail as normal,
then
 * use the static method: BackgroundSender.send(Email mail) to send the
email.
 *
 * @author Daniel Perry
 */
public class BackgroundSender extends Thread {

Email theMail;

/**
 * Constructor takes an Email object, and sends it from a background
thread.
 */
private BackgroundSender(Email mail) {
super();
this.theMail = mail;
}

/**
 * Static method to send a org.apache.commons.mail.Email message in the
 * background. Note that if the message fails to get sent there is NO
 * notification!
 *
 * @param mail
 */
public static void send(Email mail) {
new BackgroundSender(mail).start();
}

/**
 * The run method of the thread that actually sends the mail.
 */
public void run() {
try {
theMail.send();
} catch (MessagingException ex) {
// do nothing here as this is running in a background thread,
and
// noone will do anything about it.
}
}
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread Gunnar Schmitz
  dnbnor.no> writes:

> 
> Hi
> In the javascript validation routine there is a parameter : bCancel
> <<<-Set this to false if you do not want client side validation
> as in :
> 
>   
> 
> Hermod
> 
Hello Hermod,

I am sorry if my description was unclear. My problem is on the server side. I 
want my pages to work even without Javascript. What I need is a way to validate 
or not to validate depending on the button/action/... that is passed to Struts. 

Any ideas?

Thanks,
Gunnar





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi

This won't work - If a user enters say "1,2" in the html:text field on
the form, then what happens is that once you call
BeanUtils.copyProperties - in the process converting it from String to
Double - the converted value becomes 0d. If the user enters "1.2" the
conversion is Ok.

So - Why is the Struts html:text tag not working along with the locale
as it should do ?

Hermod

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sendt: 19. mai 2004 13:42
Til: [EMAIL PROTECTED]
Emne: SV: Problem with number formatting


Hi

I'll give it a try. I just thought  that there might be someway of
setting the formatting of html:text globally.

Hermod

-Opprinnelig melding-
Fra: Mark Lowe [mailto:[EMAIL PROTECTED]
Sendt: 19. mai 2004 13:39
Til: Struts Users Mailing List
Emne: Re: Problem with number formatting


You could try something like





On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote:

> Hi
>
> I see a kind of strange behaviour with the Struts html tags. When on a
> form I have a html:text field which displays a number, say 1.2 it
> displays as "1.2", but according to the locale I am using it should
> display as "1,2". On the same form I have a JSTL tag fmt:number, and
it
> displays it as it should i.e "1,2". Does anybody have know how to get
> these two to display the same format?
>
> Hermod
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that DnB NOR 
> cannot
> accept any payment orders or other legally binding correspondence with
> customers as a part of an email.
>
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * *
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Class path in Oracle 9Ias

2004-05-19 Thread Duncan Mills
You can do this at the application level by a  entry in the 
orion-web.xml that is deployed with the app or at the OC4J Level as a 
whole in the j2ee/home/config/application.xml

Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED] wrote:
Hello All,
I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j
Thanks,
VJ,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi

In the javascript validation routine there is a parameter : bCancel
<<<-Set this to false if you do not want client side validation

as in :





Hermod

-Opprinnelig melding-
Fra: Gunnar Schmitz [mailto:[EMAIL PROTECTED]
Sendt: 19. mai 2004 14:20
Til: [EMAIL PROTECTED]
Emne: Validation only on SUBMIT but not on BACK


Hello,

I am using Struts 1.1 on Tomcat 4.1.24. I have a question regarding
validation.

I have a form and validation rules that apply to this form. In my JSP, I
have 
three buttons, namely CANCEL, SUBMIT, BACK (BACK meaning: I will come
back 
later). My problem now is: I want to validate the fields of my form, but
this 
validation should only occur if I press the SUBMIT button. It must not
occur on 
CANCEL or BACK (since it does not make too much sense to force the user
to give 
his address information before returning to the original place he came
from).

Is there a declarative way to skip the validation for the BACK button,
or would 
I really have to write my own validate() method.

Any help is really appreciated.

Thanks,
Gunnar Schmitz




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation only on SUBMIT but not on BACK

2004-05-19 Thread Gunnar Schmitz
Hello,

I am using Struts 1.1 on Tomcat 4.1.24. I have a question regarding validation.

I have a form and validation rules that apply to this form. In my JSP, I have 
three buttons, namely CANCEL, SUBMIT, BACK (BACK meaning: I will come back 
later). My problem now is: I want to validate the fields of my form, but this 
validation should only occur if I press the SUBMIT button. It must not occur on 
CANCEL or BACK (since it does not make too much sense to force the user to give 
his address information before returning to the original place he came from).

Is there a declarative way to skip the validation for the BACK button, or would 
I really have to write my own validate() method.

Any help is really appreciated.

Thanks,
Gunnar Schmitz




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting the locale toa different value thanthe Browser Locale[]

2004-05-19 Thread Hubert Rabago
This was illustrated by None None in this mailing list in the past few days,
with some suggestions for improvement from others.  Check the archives.
Actually, gimme a minute here...
(types on keyboard)
It's right here:
http://marc.theaimsgroup.com/?t=10845587771&r=1&w=2

--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> The application we are currently building is bi-lingual : French & English
> If we are rather please by the Mulilingualism support offered by Struts, 
> we need to allow a  (say) German native speaker to choose another 
> language than the default we set (typically choose French instead of 
> English).
> How can I do that properly within Struts ?
> Is there a magic Cookie or an Attribute that Struts will pick up from 
> the request to set the Locale (language) to a default other than the 
> one's set in the Browser ?
> 
> Tx for any hint, pointers,
> 
> \T,
> 
> 
> 
> 
> 
> -- 
> 
> 
> Thomas SMETS
> rue J. Wytsmanstraat 62
> 1050 Brussels
> Tel. : +32 (0)2 742 05 94
> GSM : +32 (0)497 44 68 12
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Class path in Oracle 9Ias

2004-05-19 Thread Williams, Robert E
I do not, but you might be able to find an answer on the Oracle Java mailing
list at: http://www.odtug.com/subscrib.htm
Particularly: [EMAIL PROTECTED]

There are several Oracle folks involved with that mailing list.

Regards,
Robert Williams



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 18, 2004 7:58 AM
To: [EMAIL PROTECTED]
Subject: Class path in Oracle 9Ias

Hello All,

I want to set up the class path to one of my property files on the disk
on Oracle 9ias.
Any idea how this can be done using OC4j

Thanks,
VJ,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mulitple Forms per Submits

2004-05-19 Thread Thomas SMETS

Okay,
Say you have many forms you have to write.
These forms have (sometimes) very little to do with each others but for
the fact that they belong to the same application. For instance, people
can introduce periods (from a date, to a date) for a specific reason
(product validity) but also period for selecting movies...
I'd like to have a PeriodForm object which would deal with the validation
of the date : _ StartDate < EndDate
 _ Day typed are valid dates
 _ ...

For that I can do two simple things :
a) MyCustomForm extends the DateForm
b) MyCustomForm delegates to the DateForm
   & just provides the right interface.

Another option would be to have a reference to the DateForm in the
MyCustomForm but the system would automatically delegate all the date
relate infos to the DateForm...
Is this possible & HOW ?

Is this clearer ?

Tia,

\T,



>
> Could you please restate (or at least clarify) your question?
> I don't think I fully understand what you are asking.
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 18, 2004 9:32 PM
> Subject: Mulitple Forms per Submits
>
>
>>
>> Is there a clean way to have multiple Forms posted when the user click
>>  the Submit buttons ?
>> Basically, instead of  extending various Forms to have some code
>> re-use  I think it would be much more interresting  to have the
>> possibility to  post multiple Forms instead of having a Specific form
>> extending generic  forms... ?
>>
>> Tx for any help,
>>
>> \T,
>>
>>
>>
>>
>>
-- 
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Brussels



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi

I'll give it a try. I just thought  that there might be someway of
setting the formatting of html:text globally.

Hermod

-Opprinnelig melding-
Fra: Mark Lowe [mailto:[EMAIL PROTECTED]
Sendt: 19. mai 2004 13:39
Til: Struts Users Mailing List
Emne: Re: Problem with number formatting


You could try something like





On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote:

> Hi
>
> I see a kind of strange behaviour with the Struts html tags. When on a
> form I have a html:text field which displays a number, say 1.2 it
> displays as "1.2", but according to the locale I am using it should
> display as "1,2". On the same form I have a JSTL tag fmt:number, and
it
> displays it as it should i.e "1,2". Does anybody have know how to get
> these two to display the same format?
>
> Hermod
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that DnB NOR 
> cannot
> accept any payment orders or other legally binding correspondence with
> customers as a part of an email.
>
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * *
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with number formatting

2004-05-19 Thread Mark Lowe
You could try something like


On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote:
Hi
I see a kind of strange behaviour with the Struts html tags. When on a
form I have a html:text field which displays a number, say 1.2 it
displays as "1.2", but according to the locale I am using it should
display as "1,2". On the same form I have a JSTL tag fmt:number, and it
displays it as it should i.e "1,2". Does anybody have know how to get
these two to display the same format?
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR 
cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * *

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SV: Server side validation

2004-05-19 Thread hermod . opstvedt
Hi

Check your Tiles controller definition in the struts-config.xml file.
Make sure that the forward parameter is not set to "forward"

Hermod

-Opprinnelig melding-
Fra: Samuel Rochas [mailto:[EMAIL PROTECTED]
Sendt: 15. mai 2004 00:41
Til: Struts Users Mailing List
Emne: Re: Server side validation


Hello Geeta,

I've solved the problem, still don't really understand the reason.

I've defined a global forward for the input of my reluctant form, and 
now, in case of validation error, I am forwarded to the desired page, 
not to the blank one.

Thanks for you help.
Samuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi

I see a kind of strange behaviour with the Struts html tags. When on a
form I have a html:text field which displays a number, say 1.2 it
displays as "1.2", but according to the locale I am using it should
display as "1,2". On the same form I have a JSTL tag fmt:number, and it
displays it as it should i.e "1,2". Does anybody have know how to get
these two to display the same format?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
I went with that, but added my own class for sending mails in the background
(see attached).

instead of:
message.send()
i use:
BackgroundSender.send(message);

Daniel.

> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: 18 May 2004 18:09
> To: 'Struts Users Mailing List'
> Subject: RE: sending emails from a struts app
>
>
> daniel,
>
> perhaps here are some more ideas for you:
> http://jakarta.apache.org/commons/sandbox/email/
>
> Cheers,
> Matze
>
> > -Original Message-
> > From: Daniel Perry [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 18, 2004 6:55 PM
> > To: Struts Users Mailing List
> > Subject: RE: sending emails from a struts app
> >
> >
> > Right.
> > Have been a little dumb - had some cases where this seemed to
> > be happening. Got some errors in tomcat logs from users
> > clicking stop part way through somthing.  On closer
> > inspection it is because the action is outputing a pdf itself
> > directly.
> >
> > Now knowing that the action will always complete i'm
> > satisfied it will work.
> >
> > I think i'll run the mail sending commands in a new thread to
> > hide any delays from the user.
> >
> > Thanks for your help,
> >
> > Daniel.
> >
> > -Original Message-
> > From: Joe Hertz [mailto:[EMAIL PROTECTED]
> > Sent: 18 May 2004 17:52
> > To: 'Struts Users Mailing List'
> > Subject: RE: sending emails from a struts app
> >
> >
> >
> > > This is what i want to acheive.  I cant have the user submitting a
> > > request, and then stopping it part way through.
> >
> > This is what you get.
> >
> > The browser simply says, "Do this". And you do. There is no
> > Mechanism for the user to say, "No! Stop! Don't!". You may
> > never get the request if there is a network problem, but that
> > isn't what you seem to be worried about.
> >
> > The browser might give up (stop button, etc) before getting
> > the response, and if you were writing the resultant HTML to
> > the response yourself, then you'd have to handle the
> > exception that could result from connection being gone, but
> > in Struts you'd use JSP and so you wouldn't have to.
> >
> > If youre worried about the user clicking a button,
> > "stopping", and since they'd be on the same page, they could
> > then press the same button (re-executing the same code) and
> > getting you into some bad state, look at using tokens.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Tiles or equivalent ?

2004-05-19 Thread Linus Nikander
the project I'm working on needs a (struts) Tiles-like framework to make
page design easier and more efficient. I've looked att Tiles but also at
some of the competitors (Sitemesh for instance). Which one do you guys use
in your projects and why ?

//Linus Nikander.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]