Re: help to changer a code to Struts

2004-11-19 Thread Peng Tuck
What problems are you facing Luis ?
Luis Antonio Martinez Cuevas wrote:
hi can some one help me to change this code to Struts pelase :)
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<[EMAIL PROTECTED] import="java.util.*" %>
<[EMAIL PROTECTED] import="com.becas.entfederativas.view.*" %>



Reporte de Becas


DIRECCIÓN ADJUNTA DE FORMACIÓN DE CIENTÍFICOS Y 
TECNÓLOGOS
DIRECCIÓN DE INFORMACIÓN, ANÁLISIS Y 
EVALUACIÓN
BECAS EN EL EXTRANJERO VIGENTES AL 30 DE JUNIO DEL 
2004


 

Pais
Reporte por Entidades 
Federativas

 


 




<%
ListaPaisForm listapais = new ListaPaisForm();
BecasExtranjerasProgramasForm listaprogramas = new 
BecasExtranjerasProgramasForm();
BecasExtranjerasPorPaisForm entidadfederativa = new 
BecasExtranjerasPorPaisForm();
Iterator iterpais = ((Collection) 
request.getAttribute("listadepaises")).iterator();
Iterator itprogra = ((Collection) 
request.getAttribute("listaprogramas")).iterator();
while(iterpais.hasNext())
{
listapais = (ListaPaisForm) iterpais.next();
String pais = listapais.getPais();
String idpais = listapais.getIdpais();
Iterator itentfed = ((Collection) 
request.getAttribute("entidadfederativa")).iterator();
%>
 



<%=pais%>

<%
while(itentfed.hasNext())
{
entidadfederativa = (BecasExtranjerasPorPaisForm) itentfed.next();
String datos = entidadfederativa.getNumero();
if(idpais.equals(entidadfederativa.getIdpais()))
{
%>

<%=entidadfederativa.getNumero()%>



<%
}
}
%>

<%
}
%>


Regresar


 


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


Re: JerichoFaces ?

2004-11-19 Thread Ted Husted
For the sake of clarity, I'm crossposting this one message, but otherwise only 
respond to this thread on the dev list. People interested in this sort of thing 
should subscribe to the dev list. (Please, please, do.)

On Thu, 18 Nov 2004 11:52:07 -0800, Dakota Jack wrote:
> My discussion of Struts being on the chopping block (look deeply
> into that chicken's eyes ;-) ) is based on seeing the controller
> mechanism, what Craig now calls a "monolithic" controller, being
> jettisoned.

Here are the true facts:

Most of us eat our own dog food. Most of us (meaning the committers) use Struts 
in real life, in our own projects, just like you. We all work with different 
teams, on projects of different scales.

So long as we need Struts 1.x ourselves, then Struts 1.x will continue to be 
improved and maintained. If this particular group of Struts committers all 
moved to JSF and wanted to use Shale, and some other group of committers wanted 
to maintain Struts 1.x instead, then I'd be the first to start nominating 
people.

Struts is an ASF project, and this is the foundation in a nutshell:

* As long as there is a community of developers who are ready, willing, and 
able to roll up their sleeves and maintain a codebase, then the codebase will 
live on. Indefinitely.

Our one and only business model is whether there are volunteers to do the work. 
Nothing else matters.

So, next, I'm going to spend some of my volunteer hours getting Struts 1.2.x 
ready for a .6 release. After that, we can go on to Struts 1.3.x, featuring 
Common Chain. We're not always quick, but we are steady.

-Ted.



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



Validator PlugIn and PDAs

2004-11-19 Thread Julian
Hi all,

I am sorry if this has been answered before, but the
search functionality on the mailing list is down.  So
here it goes:

Does the validator plugin have support for handheld
browsers such as PocketPC or Palm?  AFAIK, pocketPC
only supports JScript so this may be a problem since
all the files for scripting are written in Javascript.
 If PocketPC, etc. is not supported, is it possible to
send different scripts to different clients types
(e.g. Javascript to "normal" browsers and JScript to
pocketPC IE)? 

Thanks in advance,
Julian

=
Live simply so others may simply live. 
 
-Ghandi 
 
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily" 
 
-William of Occam






__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



RE: JerichoFaces ?

2004-11-19 Thread Chappell, Simon P
I've been quiet on this thread until now, but perhaps it's time to chime in.

First off, I have great respect for Craig and his opinions, and I think that 
it's obvious that Jack also has that respect.

Secondly, I have greatly appreciated this discussion taking place on the user 
list rather than the developer list which I do not subscribe to. I have 
considered subscribing to the developer list before, but have previously 
declined because I believed it to be more oriented towards the discussion of 
the guts of Struts with periodic discussion of direction. While the user list 
is more for the how to use Struts and periodic discussion of direction 
(occasional VeggieTale outbreaks on Friday afternoons excepted! :-). To my 
mind, this thread seems like one of the direction outbreaks and I for one am 
glad to see this being discussed on the user list.

The argument that the user list is high volume is true, but I think that "if 
you can't stand the heat, get out of the kitchen", might apply here. I still 
remember the "good ol' days" of the user list (three years plus ago) when 
volume was lower, but so was the helpfulness. If you wanted help, then you 
either begged for it or you gave up on getting any, dived in and figured stuff 
out for yourself. That's what I did. It doesn't hurt folks to listen to a 
little directional traffic now and then. (Of course, walking to school uphill 
both ways for ten miles through the snow with no shoes or coat is another 
matter. That left a mark on me! ;-)

Thirdly, I appreciate Craig's perspective that for Struts to live, Struts must 
be willing to change. Where I side more with Jack than Craig is the level of 
change necessary. A certain amount of change came with the move from 1.0.x to 
1.1.x and it was all good. The 1.1.x changes were the clarifications and 
housecleaning that are necessary as a project matures. All projects have a 
little cruft that gets picked up on the way from 0.0 to 1.0, the cleanup of 
this cruft from 1.0 to 1.1 is a well known phenomenon and therefore 
understandable and desirable.

Where I'm still undecided is with the magnitude of change that is necessary 
with the approach to version 2.0. This is why I am glad to have access to these 
discussions on the user list.

I understand that the Tomcat project made some big changes moving from 3 to 4 
and again from 4 to 5, but then again, the Ant project originally thought about 
the same issues as they planned their roadmap to version 2 and they changed 
their mind. This tells me something important.

To my mind, internals can change massively between versions, but the end user 
experience needs to change incrementally with as much back-compatibility as 
possible. Ant is now so well accepted, that the project team decided that it 
would be project suicide to make the 2.0 version break all existing scripts. I 
would suggest that Struts is now at a similar level of "market penetration" and 
should also carefully consider what follows behind as well as what lies ahead.

The end user for Struts is the application developer and it is this person that 
benefits from an assurance of continuity. When Tomcat changed, the 
configuration details changed, but the writers of the servlets and JSPs were 
fairly unaffected, outside of having new capabilities to try out. I suggest 
that Struts needs that same level of continuity.

If Struts needs that big a change to handle new stuff, perhaps it might be 
better to create a new project and start Struts on a nice end of life 
maintenance schedule. If Shale is the bees knees, then just start going full 
speed on it as a separate project and leave Struts to those of us who are happy 
to trundle along with it for now. Many companies, especially my very risk 
adverse employer, do not care to upgrade their software any faster than 
necessary. So when I go to my architecture group and ask if I can upgrade 
ShinySoftwarePackage 1.0 to ShinySoftwarePackage 2.0 their first answer is 
often "no", followed by "which part of 'no' would you like us to explain?" From 
the sounds of Ted's explanation a few days ago, the Military fit this category 
and they have now started using Struts, so I'm sure that they would not 
appreciate being told that Struts in the form that they use it now has been 
declared obsolete and that they'll need to upgrade.

I'm not trying to whine here, but there are pragmatic aspects of all this to 
consider. I think that's where Jack was coming from as well.

Just my 1/50th of a U.S. Federal Reserve note. :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

"Some problems are so complex that you have to be highly intelligent and 
well-informed just to be undecided about them." - Laurence J. Peter


>-Original Message-
>From: Dakota Jack [

[OT] Personal Firewall

2004-11-19 Thread Paul Summers
I know this is totally off-topic but I wanted to ask people who would
probably know. I am looking for an open-source personal firewall for
Windows 2000. Please do not tell me not to use Win 2K, I realize there
are much more secure OS's out there but this is what I'm going to run
for the time being. I have a good ant-virus that gets virus updates
automatically. I've moved away from IE unless I need to use it for dev
testing. However, I am looking for one more layer to help secure my
personal PC. Any advice would be greatly appreciated.

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



noise: document was recived? wtf?

2004-11-19 Thread Vic
noise: document was recived? wtf? 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


help to changer a code to Struts

2004-11-19 Thread John Vincent

Return Receipt
   
Your  help to changer a code to Struts 
document   
:  
   
was   John Vincent/Towers Perrin   
received   
by:
   
at:   11/19/2004 03:50:31 PM   
   





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



examples of struts 1.2

2004-11-19 Thread John Vincent

Return Receipt
   
Your  examples of struts 1.2   
document   
:  
   
was   John Vincent/Towers Perrin   
received   
by:
   
at:   11/19/2004 03:50:32 PM   
   





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



help to changer a code to Struts

2004-11-19 Thread DGraham
Return Receipt
   
   Your   help to changer a code to Struts 
   document:   
   
   wasDennis Graham/EvergreenFunds 
   received
   by: 
   
   at:11/19/2004 03:14:15 PM   
   





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



hemlp with tags

2004-11-19 Thread William T Hansley
Return Receipt
   
   Your   hemlp with tags  
   document:   
   
   wasWilliam T Hansley/Anesthesiology/mc/Duke 
   received
   by: 
   
   at:11/19/2004 03:14:28 PM   
   





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



examples of struts 1.2

2004-11-19 Thread William T Hansley
Return Receipt
   
   Your   examples of struts 1.2   
   document:   
   
   wasWilliam T Hansley/Anesthesiology/mc/Duke 
   received
   by: 
   
   at:11/19/2004 03:14:25 PM   
   





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



examples of struts 1.2

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi, some one has or know where to get examples of struts 1.2?


hemlp with tags

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi, can i get a value from a select tag?
 
 


help to changer a code to Struts

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi can some one help me to change this code to Struts pelase :)
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<[EMAIL PROTECTED] import="java.util.*" %>

<[EMAIL PROTECTED] import="com.becas.entfederativas.view.*" %>







Reporte de Becas





DIRECCIÓN ADJUNTA DE FORMACIÓN DE CIENTÍFICOS Y 
TECNÓLOGOS

DIRECCIÓN DE INFORMACIÓN, ANÁLISIS Y 
EVALUACIÓN

BECAS EN EL EXTRANJERO VIGENTES AL 30 DE JUNIO DEL 
2004





 

Pais

Reporte por Entidades 
Federativas



 



 







<%

ListaPaisForm listapais = new ListaPaisForm();

BecasExtranjerasProgramasForm listaprogramas = new 
BecasExtranjerasProgramasForm();

BecasExtranjerasPorPaisForm entidadfederativa = new 
BecasExtranjerasPorPaisForm();

Iterator iterpais = ((Collection) 
request.getAttribute("listadepaises")).iterator();

Iterator itprogra = ((Collection) 
request.getAttribute("listaprogramas")).iterator();

while(iterpais.hasNext())

{

listapais = (ListaPaisForm) iterpais.next();

String pais = listapais.getPais();

String idpais = listapais.getIdpais();

Iterator itentfed = ((Collection) 
request.getAttribute("entidadfederativa")).iterator();

%>

 





<%=pais%>



<%

while(itentfed.hasNext())

{

entidadfederativa = (BecasExtranjerasPorPaisForm) itentfed.next();

String datos = entidadfederativa.getNumero();

if(idpais.equals(entidadfederativa.getIdpais()))

{

%>



<%=entidadfederativa.getNumero()%>







<%

}

}

%>



<%

}

%>





Regresar







Re: OT Remainder Operation

2004-11-19 Thread Jeff Beal
You can't use the == operator with doubles reliably.  The values are 
often imprecise.  Due to rounding, you may be comparing 
0.001 to 0, and those are not equal.

Change
  if (res == 0)
to
  if (Math.abs(res) <= 0.1)
You can probably just declare res as an int, also:
 int res = (int)(diff % inc);
-- Jeff
Phani wrote:
Sorry this is not a struts question..more anlytical..
I have this simple program where I want to check
whether the division operation returns a whole number
or not...For this purpose I am actually checking
whether the remainder is zero..which fails for a
particular case..
Here is my program below..Hope to get any help ..
Thanks.
public class ROPTest {
public double d1 = 0.0;
public double d2 = 1.0;
public double inc = 0.1;
public double diff;
public double res;
public ROPTest() {
}
/* This function is to verify whether the division
operation -->  diff/inc returns a whole number or not
*/
public void compute() {
double diff = d2 - d1;
res = diff%inc;
if(res == 0)
System.out.println("The Result is Zero:
"+res);

else
System.out.println("The Result is not Zero:
"+res);
}
public static void main(String args[]) {
 		ROPTest rt = new ROPTest();
		rt.compute();
	}
}
 

		
__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 

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


Re: Using commons HttpUtils to call an Action, but it doesn't work.

2004-11-19 Thread Morgan
Guillaume Cottenceau  bluewin.ch> writes:

> 
> Morgan  writes:
> 
...
> This is not a thread-safe HttpClient. Any chance the code is
> called by several threads at the same time or something?
> 

It's possible that many people are hitting this Action at the same time, but if 
even one gets through, then the initAction should be called. 




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



Remainder Operation

2004-11-19 Thread Phani
Sorry this is not a struts question..more anlytical..

I have this simple program where I want to check
whether the division operation returns a whole number
or not...For this purpose I am actually checking
whether the remainder is zero..which fails for a
particular case..

Here is my program below..Hope to get any help ..

Thanks.

public class ROPTest {

public double d1 = 0.0;
public double d2 = 1.0;
public double inc = 0.1;

public double diff;
public double res;

public ROPTest() {

}

/* This function is to verify whether the division
operation -->  diff/inc returns a whole number or not
*/

public void compute() {

double diff = d2 - d1;
res = diff%inc;

if(res == 0)
System.out.println("The Result is Zero:
"+res);

else
System.out.println("The Result is not Zero:
"+res);

}


public static void main(String args[]) {

ROPTest rt = new ROPTest();
rt.compute();
}
}
 



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Problem with Tomcat 5.5

2004-11-19 Thread Peter Neu
Hello Bryan,
this is what I did in the first place. Any chance that my changes
didn't have any effect?
Peter.
unless you download the compat package it will not run under jre less than 1.5/5
--b
On Thu, 18 Nov 2004 09:59:01 -0600, Vic <[EMAIL PROTECTED]> wrote:
 

5.5 needs JDK1.5 Afaik.
.V

Peter Neu wrote:
   

Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 .
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this
error :
Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on
Tomcat 5.5 ?
Regards,
Peter
 

-
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: URL Customization

2004-11-19 Thread Peter Neu
No, couldn't find it there. But I suppose if  I put my application.xml
there it will serve the same purpose, right ?

it's in conf/Catalina/localhost/ROOT.xml
but this is probably OT by now :-)
 

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 09:47
To: Struts Users Mailing List
Subject: Re: URL Customization

Do you know where to find this entry in Tomcat 5.x  ? Could 
not find it 
in server.xml.
Just looked for it but could no find it...

Peter.
Richard schrieb:
   

Thanks to all. I think I can go with just transfering my 
 

webapp to the
   

ROOT folder. I have asked on the Tomcat User Mailing list  just to
confirm it. Thanks again.
On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
<[EMAIL PROTECTED]> wrote:
 

AFAIK the only way is to change you web container config to 
   

ensure your
   

webapp is in the root context, ie in Tomcat 4.1:
in the server.xml

if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...
simon 


  

   

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]
Sent: Freitag, 19. November 2004 04:42
To: Struts Users Mailing List
Subject: Re: URL Customization
Well for one thing my boss wants it removed.
On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
<[EMAIL PROTECTED]> wrote:


 

Why?
Richard wrote:
  

   

I need to remove the webapp specific part / names on my


 

application.


 

For example
http://mydomain.com/mywebapp/index.jsp
and
http://mydomain.com/mywebapp/serverpages/add-record.rr
I need the user to just see http://mydomain.com/ on 
 

their browser.
   



 

  

   

---
 

--
   



 

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]

 

-
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: Indexed properties

2004-11-19 Thread David McReynolds
 

Why is struts generating a days[10] when there are only 6 days in my
collection? Better still, why is the days index tied to the
employeeAppointments index?

<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/cfa-logic.tld" prefix="clogic"%>

  




  



  

  

  


 


  

  

  

  
  

-Original Message-
From: David McReynolds [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: Indexed properties

I am getting the nested beans out of my form ok but saving gives no joy.
I am trying to use the "2.1 Hand Cranking lazy List in the ActionForm"
from http://wiki.apache.org/struts/StrutsCatalogLazyList. However, I
never see my log messages from the indexed getter methods for any of the
nested beans.



  

  

  

  


The form has a collection of DayOfWeekBeans called days.
Each DOW bean has a collection of WorkgroupBeans called workgroups.
Each WG bean has a collection of EmployeeAppointmentBeans called
employeeAppointments.

To that end the form and each of DOW and WG beans have the following
general construct (in a garish form of C++ template syntax).
public  get(int index) {
  while (index >= .size()) {
  .add(new ());
  }

  return ().get(index);   
}

And of course the appropriate

public List get(){ return ;} and Public void set( List
 ) { this. = ;}


The above JSP leads to this html fragment.










  
  . . . Blah blah blah

-
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: Conditionally disable form input.

2004-11-19 Thread McDonnell, Colm (MLIM)
I'm sure Paul is correct here however just in case you are content to submit 
the form when the checkbox is checked . you could then conditionalise the 
text input field by wrapping it in c:if or logic:equals tags in which you test 
the value of some form bean property to determine whether to enable or disable 
the control. 


-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:34
To: 'Struts Users Mailing List'
Subject: RE: Conditionally disable form input.


What you are suggesting will only work if the form is submitted after the
checkbox is checked - probably not what you or the user would expect to
happen.

I'd try and use JavaScript to achieve the same functionality on the client -
the relevant event on the checkbox field could modify the disabled flag of
the text input.

Paul

> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: 19 November 2004 16:20
> To: [EMAIL PROTECTED]
> Subject: Conditionally disable form input.
> 
> 
> Hi All,
>  
> I want to disable a text input if a certain checkbox input has been
> checked (meaning, in the following example, that the name 
> input need not
> be filled in). My jsp code looks like this:
>  
>  property="<%=Keys.APPLICANT_FULLNAME_CHINESE%>"
> size="100"
>  
> disabled='<%=anExpressionThatDeterminesIfTheCheckboxHasBeenChe
> cked()%>'/
> >
> 
> I an using a DynaActionForm as my form bean. Ideally I suppose I would
> use an expression like:
>  
> formBean.get(otherFieldName) != null
>  
> Has anyone done something like this?
>  
> Many thanks.
>  
> -Miles
>  
> Miles Daffin
> Morgan Stanley
> 20 Cabot Square | Canary Wharf | London E14 4QA | UK
> Tel: +44 (0) 20 767 75119
> [EMAIL PROTECTED] 
>  
> 
>  
> NOTICE: If received in error, please destroy and notify 
> sender.  Sender does not waive confidentiality or privilege, 
> and use is prohibited. 
>  
> 

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message, and notify us 
immediately. If you or your employer does not consent to Internet email 
messages of this kind, please advise us immediately. Opinions, conclusions and 
other information expressed in this message are not given or endorsed by my 
Company or employer unless otherwise indicated by an authorised representative 
independent of this message.
 
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability for 
loss or damage howsoever caused.


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

 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/ 

 

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



Re: Performance issues

2004-11-19 Thread Joe Germuska
At 10:14 AM -0500 11/19/04, [EMAIL PROTECTED] wrote:
I've tried this but take javascript errors saying that the static function
is undefined.  Apparently, the staticJavascript.jsp is not being
compiled/seen.  All my jsp's are in /WEB-INF/jsp/*.
I've tried using every combination I can think of on the src= of the script
tag but can't get a resolution.  Any ideas?
 
The "src" tag is interpreted by the browser, not the servlet 
container.  Therefore, you must present a URL which can be handled by 
the browser -- that means that first, you must use URL rewriting to 
establish the context-path, and second, you can't put the pages under 
WEB-INF because the browser won't be able to retrieve them.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: Performance issues

2004-11-19 Thread Matt Bathje
[EMAIL PROTECTED] wrote:

I've tried this but take javascript errors saying that the static function
is undefined.  Apparently, the staticJavascript.jsp is not being
compiled/seen.  All my jsp's are in /WEB-INF/jsp/*.
I've tried using every combination I can think of on the src= of the script
tag but can't get a resolution.  Any ideas?
 
Bart
Bart -
From what I gather, the purpose of putting JSPs under the WEB-INF 
directory is so that they cannot be directly accessed by a web browser 
(for example typing in www.domain.com/WEB-INF/jsp/staticJavascript.jsp)

The way a script src= works is to basically access a file like a web 
browser would, which means access to the staticJavascript.jsp file is 
most likely being denied by your container.

You need to move the jsp out of the WEB-INF directory. (Or possibly 
setup an action mapping that forwards to the jsp under the WEB-INF, I'm 
not entirely sure how that would work though).

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


RE: Refreshing a page

2004-11-19 Thread Donie Kelly
Thanks Colm

-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:38
To: Struts Users Mailing List
Subject: RE: Refreshing a page

So you want this "displayHelp" round trip to be available in all of your
action classes with the behaviour in each case being identical, namely
set a flag and return to a named forward. If this accurately describes
your scenario then creating a BaseAction would certainly help. The
Struts wiki has a simple description of a BaseAction scenario:
http://wiki.apache.org/struts/StrutsCatalogBaseAction. 

Combining this with a DispathAction in which you define a "displayHelp"
method might be a neat solution, in this way you can eaily override the
default implementation of "displayHelp" should you need to do so. See
http://husted.com/struts/tips/002.html for more details on
DispatchAction.



-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:01
To: Struts Users Mailing List
Subject: RE: Refreshing a page


Hi Colm

Yes, this is what I was thinking too but I was hoping add this
functionality
to every page in our app. Doing this would involve modifing each and
every
action class. 

Can this be done any other way? Coudl I subclass the Action class and
use
that instead of Action in all my forms?

Thanks
Donie


-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:04
To: Struts Users Mailing List
Subject: RE: Refreshing a page

Your button should submit the form, thereby sending you to its
associated action class. 
In the action class set your flag, in the session (as per your
suggestion) or preferably in the form bean, then forward back to where
you came from.


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 15:46
To: Struts Mailing List ([EMAIL PROTECTED])
Subject: Refreshing a page


Hi all

 

I'm a struts newbie and I want to add a graphic button on a page (which
is
done) which, when pressed, will refresh the page and display some help
for
various items.

 

I know how to add the help uisng logic tags etc but what I need to
figure
out (I already tried searching the archives) is as follows:

 

1)   When button is pressed the current page is refreshed and
inserts a
boolean in the session data

2)   That flag can then be used in the logic tag to decide when to
display the help texts

 

Many thanks

Donie 

 
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain
or redistribute it. Click here for important additional terms relating
to
this e-mail. http://www.ml.com/email_terms/ 

 

-
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] 

 
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain
or redistribute it. Click here for important additional terms relating to
this e-mail. http://www.ml.com/email_terms/ 

 

-
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: Refreshing a page

2004-11-19 Thread McDonnell, Colm (MLIM)
So you want this "displayHelp" round trip to be available in all of your
action classes with the behaviour in each case being identical, namely
set a flag and return to a named forward. If this accurately describes
your scenario then creating a BaseAction would certainly help. The
Struts wiki has a simple description of a BaseAction scenario:
http://wiki.apache.org/struts/StrutsCatalogBaseAction. 

Combining this with a DispathAction in which you define a "displayHelp"
method might be a neat solution, in this way you can eaily override the
default implementation of "displayHelp" should you need to do so. See
http://husted.com/struts/tips/002.html for more details on
DispatchAction.



-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:01
To: Struts Users Mailing List
Subject: RE: Refreshing a page


Hi Colm

Yes, this is what I was thinking too but I was hoping add this
functionality
to every page in our app. Doing this would involve modifing each and
every
action class. 

Can this be done any other way? Coudl I subclass the Action class and
use
that instead of Action in all my forms?

Thanks
Donie


-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:04
To: Struts Users Mailing List
Subject: RE: Refreshing a page

Your button should submit the form, thereby sending you to its
associated action class. 
In the action class set your flag, in the session (as per your
suggestion) or preferably in the form bean, then forward back to where
you came from.


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 15:46
To: Struts Mailing List ([EMAIL PROTECTED])
Subject: Refreshing a page


Hi all

 

I'm a struts newbie and I want to add a graphic button on a page (which
is
done) which, when pressed, will refresh the page and display some help
for
various items.

 

I know how to add the help uisng logic tags etc but what I need to
figure
out (I already tried searching the archives) is as follows:

 

1)   When button is pressed the current page is refreshed and
inserts a
boolean in the session data

2)   That flag can then be used in the logic tag to decide when to
display the help texts

 

Many thanks

Donie 

 
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain
or redistribute it. Click here for important additional terms relating
to
this e-mail. http://www.ml.com/email_terms/ 

 

-
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] 

 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/ 

 

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



Re: Performance issues

2004-11-19 Thread bmf5




I've tried this but take javascript errors saying that the static function
is undefined.  Apparently, the staticJavascript.jsp is not being
compiled/seen.  All my jsp's are in /WEB-INF/jsp/*.

I've tried using every combination I can think of on the src= of the script
tag but can't get a resolution.  Any ideas?

 

Bart




   
 Joe Germuska  
 <[EMAIL PROTECTED] 
 >  To 
   Erik Weber  
 11/18/2004 02:42  <[EMAIL PROTECTED]>, Struts  
 PMUsers Mailing List  
   <[EMAIL PROTECTED]>
cc 
 Please respond to 
   "Struts Users   Subject 
   Mailing List"   Re: Performance issues  
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   
   




At 2:20 PM -0500 11/18/04, Erik Weber wrote:
>I found that the JavaScript generated by the Validator (Struts 1.1)
>added nearly 40Kb to the page download! (Perhaps there is a way to
>only download a script once and reuse it among pages? I have no
>idea.) I don't use JavaScript validation other than a simple blank
>field check.

There is a way.  You can use the staticJavascript attribute and set
it to "false" in most of your pages, and then make a single JSP like
this:


more validation_js.jsp:
<%@ page language="java" %>
<%@ page contentType="text/javascript; charset=UTF-8" %>

<%@ taglib uri="/struts/html-el" prefix="html" %>


There you have it.

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

-
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: Conditionally disable form input.

2004-11-19 Thread Paul McCulloch
What you are suggesting will only work if the form is submitted after the
checkbox is checked - probably not what you or the user would expect to
happen.

I'd try and use JavaScript to achieve the same functionality on the client -
the relevant event on the checkbox field could modify the disabled flag of
the text input.

Paul

> -Original Message-
> From: Daffin, Miles (Company IT) 
> [mailto:[EMAIL PROTECTED]
> Sent: 19 November 2004 16:20
> To: [EMAIL PROTECTED]
> Subject: Conditionally disable form input.
> 
> 
> Hi All,
>  
> I want to disable a text input if a certain checkbox input has been
> checked (meaning, in the following example, that the name 
> input need not
> be filled in). My jsp code looks like this:
>  
>  property="<%=Keys.APPLICANT_FULLNAME_CHINESE%>"
> size="100"
>  
> disabled='<%=anExpressionThatDeterminesIfTheCheckboxHasBeenChe
> cked()%>'/
> >
> 
> I an using a DynaActionForm as my form bean. Ideally I suppose I would
> use an expression like:
>  
> formBean.get(otherFieldName) != null
>  
> Has anyone done something like this?
>  
> Many thanks.
>  
> -Miles
>  
> Miles Daffin
> Morgan Stanley
> 20 Cabot Square | Canary Wharf | London E14 4QA | UK
> Tel: +44 (0) 20 767 75119
> [EMAIL PROTECTED] 
>  
> 
>  
> NOTICE: If received in error, please destroy and notify 
> sender.  Sender does not waive confidentiality or privilege, 
> and use is prohibited. 
>  
> 

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message, and notify us 
immediately. If you or your employer does not consent to Internet email 
messages of this kind, please advise us immediately. Opinions, conclusions and 
other information expressed in this message are not given or endorsed by my 
Company or employer unless otherwise indicated by an authorised representative 
independent of this message.
 
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability for 
loss or damage howsoever caused.


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



Re: [ANNOUNCE] Struts xmoon 0.6.1

2004-11-19 Thread Lixin Chu
Hi,
that's something interesting. would like to know the design intent a bit more:
 beside supporting scripting,  what are the other use cases ? 
dynamically change the functionality of an action class at run time ?
li xin


On Fri, 19 Nov 2004 12:04:46 +0100, Mario Neè <[EMAIL PROTECTED]> wrote:
> [ANNOUNCE] Struts xmoon 0.6.1
> 
> http://www.xmoon.org
> 
> Download Now:
> http://www.xmoon.org/download.php
> 
> -
> 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]



Conditionally disable form input.

2004-11-19 Thread Daffin, Miles (Company IT)
Hi All,
 
I want to disable a text input if a certain checkbox input has been
checked (meaning, in the following example, that the name input need not
be filled in). My jsp code looks like this:
 


I an using a DynaActionForm as my form bean. Ideally I suppose I would
use an expression like:
 
formBean.get(otherFieldName) != null
 
Has anyone done something like this?
 
Many thanks.
 
-Miles
 
Miles Daffin
Morgan Stanley
20 Cabot Square | Canary Wharf | London E14 4QA | UK
Tel: +44 (0) 20 767 75119
[EMAIL PROTECTED]  

 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 


RE: Refreshing a page

2004-11-19 Thread Donie Kelly
Hi Colm

Yes, this is what I was thinking too but I was hoping add this functionality
to every page in our app. Doing this would involve modifing each and every
action class. 

Can this be done any other way? Coudl I subclass the Action class and use
that instead of Action in all my forms?

Thanks
Donie


-Original Message-
From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 16:04
To: Struts Users Mailing List
Subject: RE: Refreshing a page

Your button should submit the form, thereby sending you to its
associated action class. 
In the action class set your flag, in the session (as per your
suggestion) or preferably in the form bean, then forward back to where
you came from.


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 15:46
To: Struts Mailing List ([EMAIL PROTECTED])
Subject: Refreshing a page


Hi all

 

I'm a struts newbie and I want to add a graphic button on a page (which
is
done) which, when pressed, will refresh the page and display some help
for
various items.

 

I know how to add the help uisng logic tags etc but what I need to
figure
out (I already tried searching the archives) is as follows:

 

1)   When button is pressed the current page is refreshed and
inserts a
boolean in the session data

2)   That flag can then be used in the logic tag to decide when to
display the help texts

 

Many thanks

Donie 

 
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain
or redistribute it. Click here for important additional terms relating to
this e-mail. http://www.ml.com/email_terms/ 

 

-
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: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
marc,
You might want to read 
http://struts.apache.org/userGuide/configuration.html#module_config-switching

marc wrote:
Sorry for the late reply, but got sick.
But yes that is just what I what to do. And just to get the module admin 
to work. Can't see admin module at all.

I only need to put something in the default modul right??
And what??
Bill Siggelkow wrote:
Well, what exactly are you trying to do? I assumed you wanted to 
create something like a link that takes you to the admin module. You 
cannot just specify the module name for the path of a global forward 
.. you have to specify a valid URL; for modules, you need to make sure 
that control goes through Struts so you the path needs to be an action.

marc wrote:
I can't follow that, can you explain that a bit more. Thank you.
Bill Siggelkow wrote:
You need the path of the global forward to be an action in your 
/admin module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I 
what it to be a module.

So I made a default module, then the plan is that this module will 
point  at my first working module.

I get the default module to work, but can not get i't to forward to 
the working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.
 

WEB.XML
 
action

org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  


  
action
/
  
* 

STRUTS-DEFAULT.XML




 path="/admin"
 redirect="true"
 contextRelative="true"/>



forward="/jsp/home.jsp"/>


* 


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


RE: Refreshing a page

2004-11-19 Thread McDonnell, Colm (MLIM)
Your button should submit the form, thereby sending you to its
associated action class. 
In the action class set your flag, in the session (as per your
suggestion) or preferably in the form bean, then forward back to where
you came from.


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 15:46
To: Struts Mailing List ([EMAIL PROTECTED])
Subject: Refreshing a page


Hi all

 

I'm a struts newbie and I want to add a graphic button on a page (which
is
done) which, when pressed, will refresh the page and display some help
for
various items.

 

I know how to add the help uisng logic tags etc but what I need to
figure
out (I already tried searching the archives) is as follows:

 

1)   When button is pressed the current page is refreshed and
inserts a
boolean in the session data

2)   That flag can then be used in the logic tag to decide when to
display the help texts

 

Many thanks

Donie 

 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/ 

 

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



Refreshing a page

2004-11-19 Thread Donie Kelly
Hi all

 

I'm a struts newbie and I want to add a graphic button on a page (which is
done) which, when pressed, will refresh the page and display some help for
various items.

 

I know how to add the help uisng logic tags etc but what I need to figure
out (I already tried searching the archives) is as follows:

 

1)   When button is pressed the current page is refreshed and inserts a
boolean in the session data

2)   That flag can then be used in the logic tag to decide when to
display the help texts

 

Many thanks

Donie

 



Re: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
Mark, you can't just forward to a "module"; you have to forward to a 
specific action(URL) within that module.

marc wrote:
Sorry for the late reply, but got sick.
But yes that is just what I what to do. And just to get the module admin 
to work. Can't see admin module at all.

I only need to put something in the default modul right??
And what??
Bill Siggelkow wrote:
Well, what exactly are you trying to do? I assumed you wanted to 
create something like a link that takes you to the admin module. You 
cannot just specify the module name for the path of a global forward 
.. you have to specify a valid URL; for modules, you need to make sure 
that control goes through Struts so you the path needs to be an action.

marc wrote:
I can't follow that, can you explain that a bit more. Thank you.
Bill Siggelkow wrote:
You need the path of the global forward to be an action in your 
/admin module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I 
what it to be a module.

So I made a default module, then the plan is that this module will 
point  at my first working module.

I get the default module to work, but can not get i't to forward to 
the working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.
 

WEB.XML
 
action

org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  


  
action
/
  
* 

STRUTS-DEFAULT.XML




 path="/admin"
 redirect="true"
 contextRelative="true"/>



forward="/jsp/home.jsp"/>


* 


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


Re: Indexed properties

2004-11-19 Thread Niall Pemberton
Anyone can update the wiki. Sounds like it would be good if you documented
the grief you had on that page so that others could benefit.

Niall

- Original Message - 
From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, November 19, 2004 2:31 PM
Subject: RE: Indexed properties


> > Could not get the wiki's example of
> >
> > public class SkillActionForm extends ActionForm {
> >   protected List skills = new ArrayList();
> >
> >   public List getSkills() {
> >   return skills;
> >   }
> >
> >   public void setSkills(List skills) {
> >   this.skills = skills;
> >   }
> >
> >   public SkillBean getSkills(int index) {
> >   // automatically grow List size
> >   while (index >= skills.size()) {
> >   skills.add(new SkillBean());
> >   }
> >   return (SkillBean)skills.get(index);
> >   }
> >   }
> >
> > However, as soon as I changed the setSkills(List) to
> > setSkills(SkillBean) and provided a non-bean collection
> > populating method (populateSkills(List)) everything seems to
> > work. Apparently Struts is/cannot examine the method
> > arguments and is confused by the naming.
>
> I just went through a lot of grief with indexed properties. The Java Beans
> spec says that accessor methods for indexed properties have the following
> signatures:
>
> public myobj[] getProperty()
> public void setProperty(myobj[] mo)
> public myobj getProperty(int i)
> public void setProperty(int I, myobj mo)
>
> The unindexed accessors must take and return an array, no other kind of
> collection will do.
>
> My problem was that the BEA Weblogic server on my local computer has a JVM
> that does not enforce that rigorously, and is perfectly happy with
unindexed
> accessors that take other kinds of collections. But once I've got my app
> working on my own machine, I deploy it to a larger machine that's
available
> to the testers and users. And that machine's JVM will not recognize an
> indexed property if the unindexed accessors use anything other than an
> array. I was using an ArrayList, and that caused the server to tell me
that
> the property did not exist!
>
> --
> Tim Slattery
> [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: action to action with form

2004-11-19 Thread Raffe Paffe
You shouldn't be calling an Action from an Action.
Action chaining is not recommended and is considered
poor practice. Action classes are an implementation of
Command pattern and as such should delegate to reusable
business components.
I would refactor your business logic embedded in Action classes
into business components or application services. You can
then call these from any Action class and they will be easier
to unit test.
Yes, very true, but i dont have the spource code of the actionclass I am 
calling
so I cant refactor och do what you suggest.

If you want Struts to provide the ActionForm for each action then
you must "bind" the ActionForm to the Action class in the action mapping.
So if Actions, A, B, and C all need ActionFormC then you will have
to define this in the struts-config.xml file. One way of maintaining
state across actions is to place the ActionForm in session scope.
AFAIK the action that i want to call gets its parameters from the ActionFrom 
so
thats why I want to create it , set some vaiables and send it to the 
reciving action class.
Can I do this and if so how?

Thanks for your answer.
Ralf
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: Problem with Tomcat 5.5

2004-11-19 Thread bryan
unless you download the compat package it will not run under jre less than 1.5/5

--b


On Thu, 18 Nov 2004 09:59:01 -0600, Vic <[EMAIL PROTECTED]> wrote:
> 5.5 needs JDK1.5 Afaik.
> .V
> 
> 
> 
> Peter Neu wrote:
> > Hello everybody,
> >
> > I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 .
> > The Struts Version
> > I use is 1.1. When I run my application on the new Tomcat I get this
> > error :
> >
> > Error instantiating servlet class org.apache.struts.action.ActionServlet
> >
> > Can anybody tell what I can change in order to run my application on
> > Tomcat 5.5 ?
> >
> > Regards,
> >
> > Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
http://www.revoltingdigits.com
https://jestate.dev.java.net

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



RE: no web application configured

2004-11-19 Thread Robert Taylor
Need a little more information here...

Is this a Struts question?
Is this a general web application question?
Is this a Tomcat question?
Is this an application server question?

robert

> -Original Message-
> From: Nishant [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 19, 2004 7:33 AM
> To: 'Struts Users Mailing List'
> Subject: no web application configured
> 
> 
> hi to all,
> i am getting an errors as 
> " There is no web application configured to service your request"
> while acessing my index page...
> with this error index page is also coming...
> thus i am confused from where this error is coming ..
> Regards
> Nishant Patil
> Software Engineer
> Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
> West Avenue, Kalyaninagar
> Pune - 411006
> Ph. +91-20-4044700/4041700 Extn 355
> [EMAIL PROTECTED]
> www.cybage.com
> "There is difference between knowing the Path and walking on the Path"

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



RE: Indexed properties

2004-11-19 Thread Slattery, Tim - BLS
> Could not get the wiki's example of
> 
> public class SkillActionForm extends ActionForm {
>   protected List skills = new ArrayList();
> 
>   public List getSkills() {
>   return skills;
>   }
> 
>   public void setSkills(List skills) {
>   this.skills = skills;
>   }
> 
>   public SkillBean getSkills(int index) {
>   // automatically grow List size
>   while (index >= skills.size()) {
>   skills.add(new SkillBean());
>   }
>   return (SkillBean)skills.get(index);
>   }
>   } 
> 
> However, as soon as I changed the setSkills(List) to
> setSkills(SkillBean) and provided a non-bean collection 
> populating method (populateSkills(List)) everything seems to 
> work. Apparently Struts is/cannot examine the method 
> arguments and is confused by the naming.

I just went through a lot of grief with indexed properties. The Java Beans
spec says that accessor methods for indexed properties have the following
signatures:

public myobj[] getProperty()
public void setProperty(myobj[] mo)
public myobj getProperty(int i)
public void setProperty(int I, myobj mo)

The unindexed accessors must take and return an array, no other kind of
collection will do.

My problem was that the BEA Weblogic server on my local computer has a JVM
that does not enforce that rigorously, and is perfectly happy with unindexed
accessors that take other kinds of collections. But once I've got my app
working on my own machine, I deploy it to a larger machine that's available
to the testers and users. And that machine's JVM will not recognize an
indexed property if the unindexed accessors use anything other than an
array. I was using an ArrayList, and that caused the server to tell me that
the property did not exist!

--
Tim Slattery
[EMAIL PROTECTED]


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



RE: Newbie With Question

2004-11-19 Thread Scott Purcell
Hello David,

You are a very observant and helpful man. Your analysis of the problem was 
exact and consice. I changed the DTD for the struts-config.xml and updated the 
method call, and all is running as expected.

I was circumscribed by a lack of experience with Struts, but have now learned a 
large lesson.

Thank you so much for your time,
Scott



-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 5:36 PM
To: Struts Users Mailing List
Subject: RE: Newbie With Question


Scott,

I think I've found your problem:  The Action class in Struts no longer has
the perform() method.  If you change the method name to execute() and add
the appropriate "throws" clause, you should be fine.  Perform() and
execute() should have the same signature except for those differences.

Why do I think this is the problem?  Oh, just a few clues you left:

You are using a Java Boutique tutorial based on v1.0.  Many things have been
deprecated and removed as of the current, stable v1.2.4 including the
perform() to execute() change.  Since v1.0 is VERY difficult to find yet you
listed 'just getting underway with Struts', I am assuming you are using the
current version, 1.2.4.  Your struts-config.xml DTD lists v1.0 (long gone)
and your web.xml DTD lists v2.2.  The V2.2 webapp spec would have suggested
you are on Tomcat v3.X.X and I somehow doubt that. :)

Good luck on your Struts project.

Regards,
David

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: Newbie With Question


Hello,

I am just getting underway with struts and found an example here:
http://javaboutique.internet.com/tutorials/Struts/

I have completely followed the directions and I can get the initial form to
display the data that comes from the ActionForm bean. "Hansen".

But after I hit the submit, I just get a blank page. I have double, triple
checked all config settings, but cannot figure out where the problem is. The
Tomcat console does not show any error, and there appears to be no error
anywhere. Problem is, it just does not display the submit.jsp page back with
updated results.

If anyone has ideas, please let me know. Especially if there is a way to
find any type of log from Tomcat. I cannot find any type of output from the
app.

Thanks,
Scott


Here are my files:
my webapp is called "firststrut"
The classes are in package "com"
The file structure is correct



/WEB-INF/classes/com
package com;

import javax.servlet.http.*;
import org.apache.struts.action.*;

public final class SubmitAction extends Action {


  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {


System.out.println("SubmitAction extends Action class ##");

SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName();
// Translate the name to upper case
//and save it in the request object
request.setAttribute("lastName", lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward("success"));
  }

}

/WEB-INF/classes/com
package com;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class SubmitForm extends ActionForm {

  /* Last Name */
  private String lastName = "AMF"; // default value
  public String getLastName() {
  System.out.println("Getting last name");
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }

  /* Address */
  private String address = "1313 Mockingbird Lane";
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }

  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }

  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }

  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }

}



web.xml


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
action

org.apache.struts.action.ActionServlet
 

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  


  
  
action
*.do
  


  
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  

  
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
  

  
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
  




stru

RE: Indexed properties

2004-11-19 Thread David McReynolds
Could not get the wiki's example of

public class SkillActionForm extends ActionForm {
  protected List skills = new ArrayList();

  public List getSkills() {
  return skills;
  }

  public void setSkills(List skills) {
  this.skills = skills;
  }

  public SkillBean getSkills(int index) {
  // automatically grow List size
  while (index >= skills.size()) {
  skills.add(new SkillBean());
  }
  return (SkillBean)skills.get(index);
  }
  } 

However, as soon as I changed the setSkills(List) to
setSkills(SkillBean) and provided a non-bean collection populating
method (populateSkills(List)) everything seems to work. Apparently
Struts is/cannot examine the method arguments and is confused by the
naming.



-Original Message-
From: David McReynolds [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: Indexed properties

I am getting the nested beans out of my form ok but saving gives no joy.
I am trying to use the "2.1 Hand Cranking lazy List in the ActionForm"
from http://wiki.apache.org/struts/StrutsCatalogLazyList. However, I
never see my log messages from the indexed getter methods for any of the
nested beans.



  

  

  

  


The form has a collection of DayOfWeekBeans called days.
Each DOW bean has a collection of WorkgroupBeans called workgroups.
Each WG bean has a collection of EmployeeAppointmentBeans called
employeeAppointments.

To that end the form and each of DOW and WG beans have the following
general construct (in a garish form of C++ template syntax).
public  get(int index) {
  while (index >= .size()) {
  .add(new ());
  }

  return ().get(index);   
}

And of course the appropriate

public List get(){ return ;} and Public void set( List
 ) { this. = ;}


The above JSP leads to this html fragment.










  
  . . . Blah blah blah

-
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: Can't get modules to work in struts

2004-11-19 Thread marc
Sorry for the late reply, but got sick.
But yes that is just what I what to do. And just to get the module admin 
to work. Can't see admin module at all.

I only need to put something in the default modul right??
And what??
Bill Siggelkow wrote:
Well, what exactly are you trying to do? I assumed you wanted to create 
something like a link that takes you to the admin module. You cannot 
just specify the module name for the path of a global forward .. you 
have to specify a valid URL; for modules, you need to make sure that 
control goes through Struts so you the path needs to be an action.

marc wrote:
I can't follow that, can you explain that a bit more. Thank you.
Bill Siggelkow wrote:
You need the path of the global forward to be an action in your 
/admin module. Something like:

 
-Bill Siggelkow
marc wrote:
I'm trying to get modules to work in struts but with no luck.
First I made a standard struts app. And It works fin, but now I what 
it to be a module.

So I made a default module, then the plan is that this module will 
point  at my first working module.

I get the default module to work, but can not get i't to forward to 
the working module, just get at invalid path.

You can see the web.xml and struts-default.xml(default module).
Will not post the working app, because it's to long.
 

WEB.XML
 
action

org.apache.struts.action.ActionServlet

  config
  /WEB-INF/config/struts-default.xml


  config/admin
  /WEB-INF/config/struts-admin.xml


  debug
  2


  detail
  2

2
  


  
action
/
  
* 

STRUTS-DEFAULT.XML




 path="/admin"
 redirect="true"
 contextRelative="true"/>



forward="/jsp/home.jsp"/>


* 


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


RE: action to action with form

2004-11-19 Thread Robert Taylor
You shouldn't be calling an Action from an Action.
Action chaining is not recommended and is considered
poor practice. Action classes are an implementation of
Command pattern and as such should delegate to reusable
business components. 

I would refactor your business logic embedded in Action classes
into business components or application services. You can
then call these from any Action class and they will be easier
to unit test.

If you want Struts to provide the ActionForm for each action then
you must "bind" the ActionForm to the Action class in the action mapping.
So if Actions, A, B, and C all need ActionFormC then you will have
to define this in the struts-config.xml file. One way of maintaining
state across actions is to place the ActionForm in session scope.

robert

> -Original Message-
> From: Raffe Paffe [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 19, 2004 7:18 AM
> To: [EMAIL PROTECTED]
> Subject: action to action with form
> 
> 
> 
> Hi
> 
> I have a system with some action classes that i need to call from my action 
> class.
> I do not have the source code of the action classes that needs to be called 
> and I
> can not change them but I know how the actionform is suppose to look and I 
> want
> to this serverside.
> 
> So, I have actioclass A and I want to call action class B witch needs 
> actionform C.
> I will use the mappings to chain the response from B to my first action 
> class A.
> 
> Can I do this and if yes, how? Can I create actionform C and chain it 
> somehow?
> 
> Code examples woulde be great.
> 
> Thanks
> 
> Ralf
> 
> 
> Good judgement comes from experience, and experience comes from bad 
> judgement.
> 
> _
> 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]



no web application configured

2004-11-19 Thread Nishant
hi to all,
i am getting an errors as 
" There is no web application configured to service your request"
while acessing my index page...
with this error index page is also coming...
thus i am confused from where this error is coming ..
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
"There is difference between knowing the Path and walking on the Path"

action to action with form

2004-11-19 Thread Raffe Paffe
Hi
I have a system with some action classes that i need to call from my action 
class.
I do not have the source code of the action classes that needs to be called 
and I
can not change them but I know how the actionform is suppose to look and I 
want
to this serverside.

So, I have actioclass A and I want to call action class B witch needs 
actionform C.
I will use the mappings to chain the response from B to my first action 
class A.

Can I do this and if yes, how? Can I create actionform C and chain it 
somehow?

Code examples woulde be great.
Thanks
Ralf
Good judgement comes from experience, and experience comes from bad 
judgement.

_
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]


[ANNOUNCE] Struts xmoon 0.6.1

2004-11-19 Thread Mario Neè
[ANNOUNCE] Struts xmoon 0.6.1

http://www.xmoon.org

Download Now:
http://www.xmoon.org/download.php

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



RE: URL Customization

2004-11-19 Thread Simon Matic Langford
it's in conf/Catalina/localhost/ROOT.xml

but this is probably OT by now :-)
 

> -Original Message-
> From: Peter Neu [mailto:[EMAIL PROTECTED] 
> Sent: 19 November 2004 09:47
> To: Struts Users Mailing List
> Subject: Re: URL Customization
> 
> 
> Do you know where to find this entry in Tomcat 5.x  ? Could 
> not find it 
> in server.xml.
> Just looked for it but could no find it...
> 
> Peter.
> 
> 
> Richard schrieb:
> 
> >Thanks to all. I think I can go with just transfering my 
> webapp to the
> > ROOT folder. I have asked on the Tomcat User Mailing list  just to
> >confirm it. Thanks again.
> >
> >
> >On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
> ><[EMAIL PROTECTED]> wrote:
> >  
> >
> >>AFAIK the only way is to change you web container config to 
> ensure your
> >>webapp is in the root context, ie in Tomcat 4.1:
> >>
> >>in the server.xml
> >>
> >>  
> >>
> >>if you point docBase to the directory your war unpacked to, then it
> >>should
> >>work fine. I don't know how it works for other containers...
> >>
> >>simon 
> >>
> >>
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Richard [mailto:[EMAIL PROTECTED]
> >>>Sent: Freitag, 19. November 2004 04:42
> >>>To: Struts Users Mailing List
> >>>Subject: Re: URL Customization
> >>>
> >>>
> >>>Well for one thing my boss wants it removed.
> >>>
> >>>
> >>>On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
> >>><[EMAIL PROTECTED]> wrote:
> >>>  
> >>>
> Why?
> 
> Richard wrote:
> 
> 
> >I need to remove the webapp specific part / names on my
> >  
> >
> >>>application.
> >>>  
> >>>
> >For example
> >
> >http://mydomain.com/mywebapp/index.jsp
> >
> >and
> >
> >http://mydomain.com/mywebapp/serverpages/add-record.rr
> >
> >I need the user to just see http://mydomain.com/ on 
> their browser.
> >  
> >
> 
> 
> 
> >>>---
> --
> >>>  
> >>>
> 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]
> >
> >
> >  
> >
> 
> 
> -
> 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: URL Customization

2004-11-19 Thread Peter Neu
Do you know where to find this entry in Tomcat 5.x  ? Could not find it 
in server.xml.
Just looked for it but could no find it...

Peter.
Richard schrieb:
Thanks to all. I think I can go with just transfering my webapp to the
ROOT folder. I have asked on the Tomcat User Mailing list  just to
confirm it. Thanks again.
On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
<[EMAIL PROTECTED]> wrote:
 

AFAIK the only way is to change you web container config to ensure your
webapp is in the root context, ie in Tomcat 4.1:
in the server.xml
 
if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...
simon 


   

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]
Sent: Freitag, 19. November 2004 04:42
To: Struts Users Mailing List
Subject: Re: URL Customization
Well for one thing my boss wants it removed.
On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
<[EMAIL PROTECTED]> wrote:
 

Why?
Richard wrote:
   

I need to remove the webapp specific part / names on my
 

application.
 

For example
http://mydomain.com/mywebapp/index.jsp
and
http://mydomain.com/mywebapp/serverpages/add-record.rr
I need the user to just see http://mydomain.com/ on their browser.
 

   

-
 

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]
 


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


Re: URL Customization

2004-11-19 Thread Richard
Thanks to all. I think I can go with just transfering my webapp to the
 ROOT folder. I have asked on the Tomcat User Mailing list  just to
confirm it. Thanks again.


On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
<[EMAIL PROTECTED]> wrote:
> AFAIK the only way is to change you web container config to ensure your
> webapp is in the root context, ie in Tomcat 4.1:
> 
> in the server.xml
> 
>   
> 
> if you point docBase to the directory your war unpacked to, then it
> should
> work fine. I don't know how it works for other containers...
> 
> simon 
> 
> 
> 
> > -Original Message-
> > From: Richard [mailto:[EMAIL PROTECTED]
> > Sent: Freitag, 19. November 2004 04:42
> > To: Struts Users Mailing List
> > Subject: Re: URL Customization
> >
> >
> > Well for one thing my boss wants it removed.
> >
> >
> > On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
> > <[EMAIL PROTECTED]> wrote:
> > > Why?
> > >
> > > Richard wrote:
> > > > I need to remove the webapp specific part / names on my
> > application.
> > > > For example
> > > >
> > > > http://mydomain.com/mywebapp/index.jsp
> > > >
> > > > and
> > > >
> > > > http://mydomain.com/mywebapp/serverpages/add-record.rr
> > > >
> > > > I need the user to just see http://mydomain.com/ on their browser.
> > >
> > >
> > >
> > -
> > >
> > >
> > > 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: URL Customization

2004-11-19 Thread Simon Matic Langford
AFAIK the only way is to change you web container config to ensure your
webapp is in the root context, ie in Tomcat 4.1:

in the server.xml

  

if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...

simon 

> -Original Message-
> From: Richard [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 19. November 2004 04:42
> To: Struts Users Mailing List
> Subject: Re: URL Customization
> 
> 
> Well for one thing my boss wants it removed.
> 
> 
> On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal 
> <[EMAIL PROTECTED]> wrote:
> > Why?
> > 
> > Richard wrote:
> > > I need to remove the webapp specific part / names on my 
> application.
> > > For example
> > >
> > > http://mydomain.com/mywebapp/index.jsp
> > >
> > > and
> > >
> > > http://mydomain.com/mywebapp/serverpages/add-record.rr
> > >
> > > I need the user to just see http://mydomain.com/ on their browser.
> > 
> > 
> > 
> -
> > 
> > 
> > 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: Help with message resource on Struts module

2004-11-19 Thread Radu Badita
Actually you are right - it is a typo, but only in the email (in the real 
files I have other names, and there are spelled right).

At 21:53 18.11.2004, you wrote:
Maybe this is just a typo but shouldn't you be using 
'bundle="mymodulekey"' instead of 'bundle="mymodule"'?


Radu Badita wrote:
Hello,
I have a Struts module with the following message bundle:

Inside an Action I can get messages from it with:
dateFormat = getResources(request,"mymodulekey").getMessage("date.format");
and it works fine. But this Action forwards to a jsp in which I have this 
tag:

it doesn't work because it cannot find the bundle in any scope.
Can anyone please help me with this? Maybe I don't use the  as it should be used...
Thanks
Radu

-
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]