Re: Passing JavaScript variable to a Java Scriptlet on a JSP page

2002-04-19 Thread @Basebeans.com

Subject: Re: Passing JavaScript variable to a Java Scriptlet on a JSP page
From: Matt Raible <[EMAIL PROTECTED]>
 ===
#2 can be done much easier using one of the Javascript Remote Scripting
libraries out there.

www.ashleyit.com has a good one.



On 4/17/02 8:36 PM, in article
[EMAIL PROTECTED], "John Jones"
<[EMAIL PROTECTED]> wrote:

> You're trying to merge client side code and server side code. Your server
> side code has no idea what the country variable is. Here are only two ways
> to do this:
> 
> 1. Build javascript arrays of the information dynamically on the server side
> and build the proper associations between the data using javascript. Then
> build the function to act on that data on the onChange events on the select
> boxes.
> 
> or
> 
> 2. Create 1 pixel frame on right side of screen and when you select an
> option in your select box, have a javascript function refresh that frame and
> have some JavaScript arrays print out over there and using the onLoad
> command for that frame, populate the select box on your main page based on
> the value selected. This option is kind of klugy, but could be fun. :-) This
> is really probably only good for intranet type application where everyone
> has guaranteed fast connection over a LAN.
> 
> - Original Message -
> From: "sanjeev_dutt" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, April 15, 2002 9:04 AM
> Subject: RE: Passing JavaScript variable to a Java Scriptlet on a JSP page
> 
> 
> Hi Oliver,
> 
> The main issue here is that I don't want to reload the page.
> Is there some way this could be done without reloading the page ?
> 
> Thanks
> Sanjeev
> 
> -Original Message-
> From: Oliver Reflé [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 6:26 PM
> To: Struts Users Mailing List
> Subject: RE: Passing JavaScript variable to a Java Scriptlet on a JSP
> page
> 
> 
> Why don't you try it like this,
> your Option list could be derived from a collection which is stored as an
> attribute of the page.
> Each time you select a value you can call a javascript funtion which filters
> this collection.
> 
> Maybe your data is stored like that
> germany.bavaria.nuremberg
> englang.blabla.london
> 
> so you can filter the data, then reload the the page(don't forget to
> set again your collection as attribute)
> 
> -Original Message-
> From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 2:49 PM
> To: Struts Users Mailing List
> Subject: RE: Passing JavaScript variable to a Java Scriptlet on a JSP
> page
> 
> 
> Hi Oliver,
> 
> I am forced to do that. Actually on my JSP I have three lookups: Country,
> State and City.
> If the user choses a particular country, then he should be able to see only
> the corresponding states in the states lookup.
> This is where the JavaScript comes in.
> 
> Any other suggestions to implement this ?
> 
> Thanks
> Sanjeev
> 
> 
> 
> -Original Message-
> From: Oliver Reflé [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 6:10 PM
> To: Struts Users Mailing List
> Subject: RE: Passing JavaScript variable to a Java Scriptlet on a JSP
> page
> 
> 
> I don't know exactly why you want to do that ?
> Why don't you use
> <% Hashtable states = new Hashtable();
> states = Combo.getStates(country);
> 
> %>
> and then you use
> Country: <%=country.toString()%>
> 
> You don't need to use this javascript stuff, cause the disadvantage
> is that you execute this document.write stuff on the client side.
> You first execute you java scriptlet, the transfer the date to the
> client and there the javascript code is executed.
> 
> So it would be easier if you would only work with Java scriptlets or Tags
> here
> 
> Oliver
> 
> -Original Message-
> From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 2:32 PM
> To: Struts Users Mailing List
> Subject: Passing JavaScript variable to a Java Scriptlet on a JSP page
> 
> 
> Hi,
> 
> I have this piece of code on my JSP:
> 
> 
> function fnGetStates()
> {
> country = document.searchAcctForm.cboAcctAddrCountry.value;
> alert(country);
> document.write('<% Hashtable states = new Hashtable(); %>');
> document.write('<% states = Combo.getStates(country);%>');
> document.write('<% Enumeration state = states.keys(); %>');
> document.write('<% while (state.hasMoreElements()) { %>');
> document.write('<% String statecode = (String)state.nextElement(); %>');
> document.write('<% String sts = (String)states.get(statecode); %>');
> document.write('<%= sts
> %>');
> document.write('<%  } %>');
> }
> 
> 
> 
> The problem is that "alert" is able to show the value of country. But within
> the document.write, It  is not able to get the value of "country". It throws
> the following error :
> 
> ~:\citione\web\WEB-INF\_tmp_war_myserver_myserver_web\jsp_servlet\_jsp\_sear
> ch\__searchacct.java:801: cannot resolve symbol
> probab

Re: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread @Basebeans.com

Subject: Re: How can i turn on debug for org.apache.commons.validator
From: Matt Raible <[EMAIL PROTECTED]>
 ===
Here's what I've done and it seems to work in my log4j.properties file:

# These appear to be categories hard-coded in packages
log4j.category.org.apache.commons.validator.ValidatorResources=ERROR
log4j.category.org.apache.struts.validator.ValidatorPlugIn=ERROR
log4j.category.org.apache.commons.digester.Digester.sax=ERROR
log4j.category.org.apache.struts.tiles.TilesRequestProcessor=ERROR
log4j.category.org.jakarta.taglibs.display=DEBUG


On 4/19/02 3:26 PM, in article
[EMAIL PROTECTED], "Parmar, Dipakkumar"
<[EMAIL PROTECTED]> wrote:

> No. It didn't help.  It's displaying messages from all packages, even if i
> set debug level 0 in web.xml file.
> 
> -Original Message-
> From: Witbeck, Shane [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: RE: How can i turn on debug for org.apache.commons.validator
> 
> 
> Im just guessing but maybe something like this?
> 
> log4j.category.org.apache.commons.validator=ALL
> 
> Sincerely,
> 
> Shane Witbeck
> __
> Developer, Bank of America
> email: [EMAIL PROTECTED]
> phone: 904.987.1688
> 
> -Original Message-
> From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 4:13 PM
> To: Struts Users Mailing List
> Subject: RE: How can i turn on debug for org.apache.commons.validator
> 
> 
> This will also turn on debug for other packages in struts. I want to just
> turn on debug for only org.apache.commons.validator.
> Is there anything i can control from my log4j property file?
> 
> Deepak
> 
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 3:21 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How can i turn on debug for org.apache.commons.validator
> 
> 
> I have debug set to 10 and it is working all too well in JRun.
> 
> Mark
> 
> -Original Message-
> From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 3:18 PM
> To: Struts Users Mailing List
> Subject: How can i turn on debug for org.apache.commons.validator
> 
> 
> 
> I'm having problem with validator, so before ask to list i would like to try
> myself to find what's going wrong.
> For this i would like to turn on debug for validator.
> i tried setting debug level >0 in ActionServlet mapping in web.xml but
> didn't help.
> 
> Any help?
> Regards,
> Deepak
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




null in html on validation

2002-04-19 Thread Team Gasoline

Hello --

I'm having a problem  with errors being surrounded by "null" on my page 
after validation. Here is a snippet of the html when i view source of 
the page through the browser.

   
 
   User Name:
 
 
   
   null
<--Required 
Field
null

 
   

Here is what I have in my jsp.

   
 
   
 
 
   
   
 
   

and my form.

 public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request) {

 ActionErrors errors = new ActionErrors();
 if ((username == null) || (username.length() < 1))
 errors.add("username", new 
ActionError("error.username.required"));

 return errors;

 }

Has anyone ever seen this before. I have checked everywhere and have 
found no good answers.

Thanks.



Re: FormBean changes not recognized across actions

2002-04-19 Thread Danny Mui

I had that exact issue earlier this week.  The form is reset when passed
over to the new action(4) and repopulated from the request so that removes
all the changes.  At least that's what I convinced myself with looking over
the source.  You can do the same since it's only java ;)

I love open source!

danny

- Original Message -
From: "C D" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 6:21 PM
Subject: FormBean changes not recognized across actions


> Hi,
> I am having a problem with the following flow would
> appreciate any help on it
>
> JSP(1) -> StrutsAction(2)  >
> mapping.findForward() from struts_config.xml(3)
> -> Struts Action(4)
>
> Any properties that I set on the form bean(request
> scope) at step 2 are not reflected in the form bean at
> step 4.
> Rather the orginal values of the form bean are
> there.(the same that were there at the beginning of
> step 2)
>
> How do I propagate my changes to the form bean from
> the first action to the second action in the above
> scenario??
> Ofcourse, had my mapping above forwarded to a jsp
> page, then the page reflects the correct form bean
> values that I set in the first action class.
>
> Thanks in advance,
>
> CD
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator help

2002-04-19 Thread Honman Lee

Can anyone help? I am trying to use the validation with Struts 1.0 and I get this 
message 

javax.servlet.jsp.JspException: Can't get definitions factory from context.

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.processDefinitionName(java.lang.String)

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.createTagHandler()

int s1.struts.taglib.component.InsertTag.doStartTag()

when I try to add the following to my web.xml:
  
  
validator
com.wintecinc.struts.action.ValidatorServlet

  config
  /WEB-INF/validation.xml


  debug
  1

2
  

 -Original Message-
From:   Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, April 19, 2002 3:06 PM
To: Struts Users Mailing List
Subject:RE: Validator help

I don't think so i need to initialize the validator in the web.xml file if i
use 1.1b1.
I did plug In Configuration for validator in my struts-config.xml. Please
see my original message.

Deepak

-Original Message-
From: Honman Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:58 PM
To: Struts Users Mailing List
Subject: RE: Validator help


I am having issues with my validation too.  Did you initialize the validator
in the web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FormBean changes not recognized across actions

2002-04-19 Thread C D

Hi,
I am having a problem with the following flow would
appreciate any help on it

JSP(1) -> StrutsAction(2)  >
mapping.findForward() from struts_config.xml(3) 
-> Struts Action(4)

Any properties that I set on the form bean(request
scope) at step 2 are not reflected in the form bean at
step 4.
Rather the orginal values of the form bean are
there.(the same that were there at the beginning of
step 2)

How do I propagate my changes to the form bean from
the first action to the second action in the above
scenario??
Ofcourse, had my mapping above forwarded to a jsp
page, then the page reflects the correct form bean
values that I set in the first action class.

Thanks in advance,

CD

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Robert

An error of cut and pasting config info :-) That example did have the
name, but it really didn't have a form bean in use.

-Original Message-
From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 4:49 PM
To: Struts Users Mailing List
Subject: Re: *.do  Proof of Concepts

Robert wrote:
> Mark made a good point about omitting the name. I double checked with
> another app we wrote and I left the name in the tag, but it didn't
cause
> any 'harm'; again no beans or actions. 

I knew about omitting the name, I just found strange that in
your example 
earlier you told that no form beans were created, although there was a 
"name" attribute in the action declaration.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator help

2002-04-19 Thread Parmar, Dipakkumar

I don't think so i need to initialize the validator in the web.xml file if i
use 1.1b1.
I did plug In Configuration for validator in my struts-config.xml. Please
see my original message.

Deepak

-Original Message-
From: Honman Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:58 PM
To: Struts Users Mailing List
Subject: RE: Validator help


I am having issues with my validation too.  Did you initialize the validator
in the web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator help

2002-04-19 Thread Honman Lee

I am having issues with my validation too.  Did you initialize the validator in the 
web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 1001st time this question gets asked

2002-04-19 Thread Jim Crossley

Jim Crossley <[EMAIL PROTECTED]> writes:

> > 
> 
> That won't work.  For the above action, your jsp should contain this:
> 
> 
> If you insist on not using struts tags, the equivalent is this:
> 

Actually, you never want to embed the web app's name in a jsp.  A
more robust equivalent is this:



But that's even more gross to read, so you should just use the struts
tag instead.  :-)

-- 
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: *.do ---- Proof of Concepts

2002-04-19 Thread Marcelo Vanzin

Robert wrote:
> Mark made a good point about omitting the name. I double checked with
> another app we wrote and I left the name in the tag, but it didn't cause
> any 'harm'; again no beans or actions. 

I knew about omitting the name, I just found strange that in your example 
earlier you told that no form beans were created, although there was a 
"name" attribute in the action declaration.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Validator help

2002-04-19 Thread Parmar, Dipakkumar

Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 1001st time this question gets asked

2002-04-19 Thread Jim Crossley

"Shawn Catoe" <[EMAIL PROTECTED]> writes:

> With the same set up, just the slashes added to the action's path attribute,
> input attribute, and on the form tag attribute, I am getting the same error.
> Anyone have any other thoughts on this?
> Thanks,
> Shawn Catoe
> 
> 
> type="recipe.actions.LoginAction"
>name="loginForm"
>scope="request"
>input="/Index.jsp">
> 
> 
> 

That won't work.  For the above action, your jsp should contain this:



If you insist on not using struts tags, the equivalent is this:



That's assuming your web.xml has this in it:


  YourWebAppName
  
action
org.apache.struts.action.ActionServlet
  
  
action
*.do
  


-- Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 1001st time this question gets asked

2002-04-19 Thread Galbreath, Mark

Your form action should match your action path.  The action path is
arbitrary - you can call it anything, and as long as your form action
matches it, it will map.

Mark

-Original Message-
From: Shawn Catoe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:32 PM
To: Struts Users Mailing List
Subject: RE: 1001st time this question gets asked


With the same set up, just the slashes added to the action's path attribute,
input attribute, and on the form tag attribute, I am getting the same error.
Anyone have any other thoughts on this?
Thanks,
Shawn Catoe









-Original Message-
From: arul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:51 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: 1001st time this question gets asked


Hi Shawn

Hope this is might solve your problem.

 
 

Why don't you add a slash in front

And you could as well say this "/accept"
in  too.

Get Back

Cheers
Arul

- Original Message -
From: Shawn Catoe <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 9:01 AM
Subject: 1001st time this question gets asked


> I am sure that with the activity of this list, this has been asked before.
> I cannot find the answer that helps me in any resources that I use
> (theserverside.com, jguru.com, etc).
> Problem:
> I am getting the following error when I submit my login form:
> 500 Internal Server Error No action instance for path /login could be
> created
>
> Attempts to solve:
> I have verified that the struts.jar is in the WEB-INF/lib directory.
> Verified all classes are present.
> Checked and rechecked my struts-config.xml file.
> Verified that all form tags have "blah.action" in the action attribute. (I
> am not using struts tags yet, one step at a time)
>
> I have inserted a snippet from the struts-config.xml file below as well as
> my jsp form tag.
> STRUTS-CONFIG.XML
> 
> 
> 
> type="recipe.actions.LoginAction"
>name="loginForm"
>scope="request"
>input="Index.jsp">
> 
> --
> LoginForm.jsp
> 
>
> Someone please tell me what is going on..if you need more information,
I
> will get it to you ASAP.
> Thanks in advance,
> Shawn Catoe
>
> "I'm a kid whos got alot of problems and if I throw a brick maybe that
brick
> will go and solve 'em"
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Internationalization and

2002-04-19 Thread Chuck Cavaness

Although I'm not real found of this action, I would look at the 
org.apache.struts.actons.LookupDispatchAction. This is a pre-built action 
that can be used exactly for what you are trying to do.

Chuck

At 04:30 PM 4/19/2002 +0200, you wrote:
>Hi,
>
>we are developing an application that uses the i18n capabilities of Struts,
>and we have found a problem trying to use this capability with the
>. For instance, if we use in our JSP pages: then in our code we will do 
>like this: if (action.equals("Accept")){ returnPage = "accept"; } else{ 
>returnPage = "cancel"; } but if we want to translate the value of the 
>buttons the another languages let's say: How can we make the presentation 
>of the value, and the value passed to the property 'action' not coupled. I 
>would like to put into the 'action' property always the content in 
>English, but the view in the JSP page in different languages depending on 
>the localization of the user? Is this possible in Struts? Regards Diego 
>XpertOnline Technical Manager e-mail: [EMAIL PROTECTED] Adecco 
>OleCenter C/Severo Ochoa, 55 Parque Empresarial Casablanca II 28100 
>Alcobendas Madrid - Spain Telf: +34 91 484 77 08 -- To unsubscribe, 
>e-mail: For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 1001st time this question gets asked

2002-04-19 Thread Shawn Catoe

With the same set up, just the slashes added to the action's path attribute,
input attribute, and on the form tag attribute, I am getting the same error.
Anyone have any other thoughts on this?
Thanks,
Shawn Catoe









-Original Message-
From: arul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:51 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: 1001st time this question gets asked


Hi Shawn

Hope this is might solve your problem.

 
 

Why don't you add a slash in front

And you could as well say this "/accept"
in  too.

Get Back

Cheers
Arul

- Original Message -
From: Shawn Catoe <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 9:01 AM
Subject: 1001st time this question gets asked


> I am sure that with the activity of this list, this has been asked before.
> I cannot find the answer that helps me in any resources that I use
> (theserverside.com, jguru.com, etc).
> Problem:
> I am getting the following error when I submit my login form:
> 500 Internal Server Error No action instance for path /login could be
> created
>
> Attempts to solve:
> I have verified that the struts.jar is in the WEB-INF/lib directory.
> Verified all classes are present.
> Checked and rechecked my struts-config.xml file.
> Verified that all form tags have "blah.action" in the action attribute. (I
> am not using struts tags yet, one step at a time)
>
> I have inserted a snippet from the struts-config.xml file below as well as
> my jsp form tag.
> STRUTS-CONFIG.XML
> 
> 
> 
> type="recipe.actions.LoginAction"
>name="loginForm"
>scope="request"
>input="Index.jsp">
> 
> --
> LoginForm.jsp
> 
>
> Someone please tell me what is going on..if you need more information,
I
> will get it to you ASAP.
> Thanks in advance,
> Shawn Catoe
>
> "I'm a kid whos got alot of problems and if I throw a brick maybe that
brick
> will go and solve 'em"
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Parmar, Dipakkumar

No. It didn't help.  It's displaying messages from all packages, even if i
set debug level 0 in web.xml file.

-Original Message-
From: Witbeck, Shane [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: How can i turn on debug for org.apache.commons.validator


Im just guessing but maybe something like this?

log4j.category.org.apache.commons.validator=ALL

Sincerely,

Shane Witbeck
__
Developer, Bank of America
email: [EMAIL PROTECTED]
phone: 904.987.1688

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:13 PM
To: Struts Users Mailing List
Subject: RE: How can i turn on debug for org.apache.commons.validator


This will also turn on debug for other packages in struts. I want to just
turn on debug for only org.apache.commons.validator.
Is there anything i can control from my log4j property file?

Deepak

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: How can i turn on debug for org.apache.commons.validator


I have debug set to 10 and it is working all too well in JRun.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 PM
To: Struts Users Mailing List
Subject: How can i turn on debug for org.apache.commons.validator



I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Robert

Mark made a good point about omitting the name. I double checked with
another app we wrote and I left the name in the tag, but it didn't cause
any 'harm'; again no beans or actions. 

You are correct that many tags won't work without using formbeans, such
as the html:form tag (unless it's changed). We did one app that was a
read only app and hence no form beans were used, but we had actions that
invoked our script engine for doing DB stuff, but again, we still had
.do urls with no actions or form beans in them.

- Robert

-Original Message-
From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 4:09 PM
To: Struts Users Mailing List
Subject: Re: *.do  Proof of Concepts

Robert wrote:
 >  forward="/searchCustomer.jsp" />
 >
 > where the url would be searchCustomer.do and there are no actions and
 > no formbeans for the resulting page (searchCustomer.jsp).

Interesting, I did not know this. But, you say that no form
beans are 
created. Is that so? What about the "name" attribute?

The original poster wanted this to be able to use the Struts
tags without 
going through an action. But, if using this the form bean is not 
created, many tags will not work. (BTW, I just checked the DTD, and it 
says no action is instantiated, but says nothing about form beans).

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Galbreath, Mark

If you don't want to use a bean, omit the name, but you will need a path to
map to the HTML form.

Mark

-Original Message-
From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:09 PM
To: Struts Users Mailing List
Subject: Re: *.do  Proof of Concepts


Robert wrote:
 >  forward="/searchCustomer.jsp" />
 >
 > where the url would be searchCustomer.do and there are no actions and
 > no formbeans for the resulting page (searchCustomer.jsp).

Interesting, I did not know this. But, you say that no form beans
are 
created. Is that so? What about the "name" attribute?

The original poster wanted this to be able to use the Struts tags
without 
going through an action. But, if using this the form bean is not 
created, many tags will not work. (BTW, I just checked the DTD, and it 
says no action is instantiated, but says nothing about form beans).

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: *.do ---- Proof of Concepts

2002-04-19 Thread Marcelo Vanzin

Robert wrote:
 >  forward="/searchCustomer.jsp" />
 >
 > where the url would be searchCustomer.do and there are no actions and
 > no formbeans for the resulting page (searchCustomer.jsp).

Interesting, I did not know this. But, you say that no form beans are 
created. Is that so? What about the "name" attribute?

The original poster wanted this to be able to use the Struts tags without 
going through an action. But, if using this the form bean is not 
created, many tags will not work. (BTW, I just checked the DTD, and it 
says no action is instantiated, but says nothing about form beans).

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Joseph Barefoot

Ya don't say?  Thanks for the info., I had no idea you could do that.

Joe Barefoot

> -Original Message-
> From: Robert [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 2:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: *.do  Proof of Concepts
>
>
> Actually, you can use .do without actions. This snippet is from a demo
> app that we have:
>
>  forward="/searchCustomer.jsp" />
>
> where the url would be searchCustomer.do and there are no actions and no
> formbeans for the resulting page (searchCustomer.jsp).
>
> I use this quite a bit actually myself where I believe in abstracting
> out the url links in the pages from the actual locations/page names;
> meaning I can change the searchCustomer.jsp page to some other page and
> not have to go through all my pages and update links. In this scenario
> the ActionServlet is a traffic controller for the pages. You could even
> do this in a completely non-action website, and would make sense in a
> really large site that gets updated a frequently.
>
> - Robert
>
> -Original Message-
> From: K J [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 1:04 PM
> To: Struts Users Mailing List
> Subject: *.do  Proof of Concepts
>
> Say I have a web application which contains 1 JSP and
> I wanted to use Struts. I don't have any action
> classes, but I want to use the controler servelt and
> the taglib. Will the *.do work only when you have
> action classes? What would this entry look like if I
> only want the Controler servelt to forward to a
> JSP(without any action classes)?
>
> can you tell me what needs to go where(i.e. web.xml
> vs. struts-config.xml). what should go in the global
> forward path, and the servelet-mapping section?
>
>
> Thanks.
>
> =
>
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Robert

Actually, you can use .do without actions. This snippet is from a demo
app that we have:



where the url would be searchCustomer.do and there are no actions and no
formbeans for the resulting page (searchCustomer.jsp).

I use this quite a bit actually myself where I believe in abstracting
out the url links in the pages from the actual locations/page names;
meaning I can change the searchCustomer.jsp page to some other page and
not have to go through all my pages and update links. In this scenario
the ActionServlet is a traffic controller for the pages. You could even
do this in a completely non-action website, and would make sense in a
really large site that gets updated a frequently.

- Robert

-Original Message-
From: K J [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 1:04 PM
To: Struts Users Mailing List
Subject: *.do  Proof of Concepts

Say I have a web application which contains 1 JSP and
I wanted to use Struts. I don't have any action
classes, but I want to use the controler servelt and
the taglib. Will the *.do work only when you have
action classes? What would this entry look like if I
only want the Controler servelt to forward to a
JSP(without any action classes)?

can you tell me what needs to go where(i.e. web.xml
vs. struts-config.xml). what should go in the global
forward path, and the servelet-mapping section?


Thanks.

=


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Internationalization and

2002-04-19 Thread James Mitchell

I can think of 4 ways I might approach this:

1. Have you thought about using different actions to determine which button
was pushed?

Example:

  

  


  

  


Then you would execute whatever you needed in the individual action classes.
*the only problem with this is that it draws your button vertical and not
side by side (that's html limit, not struts)

2. What about using the i18n format for submit and then checking within the
action class (similar to your action code but getting the correct i18n
string to test.

(within the jsp)

  

  
  

  



3. JavaScript - Use JavaScript to set a hidden html field that you name
"action" to "Accept" or "Decline", then submit the form.  (don't use
property="action" in your html:submit) This way, you can validate with:
(code from your original email)
> if (action.equals("Accept")){
>   returnPage = "accept";
> }
> else{
>   returnPage = "cancel";
> }


4. Hack - by default the way the html:cancel is used, if the user chooses to
click the cancel button, then struts will *not* populate the actionform (if
any) associated with an action.  So you could create a dummy form with a
hard-coded value and use html:hidden with that value to test for once you
are in the action class.


Good Luck!
JM


  

  








> -Original Message-
> From: Diego Parrilla [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 10:31 AM
> To: Struts Users Mailing List
> Subject: Internationalization and 
>
> Hi,
>
> we are developing an application that uses the i18n capabilities
> of Struts,
> and we have found a problem trying to use this capability with the
> .
>
> For instance, if we use in our JSP pages:
>
> 
> 
>
> then in our code we will do like this:
>
> if (action.equals("Accept")){
>   returnPage = "accept";
> }
> else{
>   returnPage = "cancel";
> }
>
> but if we want to translate the value of the buttons the another languages
> let's say:
>
> 
> 
>
> How can we make the presentation of the value, and the value passed to the
> property 'action' not coupled. I would like to put into the 'action'
> property always the content in English, but the view in the JSP page in
> different languages depending on the localization of the user?
>
> Is this possible in Struts?
>
> Regards
> Diego
>
> XpertOnline Technical Manager
> e-mail: [EMAIL PROTECTED]
> Adecco OleCenter
> C/Severo Ochoa, 55
> Parque Empresarial Casablanca II
> 28100 Alcobendas
> Madrid - Spain
> Telf: +34 91 484 77 08
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to have two form fields populate the labelProperty of the options tag?

2002-04-19 Thread Galbreath, Mark

Here's an example:


  

   <%= [unique_value].getLabel() %>

  


Mark (getting ready for a brewski!)

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:18 PM
To: Struts Users Mailing List
Subject: RE: How to have two form fields populate the labelProperty of
the options tag?


Rick - you could use the label-value method to construct your options list,
this way you set up your labels as a combination of both first and last name
from their respective bean properties.

If you do go this route, do a search for label-value beans in this archive,
I remember seeing a thread explaining how to use them from a couple of days
ago.

Ady

-Original Message-
From: Rick R [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:52 PM
To: [EMAIL PROTECTED]
Subject: How to have two form fields populate the labelProperty of the
options tag?


(first, I apologize for whenver this mail ends up getting there from another
address. Our work server is not getting our e-mail out correctly so at some
point this message might be duplicated from another address)

How do I use the options tag and display a value that is a combination of
more than one bean field? For example, below I not only want to display the
bean property "lastName" but also "fistName" so a sample option tag would
look like in the source:

Doe, John

What I have so far which works fine for just displaying last name is...


  


How do I change the above so that labelProperty is also lastName and
firstName?  I've looked through the list archives but can't bring up
information related to this. Maybe this isn't even possible and I'll have to
use the iterate tag over my collection and then make the option names from
bean:write tags ??


Thanks



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Witbeck, Shane

Im just guessing but maybe something like this?

log4j.category.org.apache.commons.validator=ALL

Sincerely,

Shane Witbeck
__
Developer, Bank of America
email: [EMAIL PROTECTED]
phone: 904.987.1688

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:13 PM
To: Struts Users Mailing List
Subject: RE: How can i turn on debug for org.apache.commons.validator


This will also turn on debug for other packages in struts. I want to just
turn on debug for only org.apache.commons.validator.
Is there anything i can control from my log4j property file?

Deepak

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: How can i turn on debug for org.apache.commons.validator


I have debug set to 10 and it is working all too well in JRun.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 PM
To: Struts Users Mailing List
Subject: How can i turn on debug for org.apache.commons.validator



I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Marcelo Vanzin

Parmar, Dipakkumar wrote:
> Is there anything i can control from my log4j property file?

Only if you are using 1.1 beta.

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to have two form fields populate the labelProperty of the options tag?

2002-04-19 Thread Jim Crossley

The easiest thing would be to include another accessor on the
beans in your collection, a la:

  public String getFullName () { 
return getLastName()+", "+getFirstName(); 
  }

Your 'labelProperty' attribute then becomes "fullName".

-- Jim

Rick R <[EMAIL PROTECTED]> writes:

> (first, I apologize for whenver this mail ends up getting there from another 
>address. Our work server is not getting our e-mail out correctly so at some point 
>this message might be duplicated from another address)
> 
> How do I use the options tag and display a value that is a combination of more than 
>one bean field? For example, below I not only want to display the bean property 
>"lastName" but also "fistName" so a sample option tag would look like in the source:
> 
> Doe, John
> 
> What I have so far which works fine for just displaying last name is...
> 
> 
>   
> 
> 
> How do I change the above so that labelProperty is also lastName and firstName?  
>I've looked through the list archives but can't bring up information related to this. 
>Maybe this isn't even possible and I'll have to use the iterate tag over my 
>collection and then make the option names from bean:write tags ??
> 
> 
> Thanks
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to have two form fields populate the labelProperty of the options tag?

2002-04-19 Thread Ady Das-O'Toole

Rick - you could use the label-value method to construct your options list, this way 
you set up your labels as a combination of both first and last name from their 
respective bean properties.

If you do go this route, do a search for label-value beans in this archive, I remember 
seeing a thread explaining how to use them from a couple of days ago.

Ady

-Original Message-
From: Rick R [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:52 PM
To: [EMAIL PROTECTED]
Subject: How to have two form fields populate the labelProperty of the
options tag?


(first, I apologize for whenver this mail ends up getting there from another address. 
Our work server is not getting our e-mail out correctly so at some point this message 
might be duplicated from another address)

How do I use the options tag and display a value that is a combination of more than 
one bean field? For example, below I not only want to display the bean property 
"lastName" but also "fistName" so a sample option tag would look like in the source:

Doe, John

What I have so far which works fine for just displaying last name is...


  


How do I change the above so that labelProperty is also lastName and firstName?  I've 
looked through the list archives but can't bring up information related to this. Maybe 
this isn't even possible and I'll have to use the iterate tag over my collection and 
then make the option names from bean:write tags ??


Thanks



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Galbreath, Mark

Sorry, man...I'm not up on log4j yet.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:13 PM
To: Struts Users Mailing List
Subject: RE: How can i turn on debug for org.apache.commons.validator


This will also turn on debug for other packages in struts. I want to just
turn on debug for only org.apache.commons.validator.
Is there anything i can control from my log4j property file?

Deepak

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: How can i turn on debug for org.apache.commons.validator


I have debug set to 10 and it is working all too well in JRun.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 PM
To: Struts Users Mailing List
Subject: How can i turn on debug for org.apache.commons.validator



I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Parmar, Dipakkumar

This will also turn on debug for other packages in struts. I want to just
turn on debug for only org.apache.commons.validator.
Is there anything i can control from my log4j property file?

Deepak

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: How can i turn on debug for org.apache.commons.validator


I have debug set to 10 and it is working all too well in JRun.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 PM
To: Struts Users Mailing List
Subject: How can i turn on debug for org.apache.commons.validator



I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Friday Action Mapping

2002-04-19 Thread James Mitchell

  

   
 

JM


> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 2:49 PM
> To: Struts (E-mail)
> Subject: Friday Action Mapping
> 
> 
>  
>  type="really.great.sports.bar.withAction" 
>   name="TheStripedUniForm"
>   scope="after_4pm">
>   path="/checkout/theBlonde/atTheBar.jsp" />
>   path="/checkout/theBlondes/bigBoyFriend.jsp" />
>   
>  
> Cheers!
> Mark
> "De recta non tolerandum sunt."
>  
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to have two form fields populate the labelProperty of the options tag?

2002-04-19 Thread Rick R

(first, I apologize for whenver this mail ends up getting there from another address. 
Our work server is not getting our e-mail out correctly so at some point this message 
might be duplicated from another address)

How do I use the options tag and display a value that is a combination of more than 
one bean field? For example, below I not only want to display the bean property 
"lastName" but also "fistName" so a sample option tag would look like in the source:

Doe, John

What I have so far which works fine for just displaying last name is...


  


How do I change the above so that labelProperty is also lastName and firstName?  I've 
looked through the list archives but can't bring up information related to this. Maybe 
this isn't even possible and I'll have to use the iterate tag over my collection and 
then make the option names from bean:write tags ??


Thanks



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: To use form-based authentication or not to.

2002-04-19 Thread jfc100

Tero P Paananen wrote:

>>What are the factors involved in selecting form-based
>>authentication over, say, custom authentication which
>>can be simple to implement based on a db of registered
>>users who have or don't have an indicator stored 
>>in their session(representing a login)?
>>
>
>One factor to favor form based authentication (or any
>other type of J2EE standard type authentication) is
>if you want to do declarative or programmatic security
>on your EJBs.
>
>   -TPP
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
To quote the servlet2.2 spec ...

"Like Basic Authentication, this(Form-based authentication) is not a 
secure authentication protocol as the user password is transmitted as 
plain text and the target server is not authenticated. However, 
additional protection, such as applying a secure transport mechanism 
(HTTPS) or using security at the network level (IPSEC or VPN) can 
alleviate some of these concerns."

 and ...

"Form based login and URL based session tracking can be problematic to 
implement. It is strongly recommended that form based login only be used 
when the session is being maintained by cookies or by SSL session 
information."

We know that client support of cookies is not a given(even if the 
client's browser supports cookies, he may have them turned off) and SSL 
communication is too slow for each request/response.

Anyone have any suggestions to alleviate these concerns?

Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: To use form-based authentication or not to.

2002-04-19 Thread Tero P Paananen

> What are the factors involved in selecting form-based
> authentication over, say, custom authentication which
> can be simple to implement based on a db of registered
> users who have or don't have an indicator stored 
> in their session(representing a login)?

One factor to favor form based authentication (or any
other type of J2EE standard type authentication) is
if you want to do declarative or programmatic security
on your EJBs.

-TPP

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




To use form-based authentication or not to.

2002-04-19 Thread jfc100

  Hi,

What are the factors involved in selecting form-based authentication 
over, say, custom authentication which can be simple to implement based 
on a db of registered users who have or don't have an indicator stored 
in their session(representing a login)?

An example of custom authentication would be the petstore 1.1.2. which 
incidentally replaces their jps version 1's form-based authentication 
with custom authentication. The jps docs are not well maintained IMO and 
they don't give any reasons for their changes.

Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Galbreath, Mark

I have debug set to 10 and it is working all too well in JRun.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 PM
To: Struts Users Mailing List
Subject: How can i turn on debug for org.apache.commons.validator



I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How can i turn on debug for org.apache.commons.validator

2002-04-19 Thread Parmar, Dipakkumar


I'm having problem with validator, so before ask to list i would like to try
myself to find what's going wrong.
For this i would like to turn on debug for validator.
i tried setting debug level >0 in ActionServlet mapping in web.xml but
didn't help.

Any help?
Regards,
Deepak


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: *.do ---- Proof of Concepts

2002-04-19 Thread Marcelo Vanzin

K J wrote:
> i thought since i had this mapping entry(below) in my
> web.xml, all the requests to the jsp would get
> intercepted by the ActionServlet!
> 
>   
> action
> *.*
>   

They will, if you change the URL pattern to "/*".

But that's not the problem: once the ActionServlet intercepts it, you'll 
have to have a mapping in the config file for that request, so that 
Struts knows what to do. And, once you have a mapping, you need to have 
an Action (unless you extend the ActionServlet the way I mentioned 
earlier, if it is possible to change this behaviour - I don't know).


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Manish-Hirapara

Struts has a class org.apache.struts.actions.ForwardAction that will
probably fill your need.

In your web.xml, you can leave the default *.do configuration as is.
In your struts-config.xml, add the following action (in the actionmappings
section), and replace the 'parameter' with the jsp file you want to forward
to (and the /test with whatever you would like to call your action): 

  


  

Restart, and now if you issue a /test.do you will be redirected to your jsp
page (through the controller). This way, you don't have to create an action
class, but you still can use the controller.

See the javadoc on the ForwardAction class for more.

-Manish 


-Original Message-
From: K J [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:04 PM
To: Struts Users Mailing List
Subject: *.do  Proof of Concepts


Say I have a web application which contains 1 JSP and
I wanted to use Struts. I don't have any action
classes, but I want to use the controler servelt and
the taglib. Will the *.do work only when you have
action classes? What would this entry look like if I
only want the Controler servelt to forward to a
JSP(without any action classes)?

can you tell me what needs to go where(i.e. web.xml
vs. struts-config.xml). what should go in the global
forward path, and the servelet-mapping section?


Thanks.

=


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Greg.Reddin

I beleive you are correct.  Do you have a form bean that is being
populated?  If not, and the taglib is useful to you without the
controller, is there any reason for you to use the controller in this
case?  A controller doesn't really buy you anything if you have no
business logic to invoke and only one page.

Greg

> -Original Message-
> From: K J [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: Re: *.do  Proof of Concepts
> 
> 
> wow, i didn't know that. 
> i thought since i had this mapping entry(below) in my
> web.xml, all the requests to the jsp would get
> intercepted by the ActionServlet!
> 
>   
> action
> *.*
>   
> 
> I was ablet to use the tags, so I guess the tag
> libraries have nothing to do with the ActionServlet,
> right? So in my case, the requests have not been going
> through the ActionServlet? damn!
> 
> 
> --- Marcelo Vanzin <[EMAIL PROTECTED]> wrote:
> > K J wrote:
> > > So what you guys are saying is that it won't work
> > > without the action class? instead of *.do, can I
> > just
> > > put *.* or *.jsp ?
> > 
> > Exactly. If you're mapping something to the
> > ActionServlet, you are saying 
> > that you have an Action to be executed. You can't
> > bypass the action if 
> > you are using the default ActionServlet.
> > 
> > Maybe it is possible to extend the ActionServlet
> > and make it so that you 
> > don't need to call the Action, but that is not
> > Struts' default 
> > behaviour, and that is why you need that façade
> > action for what you want 
> > to do.
> > 
> > 
> > -- 
> > []'s
> > Marcelo Vanzin
> > Touch Tecnologia
> > [EMAIL PROTECTED]
> > "Life is too short to drink cheap beer"
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: *.do ---- Proof of Concepts

2002-04-19 Thread K J

wow, i didn't know that. 
i thought since i had this mapping entry(below) in my
web.xml, all the requests to the jsp would get
intercepted by the ActionServlet!

  
action
*.*
  

I was ablet to use the tags, so I guess the tag
libraries have nothing to do with the ActionServlet,
right? So in my case, the requests have not been going
through the ActionServlet? damn!


--- Marcelo Vanzin <[EMAIL PROTECTED]> wrote:
> K J wrote:
> > So what you guys are saying is that it won't work
> > without the action class? instead of *.do, can I
> just
> > put *.* or *.jsp ?
> 
>   Exactly. If you're mapping something to the
> ActionServlet, you are saying 
> that you have an Action to be executed. You can't
> bypass the action if 
> you are using the default ActionServlet.
> 
>   Maybe it is possible to extend the ActionServlet
> and make it so that you 
> don't need to call the Action, but that is not
> Struts' default 
> behaviour, and that is why you need that façade
> action for what you want 
> to do.
> 
> 
> -- 
> []'s
> Marcelo Vanzin
> Touch Tecnologia
> [EMAIL PROTECTED]
> "Life is too short to drink cheap beer"
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Friday Action Mapping

2002-04-19 Thread Galbreath, Mark

 
  
 
 
  
 
Cheers!
Mark
"De recta non tolerandum sunt."
 



Re: *.do ---- Proof of Concepts

2002-04-19 Thread Marcelo Vanzin

K J wrote:
> So what you guys are saying is that it won't work
> without the action class? instead of *.do, can I just
> put *.* or *.jsp ?

Exactly. If you're mapping something to the ActionServlet, you are saying 
that you have an Action to be executed. You can't bypass the action if 
you are using the default ActionServlet.

Maybe it is possible to extend the ActionServlet and make it so that you 
don't need to call the Action, but that is not Struts' default 
behaviour, and that is why you need that façade action for what you want 
to do.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread K J

So what you guys are saying is that it won't work
without the action class? instead of *.do, can I just
put *.* or *.jsp ?

i.e.

  
action
*.*
  

I'm trying to see if I can do this(*.do) without any
action classes.

many thanks!


--- Joseph Barefoot <[EMAIL PROTECTED]> wrote:
> Marcelo is exactly correct, and here's an expansion
> of his explanation
> showing a sample struts-config:
> 
> 
> 
>"-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN"
>  
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
>   
>type="package.ForwardAction"
>   name="sampleForm"
>   scope="request"
>   input="/WEB-INF/jsp/myJSP.jsp">
> 
>   
> 
> 
> 
> // In the ForwardAction class:
> 
>  public ActionForward performAction(ActionMapping
> mapping,
>ActionForm form,
>HttpServletRequest request,
>HttpServletResponse response,
>PASContext ctx,
>Connection conn, Category cat)
>throws IOException, ServletException
> {
> 
>   return (new
> ActionForward(mapping.getInput()));
> }
> 
> 
> > -Original Message-
> > From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 19, 2002 11:15 AM
> > To: Struts Users Mailing List
> > Subject: Re: *.do  Proof of Concepts
> >
> >
> >
> > Make a small action that only redirects to its
> input when
> > the perform()
> > method is called, e.g.:
> >
> > return new ActionForward(mapping.getInput());
> >
> > Then use it in all you action mappings in the
> config file,
> > changing the
> > "input" attribute to the desired JSP.
> >
> > K J wrote:
> > > Say I have a web application which contains 1
> JSP and
> > > I wanted to use Struts. I don't have any action
> > > classes, but I want to use the controler servelt
> and
> > > the taglib. Will the *.do work only when you
> have
> > > action classes? What would this entry look like
> if I
> > > only want the Controler servelt to forward to a
> > > JSP(without any action classes)?
> >
> >
> > --
> > []'s
> > Marcelo Vanzin
> > Touch Tecnologia
> > [EMAIL PROTECTED]
> > "Life is too short to drink cheap beer"
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: *.do ---- Proof of Concepts

2002-04-19 Thread Joseph Barefoot

Marcelo is exactly correct, and here's an expansion of his explanation
showing a sample struts-config:



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

  


  



// In the ForwardAction class:

 public ActionForward performAction(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response,
 PASContext ctx,
 Connection conn, Category cat)
 throws IOException, ServletException
{

  return (new ActionForward(mapping.getInput()));
}


> -Original Message-
> From: Marcelo Vanzin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 11:15 AM
> To: Struts Users Mailing List
> Subject: Re: *.do  Proof of Concepts
>
>
>
>   Make a small action that only redirects to its input when
> the perform()
> method is called, e.g.:
>
>   return new ActionForward(mapping.getInput());
>
>   Then use it in all you action mappings in the config file,
> changing the
> "input" attribute to the desired JSP.
>
> K J wrote:
> > Say I have a web application which contains 1 JSP and
> > I wanted to use Struts. I don't have any action
> > classes, but I want to use the controler servelt and
> > the taglib. Will the *.do work only when you have
> > action classes? What would this entry look like if I
> > only want the Controler servelt to forward to a
> > JSP(without any action classes)?
>
>
> --
> []'s
> Marcelo Vanzin
> Touch Tecnologia
> [EMAIL PROTECTED]
> "Life is too short to drink cheap beer"
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: *.do ---- Proof of Concepts

2002-04-19 Thread Marcelo Vanzin


Make a small action that only redirects to its input when the perform() 
method is called, e.g.:

return new ActionForward(mapping.getInput());

Then use it in all you action mappings in the config file, changing the 
"input" attribute to the desired JSP.

K J wrote:
> Say I have a web application which contains 1 JSP and
> I wanted to use Struts. I don't have any action
> classes, but I want to use the controler servelt and
> the taglib. Will the *.do work only when you have
> action classes? What would this entry look like if I
> only want the Controler servelt to forward to a
> JSP(without any action classes)?


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"Life is too short to drink cheap beer"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




*.do ---- Proof of Concepts

2002-04-19 Thread K J

Say I have a web application which contains 1 JSP and
I wanted to use Struts. I don't have any action
classes, but I want to use the controler servelt and
the taglib. Will the *.do work only when you have
action classes? What would this entry look like if I
only want the Controler servelt to forward to a
JSP(without any action classes)?

can you tell me what needs to go where(i.e. web.xml
vs. struts-config.xml). what should go in the global
forward path, and the servelet-mapping section?


Thanks.

=


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-19 Thread Frederico Schuh

He means that it is more secure to place JSP files
inside the WEB-INF directory, since it does not allow
direct access to its files.
So, nobody would be able to access the JSP files
directly, and would then have to use the mapped URLs
in struts.config.xml, which is more secure.

 --- "Galbreath, Mark" <[EMAIL PROTECTED]>
escreveu: > I thought I answered that.  If you have
nothing that
> can execute outside
> WEB-INF, what does security matter?
> 
> Mark
> 
> -Original Message-
> From: Micael Padraig Og mac Grene
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 12:32 PM
> To: Struts Users Mailing List
> Subject: RE: Inside WEB-INF or outside WEB-INF?
> Struts security.
> 
> 
> Thank you for the response, but it is not responsive
> to the question I 
> asked, I think.  My question was:
> 
>  Most sample apps have the jsp pages and
>  images outside the WEB-INF. Why? Isn't
>  it more secure inside?
> 
> So, where the servlets are ultimately put is not the
> question, Mark.  The 
> question is why do most sample applications put the
> jsp pages outside the 
> WEB-INF file, even in Tomcat?  That works with
> Tomcat too.  You can put 
> them in either place, but if you do it outside you
> use relative urls and if 
> you put them inside you use the controller
> framework.  My question is why 
> in the world would someone use struts and then put
> them outside the WEB-INF 
> file?
> 
> Thanks.
> 
> Micael
> 
> 
> At 05:31 AM 4/19/02 -0400, you wrote:
> >All web containers MUST support files inside
> WEB-INF by specification.  As
> >for JSP files, some containers, like Tomcat,
> considers them controller
> >component Java classes (servlets) and places them
> in the WEB-INF/class
> >directory by default.  Others, like JRun, consider
> JSPs view components
> >(they are, if used "correctly") and place them in a
> "jsp" directory outside
> >WEB-INF.
> >
> >The point is, JSPs should never have executable
> Java scriplets in them.
> >Programmatic functionality should consist solely of
> tags, which hide the
> >implementation inside WEB-INF.
> >
> >Mark
> >
> >-Original Message-
> >From: Victor Hadianto [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, April 19, 2002 3:18 AM
> >
> >On Fri, 19 Apr 2002 08:20, you wrote:
> > > Most sample apps have the jsp pages and images
> outside the
> > > WEB-INF.  Why?  Isn't it more secure inside?
> >
> >Not all web container supports files inside the
> WEB-INF. Tomcat does.
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching in IE

2002-04-19 Thread Trieu, Danny

set nocache to true for the init param of your action servlet.

-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 5:55 PM
To: Struts Users Mailing List
Subject: Re: Caching in IE


On Thu, 18 Apr 2002 16:05:16 +
"SUPRIYA MISRA" <[EMAIL PROTECTED]> wrote:

>response.setHeader("Cache-Control","no-store"); //HTTP 1.1
> response.setHeader("Pragma","no-cache"); //HTTP 1.0
> response.setDateHeader ("Expires", 0); //prevents caching at the proxy

> server

I have tried this, but IE6 seems to ignore these settings in the header.
Which browsers have you seen which
respect these settings?


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Missing ReloadAction is 1.0.2

2002-04-19 Thread Dave Weis


Has org.apache.struts.actions.ReloadAction been intentionally
removed/depreciated? I have 1.0.2 from the download site. It's still in
the javadocs but it's not in my jar file anywhere. I did have it on an
older version of struts, however. Will it be coming back? Also, is there
a similar thing for tiles to reload componentDefinitions.xml?

Thanks
dave

-- 
Dave Weis "I believe there are more instances of the abridgement
[EMAIL PROTECTED]   of the freedom of the people by gradual and silent
  encroachments of those in power than by violent 
  and sudden usurpations."- James Madison


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-19 Thread Galbreath, Mark

I thought I answered that.  If you have nothing that can execute outside
WEB-INF, what does security matter?

Mark

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 12:32 PM
To: Struts Users Mailing List
Subject: RE: Inside WEB-INF or outside WEB-INF? Struts security.


Thank you for the response, but it is not responsive to the question I 
asked, I think.  My question was:

 Most sample apps have the jsp pages and
 images outside the WEB-INF. Why? Isn't
 it more secure inside?

So, where the servlets are ultimately put is not the question, Mark.  The 
question is why do most sample applications put the jsp pages outside the 
WEB-INF file, even in Tomcat?  That works with Tomcat too.  You can put 
them in either place, but if you do it outside you use relative urls and if 
you put them inside you use the controller framework.  My question is why 
in the world would someone use struts and then put them outside the WEB-INF 
file?

Thanks.

Micael


At 05:31 AM 4/19/02 -0400, you wrote:
>All web containers MUST support files inside WEB-INF by specification.  As
>for JSP files, some containers, like Tomcat, considers them controller
>component Java classes (servlets) and places them in the WEB-INF/class
>directory by default.  Others, like JRun, consider JSPs view components
>(they are, if used "correctly") and place them in a "jsp" directory outside
>WEB-INF.
>
>The point is, JSPs should never have executable Java scriplets in them.
>Programmatic functionality should consist solely of tags, which hide the
>implementation inside WEB-INF.
>
>Mark
>
>-Original Message-
>From: Victor Hadianto [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 19, 2002 3:18 AM
>
>On Fri, 19 Apr 2002 08:20, you wrote:
> > Most sample apps have the jsp pages and images outside the
> > WEB-INF.  Why?  Isn't it more secure inside?
>
>Not all web container supports files inside the WEB-INF. Tomcat does.
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Getting client IP address from HTTP request

2002-04-19 Thread Galbreath, Mark

String ip = request.getRemoteAddr();

Mark

-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 12:20 PM
To: [EMAIL PROTECTED]
Subject: Getting client IP address from HTTP request


I'm sure that there is a web site/manual/e-mail thread I'm not finding that 
explains how I go about getting the client workstation IP address from the 
incoming HTTP request. I need this in my Action class.

If any one could share the location of this information I would greatly 
appreciate it.

TIA,

/\/\ark

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-19 Thread Micael Padraig Og mac Grene

Thank you for the response, but it is not responsive to the question I 
asked, I think.  My question was:

 Most sample apps have the jsp pages and
 images outside the WEB-INF. Why? Isn't
 it more secure inside?

So, where the servlets are ultimately put is not the question, Mark.  The 
question is why do most sample applications put the jsp pages outside the 
WEB-INF file, even in Tomcat?  That works with Tomcat too.  You can put 
them in either place, but if you do it outside you use relative urls and if 
you put them inside you use the controller framework.  My question is why 
in the world would someone use struts and then put them outside the WEB-INF 
file?

Thanks.

Micael


At 05:31 AM 4/19/02 -0400, you wrote:
>All web containers MUST support files inside WEB-INF by specification.  As
>for JSP files, some containers, like Tomcat, considers them controller
>component Java classes (servlets) and places them in the WEB-INF/class
>directory by default.  Others, like JRun, consider JSPs view components
>(they are, if used "correctly") and place them in a "jsp" directory outside
>WEB-INF.
>
>The point is, JSPs should never have executable Java scriplets in them.
>Programmatic functionality should consist solely of tags, which hide the
>implementation inside WEB-INF.
>
>Mark
>
>-Original Message-
>From: Victor Hadianto [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 19, 2002 3:18 AM
>
>On Fri, 19 Apr 2002 08:20, you wrote:
> > Most sample apps have the jsp pages and images outside the
> > WEB-INF.  Why?  Isn't it more secure inside?
>
>Not all web container supports files inside the WEB-INF. Tomcat does.
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Getting client IP address from HTTP request

2002-04-19 Thread Struts Developer

I'm sure that there is a web site/manual/e-mail thread I'm not finding that 
explains how I go about getting the client workstation IP address from the 
incoming HTTP request. I need this in my Action class.

If any one could share the location of this information I would greatly 
appreciate it.

TIA,

/\/\ark

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Iterate update

2002-04-19 Thread Arron Bates

Read my first paragraph again, a little more slowly this time :)

Arron.

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Iterate update
>From: JDavids <[EMAIL PROTECTED]>
> ===
>So I did this in bean:
>  public void setFstName (String[] names) {
>
>   int j = names.length;
>   System.out.println("XXX in set[]"+j);
>   for (int i=0;  i System.out.println(names[j]); }
>
>And in the html:text I did indexed="true".
>
>In action, I printed an enumeration of properties, and the array does go 
>to the action!!! Great. Page/JSP tag work.
>
>But the setFstName(String[] names)  does never get called.
>What would be a signature of the method that does the setter in the bean?
>Thanks in advance for help.
>
>JD
>
>
>Arron Bates wrote:
>
>>Martin confirmed it for you. But here's the spiel you're after...
>>
>>The items in an interate tag need to have their properties set via an 
>>indexed property. The String[] you mention there is a valid form. Any 
>>Object[] is fine. In all truth, the setter for Object[] is academic. The 
>>PropertyUtils will actually call the getter for the array, and then set 
>>the item in the array for the index that it has. The actual method 
>>"setMyProperty(Object[])" will never get called.
>>
>>As of a couple of months ago, you can now use any implementation of 
>>java.util.List in the place of the Object[].
>>
>>As a side note... have you thought of spending the few minutes it would 
>>take to change your methods to the Object[] style and find out for 
>>yourself rather than get impatient with the people of the list (and now 
>>the developers list)?...
>>
>>Then it wouldn't matter what we said, you'd know, regardless.
>>
>>
>>Arron.
>>
>>
>>Struts Newsgroup (@Basebeans.com) wrote:
>>
>>>Subject: Re: Iterate update
>>>From: JDavis <[EMAIL PROTECTED]>
>>>===
>>>First it goes out as iteration tag of html:text.
>>>Then I want to capture each filed in each row (multi row update).
>>>
>>>So the set does a (String[]) ?
>>>tia,
>>>JD
>>>
>>>Martin Cooper wrote:
>>>
You don't say what you're doing with the elements in the iteration, 
but in
general, the simplest thing to do is to use a String[] property in 
your form
bean.

-- 
Martin Cooper


- Original Message -
From: "Struts Newsgroup" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:40 PM
Subject: Iterate update



>Subject: Iterate update
>From: "J.Davis" <[EMAIL PROTECTED]>
>===
>When Iterating to display, it works great. We go to next row, a display
>say 10 rows with say 5 colums each.
>
>On an update ... what to do?
>
>How do you iterate back, and apply each setter 10 times (once for each
>
row).

>Help...
>JD
>
>
>-- 
>To unsubscribe, e-mail:
>


>For additional commands, e-mail:
>




-- 
To unsubscribe, e-mail:   

For additional commands, e-mail: 


>>>
>>>-- 
>>>To unsubscribe, e-mail:   
>>>
>>>For additional commands, e-mail: 
>>>
>>>
>>>
>>
>>
>>-- 
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching in IE

2002-04-19 Thread Phase Web and Multimedia

I guess in the end we are performing coding voodoo. Then we look surprised
when our client tells us it is not working and we say, "Hmmm, I didn't have
that problem. It must be your browser." Then move on to a different subject.

Brandon Goodin


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 6:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Re(2): Caching in IE


Your end tag would throw an XMLException.

;-)

-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Re(2): Caching in IE



What is the point of using a mail client that threads messages when others
are using clients that number their responses to a posting? It is hard
enough to monitor a list that regularly generates 100+ messages a day,
without having to sift through the message subjects looking for those
replies that BECUASE THE SUBJECT WAS CHANGED no longer thread properly.


/\/\ark


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re(2): Caching in IE
>Date: 19 Apr 2002 11:49:00 +0100
>
>i can only agree with you more
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Passing parameters

2002-04-19 Thread Frederico Schuh

You could also return a new ActionForward object
passing the parameters you want.
I don't think it works with mapping.findForward().

 --- Leonardo Maciel <[EMAIL PROTECTED]> escreveu: >
use a flag variable in the form
> 
> -Original Message-
> From: Bhaskar Gopalan
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 10:09 AM
> To: Struts Group (E-mail)
> Subject: Passing parameters
> 
> 
> Hi,
> 
> I am going to a jsp(A) from two different jsps(B,C).
> Now, when I click
> 'save' on A
> I want to go back to B or C, .i.e. to where I came
> from. I send the source
> as a request parameter which is visible in action
> class of A. Now, when I am
> done,
> can i pass the source thru mapping.findForward()?
> 
> Thnx,
> GB
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>  

=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Computer-programmer.org tutorial...

2002-04-19 Thread Craig Tataryn

P.P.S. The server may go up/down at some point today as I get it all setup.

Craig.


>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Computer-programmer.org tutorial...
>Date: Fri, 19 Apr 2002 09:47:20 -0500
>
>Alright, server is back up.  Made the IP changes with my registrar so in 24
>hours everyone should be able to see the struts tutorial at:
>
>http://www.computer-programmer.org/articles/struts/
>
>If you can't wait that long, you can go here for the time being:
>
>http://24.82.162.176/articles/struts/
>
>Take care,
>
>Craig
>
>
>>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Computer-programmer.org tutorial...
>>Date: Fri, 19 Apr 2002 09:29:43 -0500
>>
>>Fear not!  I had to move over the weekend and thus the webserver that held
>>the computer-programmer struts tutorial is down.  I'll bring her back up
>>sometime today and send out an email.
>>
>>Thanks,
>>
>>
>>
>>Craig W. Tataryn
>>Programmer/Analyst
>>Compuware
>>
>>_
>>MSN Photos is the easiest way to share and print your photos:
>>http://photos.msn.com/support/worldwide.aspx
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>
>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Iterate update

2002-04-19 Thread @Basebeans.com

Subject: Re: Iterate update
From: JDavids <[EMAIL PROTECTED]>
 ===
So I did this in bean:
  public void setFstName (String[] names) {
 
int j = names.length;
System.out.println("XXX in set[]"+j);
for (int i=0;  i Martin confirmed it for you. But here's the spiel you're after...
> 
> The items in an interate tag need to have their properties set via an 
> indexed property. The String[] you mention there is a valid form. Any 
> Object[] is fine. In all truth, the setter for Object[] is academic. The 
> PropertyUtils will actually call the getter for the array, and then set 
> the item in the array for the index that it has. The actual method 
> "setMyProperty(Object[])" will never get called.
> 
> As of a couple of months ago, you can now use any implementation of 
> java.util.List in the place of the Object[].
> 
> As a side note... have you thought of spending the few minutes it would 
> take to change your methods to the Object[] style and find out for 
> yourself rather than get impatient with the people of the list (and now 
> the developers list)?...
> 
> Then it wouldn't matter what we said, you'd know, regardless.
> 
> 
> Arron.
> 
> 
> Struts Newsgroup (@Basebeans.com) wrote:
> 
>> Subject: Re: Iterate update
>> From: JDavis <[EMAIL PROTECTED]>
>> ===
>> First it goes out as iteration tag of html:text.
>> Then I want to capture each filed in each row (multi row update).
>>
>> So the set does a (String[]) ?
>> tia,
>> JD
>>
>> Martin Cooper wrote:
>>
>>> You don't say what you're doing with the elements in the iteration, 
>>> but in
>>> general, the simplest thing to do is to use a String[] property in 
>>> your form
>>> bean.
>>>
>>> -- 
>>> Martin Cooper
>>>
>>>
>>> - Original Message -
>>> From: "Struts Newsgroup" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Wednesday, April 10, 2002 2:40 PM
>>> Subject: Iterate update
>>>
>>>
>>>
 Subject: Iterate update
 From: "J.Davis" <[EMAIL PROTECTED]>
 ===
 When Iterating to display, it works great. We go to next row, a display
 say 10 rows with say 5 colums each.

 On an update ... what to do?

 How do you iterate back, and apply each setter 10 times (once for each

>>> row).
>>>
 Help...
 JD


 -- 
 To unsubscribe, e-mail:

>>> 
>>>
 For additional commands, e-mail:

>>> 
>>>
>>>
>>>
>>> -- 
>>> To unsubscribe, e-mail:   
>>> 
>>> For additional commands, e-mail: 
>>> 
>>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Computer-programmer.org tutorial...

2002-04-19 Thread Craig Tataryn

Alright, server is back up.  Made the IP changes with my registrar so in 24 
hours everyone should be able to see the struts tutorial at:

http://www.computer-programmer.org/articles/struts/

If you can't wait that long, you can go here for the time being:

http://24.82.162.176/articles/struts/

Take care,

Craig


>From: "Craig Tataryn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Computer-programmer.org tutorial...
>Date: Fri, 19 Apr 2002 09:29:43 -0500
>
>Fear not!  I had to move over the weekend and thus the webserver that held
>the computer-programmer struts tutorial is down.  I'll bring her back up
>sometime today and send out an email.
>
>Thanks,
>
>
>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Passing parameters

2002-04-19 Thread Witbeck, Shane

you could do something like this in your action:

String forwardPath = "/action/Blah?source=" + sourceValue;
return new ActionForward(forwardPath, true); // which sets redirect=true
OR
return new ActionForward(forwardPath); // which is redirect=false

Sincerely,

Shane Witbeck
__
Developer, Bank of America
email: [EMAIL PROTECTED]
phone: 904.987.1688

-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:09 AM
To: Struts Group (E-mail)
Subject: Passing parameters


Hi,

I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want to go back to B or C, .i.e. to where I came from. I send the source
as a request parameter which is visible in action class of A. Now, when I am
done,
can i pass the source thru mapping.findForward()?

Thnx,
GB

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: within

2002-04-19 Thread Ric Searle

Many thanks,  changed the scope of my  tag and it works 
perfectly.

Ric

On Friday, April 19, 2002, at 03:39  pm, Joachim Martin wrote:

> Hi- I'm not on the Struts list, but I noticed your email on the archive.
>
> The id defined by an iterate tag is _page_ scoped, you are looking for
> a request scoped bean.  No way to change the scope of the id created
> by iterate AFAIK.
>
> --J


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DynaActionForm problem with non-string objects

2002-04-19 Thread Frederico Schuh

I'm using some DynaActionForms, but some of them
require more complex objects with nested fields, and
not only Strings as fields.
The problem is that I can only seem to set my objects
as null, and it causes problems in the JSPs.
Consider this example, taken from struts-config.xml:






I could not use the "initial" property of the
form-property element because my object is not a
String. So it is set to null instead.
All I want is a new instance of the object to be
created as the field's initial value.
I could set a newly allocated object to the Dynamic
form myself, but it sounds like a rather crude
solution to me. 
Isn't there a better way to do this, or will I have to
extend the DynaActionForm class to solve this issue?


=

Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Computer-programmer.org tutorial...

2002-04-19 Thread Craig Tataryn

Fear not!  I had to move over the weekend and thus the webserver that held 
the computer-programmer struts tutorial is down.  I'll bring her back up 
sometime today and send out an email.

Thanks,



Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Internationalization and

2002-04-19 Thread Diego Parrilla

Hi,

we are developing an application that uses the i18n capabilities of Struts,
and we have found a problem trying to use this capability with the
.

For instance, if we use in our JSP pages:




then in our code we will do like this:

if (action.equals("Accept")){
returnPage = "accept";
}
else{
  returnPage = "cancel";
}

but if we want to translate the value of the buttons the another languages
let's say:




How can we make the presentation of the value, and the value passed to the
property 'action' not coupled. I would like to put into the 'action'
property always the content in English, but the view in the JSP page in
different languages depending on the localization of the user?

Is this possible in Struts?

Regards
Diego

XpertOnline Technical Manager
e-mail: [EMAIL PROTECTED]
Adecco OleCenter
C/Severo Ochoa, 55
Parque Empresarial Casablanca II
28100 Alcobendas
Madrid - Spain
Telf: +34 91 484 77 08



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Passing parameters

2002-04-19 Thread Leonardo Maciel

use a flag variable in the form

-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:09 AM
To: Struts Group (E-mail)
Subject: Passing parameters


Hi,

I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want to go back to B or C, .i.e. to where I came from. I send the source
as a request parameter which is visible in action class of A. Now, when I am
done,
can i pass the source thru mapping.findForward()?

Thnx,
GB

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Passing parameters

2002-04-19 Thread Bhaskar Gopalan

Hi,

I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want to go back to B or C, .i.e. to where I came from. I send the source
as a request parameter which is visible in action class of A. Now, when I am
done,
can i pass the source thru mapping.findForward()?

Thnx,
GB

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




PropertyDescriptor: internal error while merging PDs

2002-04-19 Thread Hoang, Hai

Do you have any ideas what this error mean?  I was trying to use the
html:select and html:option tags.  I've check everything but I can not find
anything.  Any helps is appreciated.

 

javax.servlet.ServletException: PropertyDescriptor: internal error
while merging PDs: type mismatch between read and write methods

at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)

at org.apache.jsp.group$jsp._jspService(group$jsp.java:1659)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)

at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)

at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)

at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)

at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)

at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)

at java.lang.Thread.run(Thread.java:536)

root cause java.lang.Error: PropertyDescriptor:
internal error while merging PDs: type mismatch between read and write
methods

at
java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)

at
java.

Re: within

2002-04-19 Thread Ric Searle

That looks fine, except I don't really like having Java code in my JSP 
pages, and I thought that that was what the  tag was 
supposed to do.

Ric

On Friday, April 19, 2002, at 02:19  pm, Bill Page wrote:

> something like this?
>
>  id="list"
> type="JobBriefSkillBean">
> 
> 
> <%
>
> if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_AL
> L_REQS))
> out.println("" +
> ServletUtilities.getResourceMessage(pageContext,
> "jobbrief.label.skill.required.allreq")+ "");
> else
> if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_SO
> METIMES))
> out.println("" +
> ServletUtilities.getResourceMessage(pageContext,
> "jobbrief.label.skill.required.somereq")+ "");
> else
> if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_OR
> _DESIRED))
> out.println("" +
> ServletUtilities.getResourceMessage(pageContext,
> "jobbrief.label.skill.required.req_or_des")+ "");
> else
> if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_DESIRED)
> )
> out.println("" +
> ServletUtilities.getResourceMessage(pageContext,
> "jobbrief.label.skill.required.desired")+ "");
>
> %>
> 
> 
>
>> -Original Message-
>> From: Ric Searle [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, April 19, 2002 8:58 AM
>> To: [EMAIL PROTECTED]
>> Subject:  within 
>>
>>
>> Hi,
>>
>> I'm sure someone has an easy answer to this.  I'm using the
>>  tag, and depending on the value of an
>> attribute of one
>> of the beans the iterate returns (i.e. the value of an
>> attribute of one
>> of the objects in the collection I'm iterating through), I want to do
>> something.  The code snippet...
>>
>> ---
>> 
>>  
>>  
>>  > value="true">
>>  [populated]
>>  
>>
>>  
>>  
>>  
>>  > filter="true"/>
>>  > property="products">
>>  
>>  > filter="true"/>
>>  
>>  
>> 
>> ---
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inside WEB-INF or ourside WEB-INF? Struts security.

2002-04-19 Thread Leonardo Maciel

Maybe because they are just samples.

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 6:21 PM
To: [EMAIL PROTECTED]
Subject: Inside WEB-INF or ourside WEB-INF? Struts security.


Most sample apps have the jsp pages and images outside the 
WEB-INF.  Why?  Isn't it more secure inside?



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: within

2002-04-19 Thread Bill Page

something like this?




<%
 
if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_AL
L_REQS))
out.println("" +
ServletUtilities.getResourceMessage(pageContext,
"jobbrief.label.skill.required.allreq")+ "");
else
if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_SO
METIMES))
out.println("" +
ServletUtilities.getResourceMessage(pageContext,
"jobbrief.label.skill.required.somereq")+ "");
else
if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_REQUIRED_OR
_DESIRED))
out.println("" +
ServletUtilities.getResourceMessage(pageContext,
"jobbrief.label.skill.required.req_or_des")+ "");
else
if(list.getRequiredInd().equalsIgnoreCase(dgApplication.SKILL_IS_DESIRED))
out.println("" +
ServletUtilities.getResourceMessage(pageContext,
"jobbrief.label.skill.required.desired")+ "");

%>



> -Original Message-
> From: Ric Searle [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 8:58 AM
> To: [EMAIL PROTECTED]
> Subject:  within 
> 
> 
> Hi,
> 
> I'm sure someone has an easy answer to this.  I'm using the 
>  tag, and depending on the value of an 
> attribute of one 
> of the beans the iterate returns (i.e. the value of an 
> attribute of one 
> of the objects in the collection I'm iterating through), I want to do 
> something.  The code snippet...
> 
> ---
> 
>   
>   
>value="true">
>   [populated]
>   
> 
>   
>   
>   
>filter="true"/>
>property="products">
>   
>filter="true"/>
>   
>   
> 
> ---

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




within

2002-04-19 Thread Ric Searle

Hi,

I'm sure someone has an easy answer to this.  I'm using the 
 tag, and depending on the value of an attribute of one 
of the beans the iterate returns (i.e. the value of an attribute of one 
of the objects in the collection I'm iterating through), I want to do 
something.  The code snippet...

---




[populated]












---

The code above returns:
javax.servlet.ServletException: No bean found under attribute key app
at request time.  Any ideas?

Regards,

   Ric Searle
   Web Application Developer
   --
   Dialogue Communications Ltd

   http://www.dialogue.co.uk
   +44 (0) 114 221 0307


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re(2): Caching in IE

2002-04-19 Thread Galbreath, Mark

Your end tag would throw an XMLException.

;-)

-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Re(2): Caching in IE



What is the point of using a mail client that threads messages when others 
are using clients that number their responses to a posting? It is hard 
enough to monitor a list that regularly generates 100+ messages a day, 
without having to sift through the message subjects looking for those 
replies that BECUASE THE SUBJECT WAS CHANGED no longer thread properly.


/\/\ark


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re(2): Caching in IE
>Date: 19 Apr 2002 11:49:00 +0100
>
>i can only agree with you more
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts with WAP+HTML projects

2002-04-19 Thread Todd G. Nist

Hello Abhishek,

You may want to take a look at the following:

http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html

Struts for transforming XML with XSL (stxx) by By Jeff Pennal, OpenRoad
Communications
http://www.openroad.ca/opencode/stxx/index.html

HTH.

Regards,
Todd G. Nist

-Original Message-
From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Struts with WAP+HTML projects


Hello All,

I am working on a project which is for a portal which serves to HTML and WAP
clients. This project is developed using a home grown MVC model + jsp + XSL
So one jsp serves many types of clients by looking up the header sent by the
device and applying the right XSL file .. thus creating WML or HTML output
depending upon what the client device type is. The application logic remains
the same no matter what the client device is.
We are having lot of problems with our home grown MVC framework and want to
use struts ... from all the initial examples it appears that struts is used
only for jsp pages serving HTML output.
How can I use struts in a multi channel (WAP, HTML, PDA) portal like ours? I
don't want to write a new jsp per device type. the jsp and action classes
should remain the same only the XSL changes per device type.
I would appreciate your help, also please share your experience about using
struts in a WML+HTML project.
regards,
Abhishek.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



begin 666 ATT7.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#,N,B\O
M14XB/@T*/$A434P^#0H\2$5!1#X-"CQ-151!($A45% M15%5258](D-O;G1E
M;G0M5'EP92(@0T].5$5.5#TB=&5X="]H=&UL.R!C:&%R'-L
M="YH=&UL(CYH='1P.B\O=W=W+FIA=F%W;W)L9"YC;VTO:F%V87=O2!L;V]K:6YG
M('5P('1H92!H96%D97(@2!T:&4\+T9/3E0^#0H-"CQ"4CX\1D].
M5"!325I%/3(^9&5V:6-E(&%N9"!A<'!L>6EN9R!T:&4@7!E(&ES+B!4:&4@87!P;&EC871I;VX@;&]G:6,@
M2!T:&4@6%-,(&-H86YG97,@
M<&5R(&1E=FEC92!T>7!E+CPO1D].5#X-"@T*/$)2/CQ&3TY4(%-)6D4],CY)
M('=O=6QD(&%P<')E8VEA=&4@>6]Umailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: Re(2): Caching in IE

2002-04-19 Thread Struts Developer


What is the point of using a mail client that threads messages when others 
are using clients that number their responses to a posting? It is hard 
enough to monitor a list that regularly generates 100+ messages a day, 
without having to sift through the message subjects looking for those 
replies that BECUASE THE SUBJECT WAS CHANGED no longer thread properly.


/\/\ark


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re(2): Caching in IE
>Date: 19 Apr 2002 11:49:00 +0100
>
>i can only agree with you more
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts with WAP+HTML projects

2002-04-19 Thread abhishek srivastava

Hello All,

Apologies for posting this again. If you had replied to my question could 
you please re-send your post to my email address directly 
([EMAIL PROTECTED]). Because of my mistake in seting up rules for my mail 
client all mails from this mailing list were getting deleted.

--
I am working on a project which is for a portal which serves to HTML and WAP
clients. This project is developed using a home grown MVC model + jsp + XSL
So one jsp serves many types of clients by looking up the header sent by the
device and applying the right XSL file .. thus creating WML or HTML output
depending upon what the client device type is. The application logic remains
the same no matter what the client device is.
We are having lot of problems with our home grown MVC framework and want to
use struts ... from all the initial examples it appears that struts is used
only for jsp pages serving HTML output.
How can I use struts in a multi channel (WAP, HTML, PDA) portal like ours? I
don't want to write a new jsp per device type. the jsp and action classes
should remain the same only the XSL changes per device type.
I would appreciate your help, also please share your experience about using
struts in a WML+HTML project.

regards,
Abhishek.

---


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Example App for Struts?

2002-04-19 Thread Galbreath, Mark

:-)  Me too.

(build.xml attached - it does just about everything, but you'll have to, of
course, customize it for your environment.)

Mark

-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: RE: Example App for Struts?


Oh, wait... that's what I said I was when they hired me. Oops. =)

I'll settle for an example build.xml file. =)

/\/\ark /\/.




build.xml
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Example App for Struts?

2002-04-19 Thread Struts Developer

True. What I really want is someone to hold my hand and lead me through the 
entire development process, pointing out along the way all the pitfalls and 
dangers. They should code all the sticky bits and know everything there is 
to know about my environment, software, legacy apps, and they should know 
the best places to look for answers on the 'net. They should have scads of 
experience with every technology since punch cards and PL/I, additionally 
they should be capable of installing and configuring all the needed hardware 
from edge servers to RAID arrays, from client workstation setup to network 
packet sniffers. In short, a guru jack-of-all-trades, master-of-all-trades.

Oh, wait... that's what I said I was when they hired me. Oops. =)

I'll settle for an example build.xml file. =)

/\/\ark /\/.


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Example App for Struts?
>Date: Thu, 18 Apr 2002 15:03:52 -0400
>
>It's not Ant that you want, but build.xml.
>
>Mark
>
>-Original Message-
>From: Chandra Gottipati [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 18, 2002 2:14 PM
>To: Struts Users Mailing List
>Subject: Re: Example App for Struts?
>
>
>Simon,
>
>I am trying to use ant to build my project for deploying on WebLogic 6.1.
>Could you send me your ant file. Do you have an ftp task in it?
>
>Thanks.
>
>Chandra.
>
>- Original Message -
>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, April 18, 2002 12:26 PM
>Subject: RE: Example App for Struts?
>
>
>I think that there are several available through links on the struts
>resource page. Checkout the struts articles at www.onjava.com as they have 
>a
>number of examples that are quite useful. I am writing just such an example
>program, but it's not finished yet (and will not be for a while) and is not
>yet ported to version 1.1.
>
>I have also converted the example application that comes with struts 1.0.2
>to build under ant if anyone is interested in that as an example of how to
>use ant with your struts project.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
> >-Original Message-
> >From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, April 18, 2002 11:59 AM
> >To: [EMAIL PROTECTED]
> >Subject: Example App for Struts?
> >
> >
> >Is there an example application for struts that is recommended as a
> >starting "template"?
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching in IE

2002-04-19 Thread Bill Page

Don't know if the other servlet containers support this but we use JRun and
it appears to have helped perhaps solved this problem with an entry in
web.xml:


 
/index.jsp

30





action
 
org.apache.struts.action.ActionServlet

nocache
true



> -Original Message-
> From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 5:36 AM
> To: Struts Users Mailing List
> Subject: RE: Caching in IE
> 
> 
> Well, what I am looking for is simple. I want my pages to 
> pass through the
> controller. But, when IE caches a page it brings up the 
> cached page and
> completely bypasses the controler(Action). I have enabled the no-cache
> mechanism in struts. But, it still seems to happen. The only 
> way I've been
> able to solve it is to change IE settings. That is not an 
> option when a site
> goes live. Telling the public they have to change their 
> browser settings
> won't do :-).
> 
> Brandon Goodin
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mark's Custom Button Tag

2002-04-19 Thread Galbreath, Mark

Here ya go! My Friday gift to the list.  Just modify were obvious (like
package name, class name, etc.) to suit your environment.

I hope this posts without getting too mangled by the mail server.

--
Usage:



--
TLD:


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

  1.0
  1.1
  maintenance
  maintenance.tld
  Marko Sharko's JSP Button Tag
  
Button
com.tessco.web.taglib.Button
JSP

label
true
true


width
true
  true


style
true
true


href
false
true


onClick
false
true

  


--
web.xml:


  maintenance.tld
  /WEB-INF/maintenance.tld


-
The code:

package com.tessco.partner.web.maintenance.taglib;

import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.ServletRequest;
import java.io.PrintWriter;
import java.io.IOException;

/**
 * The button is an html table with the following layout:
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * Button Text
 *  
 * 
 * 
 * 
 * 
 * 
 * 
 */

public class Button extends TagSupport {
 // This is required so there's no default.
 String label = "";
 String width = "";
 String href = "";
 String onClick = "";
 String anchor = "";
 String endAnchor = "";
 String style = "";

/**
 * The label (text) to appear on the button
 * @param label   The text to appear on the button.  This becomes the
hyperlink
 *
 */
public void setLabel(String label) {
 this.label = label;
}

/**
 * The width of the button
 * @param width   The width of the button text area in pixels.  This value
is
 * used to adjust the width of the image that occurrs below and above the
text.
 * Setting this two small will result in a malformed button image.
 */
public void setWidth(String width) {
 this.width = width;
}

/**
 * The style of the button
 * @param style   This attribute determines how the button will look.
 * The "style" is concated with other information to determine reference
 * stylesheet attributes and the location of the button images.
 * The following stylesheet attributes are used.
 * buttonXBG - the background color of the button
 * buttonXText - the style of the text on the button
 * The images for the 3d look are obtained from:
 * /images/buttonX
 *
 * where X is the name of the style
 */
public void setStyle(String style) {
 this.style = style;
}

/**
 * The href for the hyperlink
 * @param href   Optional value for the href attribute for the hyperlink.
This
 * defaults to #top for Navigator compatability.
 */
public void setHref(String href) {
 this.href = " href='" + href + "' ";
 this.anchor = "");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
 pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println(this.anchor + this.href + this.onClick);   
  pageContext.getOut().println(""
+ this.label + "");
  pageContext.getOut().println(this.endAnchor);
  pageContext.getOut().println ("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  pageContext.getOut().println("");
  // Continue evaluating the page.
  return EVAL_PAGE;
  } catch(IOException ioe) {
throw new JspException(ioe.getMessage());
  }
 }
}

--
The CSS:

.buttonAccBG {BACKGROUND-COLOR: #26367A;}
.buttonAccText {FONT-FAMILY: Arial; FONT-SIZE: 9pt; FONT-WEIGHT: bold;
TEXT-DECORATION: none; BACKGROUND-COLOR: #26367A; COLOR: #FF; }
.buttonDecBG {BACKGROUND-COLOR: #F8D253;}
.buttonDecText {FONT-FAMILY: Arial; FONT-SIZE: 9pt; FONT-WEIGHT: bold;
TEXT-DECORATION: none; BACKGROUND-COLOR: #F8D253; COLOR: #00; }

Cheers!
Mark

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can I get an image on the tag button?

2002-04-19 Thread Stephen . Thompson

I would be interested in this also,

Thanks.

Stephen.


-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: 19 April 2002 10:40
To: Struts Users Mailing List
Subject: Re: How can I get an image on the  tag button?


Thanks mark, I am interested, please post the code.

Cheers

Antony

On Fri, 19 Apr 2002 05:33:42 -0400
"Galbreath, Mark" <[EMAIL PROTECTED]> wrote:

> I wrote my own tag to do this.  If anyone's interested, I'll post the code
-
> it's quite simple.
> 
> Mark

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re(2): Caching in IE

2002-04-19 Thread waldemar . cleenewerck

i can only agree with you more

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




combo box selection

2002-04-19 Thread francois . geraerts

Hi ,

I've got this error when i want transmit the selection of a combo box:

L'erreur est survenue sur la requête 'POST' à l'URL
http://localhost/SKDBS/ProjSKDBS/resultat.jsp.
19-avr.-02 11:44:26

Information de l'exception
com.sssw.shr.http.AgoServletException
com.sssw.shr.http.AgoServletException
Erreur lors de l'envoi de la requête vers /resultat.jsp
com.sssw.shr.http.AgoServletException
javax.servlet.ServletException
No getter method for property answer of bean DemandForm

Trace de la pile
javax.servlet.ServletException: No getter method for property  answer of bean
DemandForm
 at com.sssw.srv.jsp.AgoJspPageContext.
 handlePageException(AgoJspPageContext.java:725)
 at com.sssw.srv.jsp.AgoJspPageContext.
 handlePageException(AgoJspPageContext.java:667)
 at com.sssw.gen.jsp.resultat_jsp_585875049.
 _jspService(resultat_jsp_585875049.java:237)
 at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92)
 at com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.
 java:936)
 at com.sssw.srv.busobj.AgoWarServletRequestDispatcher.
 dispatch(AgoWarServletRequestDispatcher.java:50)
 at com.sssw.srv.busobj.AgoWarRequestDispatcher.
 forward(AgoWarRequestDispatcher.java:92)
 at org.apache.struts.action.ActionServlet.
 processActionForward(ActionServlet.java:1758)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.
 java:936)
 at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:712)
 at com.sssw.srv.resources.AgWarURLResource.perform(AgWarURLResource.
 java:114)
 at com.sssw.srv.http.httpd.perform(httpd.java:4568)
 at com.sssw.srv.http.Client.processRequest(Client.java)
 at com.sssw.srv.http.Client.loop(Client.java)
 at com.sssw.srv.http.Client.runConnection(Client.java)
 at com.sssw.srv.http.Client.run(Client.java)
 at java.lang.Thread.run(Unknown Source)


In the bean DemandForm, I' ve got the get and set method defined. So io don't
understand:

public final class DemandForm extends ActionForm
{
  public String answer="";

  public String setAnswer(String text)
 {
  return this.answer = text;
 }

 //public Category getCatSelected()
 public String getAnswer()
 {
  return this.answer;
 }


}

and in the jsp:


  
  
 

It 's not the first time I've got this tupe of error.
Perhaps it's a logical error with the uses of struts.

Any help with this is greatly appreciated.

Thanks.

François Geraerts

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can I get an image on the tag button?

2002-04-19 Thread Antony Stace

Thanks mark, I am interested, please post the code.

Cheers

Antony

On Fri, 19 Apr 2002 05:33:42 -0400
"Galbreath, Mark" <[EMAIL PROTECTED]> wrote:

> I wrote my own tag to do this.  If anyone's interested, I'll post the code -
> it's quite simple.
> 
> Mark

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching in IE

2002-04-19 Thread Dariusz Wojtas

Don't know if it will help with newest IE, but it worked for me some time ago,
when I experienced similar problem.

response.setHeader("Cache-Control","no-store, no-cache, 
must-revalidate, post-check=0, pre-check=0"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy 
server

The first line sends extended header, specific to IE.
I found that some time ago on some PHP group.

 Dariusz Wojtas

At 03:36 2002-04-19 -0600, you wrote:
>Well, what I am looking for is simple. I want my pages to pass through the
>controller. But, when IE caches a page it brings up the cached page and
>completely bypasses the controler(Action). I have enabled the no-cache
>mechanism in struts. But, it still seems to happen. The only way I've been
>able to solve it is to change IE settings. That is not an option when a site
>goes live. Telling the public they have to change their browser settings
>won't do :-).
>
>Brandon Goodin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching in IE

2002-04-19 Thread Phase Web and Multimedia

Well, what I am looking for is simple. I want my pages to pass through the
controller. But, when IE caches a page it brings up the cached page and
completely bypasses the controler(Action). I have enabled the no-cache
mechanism in struts. But, it still seems to happen. The only way I've been
able to solve it is to change IE settings. That is not an option when a site
goes live. Telling the public they have to change their browser settings
won't do :-).

Brandon Goodin

-Original Message-
From: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:51 PM
To: Struts Users Mailing List
Subject: RE: Caching in IE


we faced some problems with IE caching..
let me know what u r looking for...

-Original Message-
From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:26 PM
To: Struts User
Subject: Caching in IE


Hey all my fine coded compadres,

I was just wondering if anyone has dealt with browsers caching pages and
completely bypassing the controller and what solutions you have come up with
to prevent this. I'm wide open.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can I get an image on the tag button?

2002-04-19 Thread Galbreath, Mark

I wrote my own tag to do this.  If anyone's interested, I'll post the code -
it's quite simple.

Mark

-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 4:12 AM
To: [EMAIL PROTECTED]
Subject: How can I get an image on the  tag button?


Hi

Can someone please tell me how I can use a graphic button with the

tag, currently I have something like





but want to have a button with a graphic on if for the select file button.

Cheers

Antony





_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inside WEB-INF or outside WEB-INF? Struts security.

2002-04-19 Thread Galbreath, Mark

All web containers MUST support files inside WEB-INF by specification.  As
for JSP files, some containers, like Tomcat, considers them controller
component Java classes (servlets) and places them in the WEB-INF/class
directory by default.  Others, like JRun, consider JSPs view components
(they are, if used "correctly") and place them in a "jsp" directory outside
WEB-INF.

The point is, JSPs should never have executable Java scriplets in them.
Programmatic functionality should consist solely of tags, which hide the
implementation inside WEB-INF.

Mark

-Original Message-
From: Victor Hadianto [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 3:18 AM

On Fri, 19 Apr 2002 08:20, you wrote:
> Most sample apps have the jsp pages and images outside the
> WEB-INF.  Why?  Isn't it more secure inside?

Not all web container supports files inside the WEB-INF. Tomcat does.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What does anyone know about this book.

2002-04-19 Thread Peter Pilgrim


Never heard of it.

I saw another book yesterday by the very same Mr Goodwill about JSP and Tag Libraries.
Part Tag Library implementation and part reference of Jakarta Tags and a bit on JSTL.
Instead I bought "Java Web Service" David A Chappell, Tyler Jewell Oreilly.
I am trying to cut down on the books I buy. So I am always making tough decision
about any books especially in this touch economic environment,
but I felt this new one was worth the £28.50.
--
Peter Pilgrim   ++44 (0)207-545-9923

 Swamped under electronic mails


 Message History 



From:  "Phase Web and Multimedia" <[EMAIL PROTECTED]> on 18/04/2002 11:40 CST

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

To:"Struts User" <[EMAIL PROTECTED]>
cc:
Subject:What does anyone know about this book.


Mastering Jakarta Struts
James Goodwill

just wondering.

Brandon Goodin

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Problem setting Charset

2002-04-19 Thread Punetha, Alkesh

Hi!

If your are using jsp try jsp tag for the charset. It works

<%@page language="Java" contentType="text/html; charset=UTF-8"%>

-Ursprüngliche Nachricht-
Von: Tom Goeames [mailto:[EMAIL PROTECTED]]
Gesendet: Friday, April 19, 2002 12:20 PM
An: [EMAIL PROTECTED]
Betreff: Problem setting Charset


Hi!

I'm having problems setting the correct charset of my pages. 
I'm using struts 1.0.2 on BEA weblogic 6.1 sp2

In the web.xml i have set the 'content' init parameter of the actionservlet
to 'text/html; charset=UTF-8;'. All the pages are generated correctly. But
the problem is that the browser doesn't understand he has to show the pages
in UTF-8 encoding. So all the special utf-8 chars are showed as 2 ascii
chars.

I looked for the "content-type" header of the page and there is only
"text/html". without any thing about a charset.

Has anyone had some (bad) experiences before with this ? 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Urgent Websphere and location of Struts-Config.xml file

2002-04-19 Thread Moritz Petersen

you can put the server into servlet 2.2 compliance mode in the adminconsole.

-mo.

> -Original Message-
> From: subhendukumar mohanty [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 18, 2002 4:04 PM
> To: Steven Banks; [EMAIL PROTECTED]
> Subject: RE: Urgent Websphere and location of Struts-Config.xml file
> Importance: High
>
>
> Windows 2000
>
> -Original Message-
> From: Steven Banks [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 1:01 PM
> To: subhendukumar mohanty; [EMAIL PROTECTED]
> Subject: RE: Urgent Websphere and location of Struts-Config.xml file
>
>
> On os/390 the value is found in was.conf for the server.   I do
> not believe this file exists on the NT version.  Which platform
> are you running on?  Mainframe, nt, or Unix?
>
>
>
> Steven Banks
> 368-0566
>
> >>> "subhendukumar mohanty" <[EMAIL PROTECTED]> 04/17/02 11:34AM >>>
> Where to set the properties for "appserver.compliance.mode" .
> So that i can check both of my server to find out the differences.
> Thanks,
> Subhendu
>
> -Original Message-
> From: Steven Banks [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 10:40 AM
> To: subhendukumar mohanty; [EMAIL PROTECTED]
> Subject: Re: Urgent Websphere and location of Struts-Config.xml file
>
>
> I had some problems with the location of the xml files on OS/390.
>  It was caused because one server had Servlet 2.2 full
> compatibilty turned off.
>
>
> When  appserver.compliance.mode=false  "the default value"
>
>  InputStream input = getServletContext().getResourceAsStream(config);
>
> found the xml file in the following directory:
>u/mywebs/dev/train/WEB-INF/classes/WEB-INF/struts-config.xml
>
>
> When  appserver.compliance.mode=true,   the xml file had to be moved to
>  /u/mywebs/dev/train/web/WEB-INF/struts-config.xml
>
>
> Steven Banks
> 368-0566
>
> >>> "subhendukumar mohanty" <[EMAIL PROTECTED]> 04/16/02 10:49AM >>>
> Hi
>
> I am using struts with websphere 3.5.5. In one of the application
> server i have kept the struts-config.xml in
> default_host\webapplicationame\servlets . It is working fine. The
> same setup is not working in other machine . In that server the
> apploication is looking for the strits-config.xml file
> default_host\webapplicationame\web\web-inf folder.
>
> I could not find out what is the difference. Both the server has
> same setup and having same version of struts. The action servlet
> in the both the server has same init parameter for struts-config.xml.
>
> If anybody has any idea on this let me know.
>
> Thanks,
> Subhendu
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem setting Charset

2002-04-19 Thread Tom Goeames

Hi!

I'm having problems setting the correct charset of my pages. 
I'm using struts 1.0.2 on BEA weblogic 6.1 sp2

In the web.xml i have set the 'content' init parameter of the actionservlet to 
'text/html; charset=UTF-8;'. All the pages are generated correctly. But the problem is 
that the browser doesn't understand he has to show the pages in UTF-8 encoding. So all 
the special utf-8 chars are showed as 2 ascii chars.

I looked for the "content-type" header of the page and there is only "text/html". 
without any thing about a charset.

Has anyone had some (bad) experiences before with this ? 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How can I get an image on the tag button?

2002-04-19 Thread Antony Stace

Hi

Can someone please tell me how I can use a graphic button with the 
tag, currently I have something like





but want to have a button with a graphic on if for the select file button.

Cheers

Antony




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: double messages from struts-user?

2002-04-19 Thread Ida Dørum

I have the same problem, but it doesn't happen with all postings.

i.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 18. april 2002 18:02
To: [EMAIL PROTECTED]
Subject: double messages from struts-user?


I'm getting two email messages for every posting to this mailing list.
Does
anyone else have this problem, or is it just me?

 

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)

 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Inside WEB-INF or ourside WEB-INF? Struts security.

2002-04-19 Thread Victor Hadianto

On Fri, 19 Apr 2002 08:20, you wrote:
> Most sample apps have the jsp pages and images outside the
> WEB-INF.  Why?  Isn't it more secure inside?

Not all web container supports files inside the WEB-INF. Tomcat does.

-- 
Victor Hadianto
---
Blore's Razor: Given a choice between two theories, take the one which is 
funnier.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: