RE: Using SSL Extension and Workflow Extension together

2004-03-23 Thread shirishchandra.sakhare
This should be doable.
I will add it to the next release of Struts Workflow extension on Source forge, as 
soon as it is available for download.

Till then use the hastily crafted code from me.
I have not tested it ,so please test it and let me know.

Add this to the source code you have for workflow extension and  recompile it.
Then also you need to change your config to make use of this new request processor.


But as both these extensions work on different parts of the processing life cycle, 
they should be easy to integrate.

Let me know if you face any problems.


***


/*
 * Created on Mar 23, 2004
 *
 * 
 */
package com.livinglogic.struts.workflow;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.SecureTilesRequestProcessor;
import org.apache.struts.config.ForwardConfig;

/**
 * pstrongSecureTilesWorkflowRequestProcessor/strong extends the request 
processor from
 * Struts SSL extension.This will allow using the Workflow extension along with the 
SSL extension
 *  Tiles.
 *
 * @author Shirish Sakhare
 */
public class SecureTilesWorkflowRequestProcessor
extends SecureTilesRequestProcessor implements 
WorkflowRequestProcessorLogicAdapter{

/**
 * The WorkflowRequestProcessingLogic instance we are using 
 */
WorkflowRequestProcessorLogic logic;

public void processForwardConfig(HttpServletRequest request, 
HttpServletResponse response, ForwardConfig forward)
throws IOException, ServletException
{
super.processForwardConfig(request, response, forward);
}


public HttpServletRequest processMultipart(HttpServletRequest request)
{
return super.processMultipart(request);
}

public String processPath(HttpServletRequest request, HttpServletResponse 
response)
throws IOException
{
return super.processPath(request, response);
}

public void processLocale(HttpServletRequest request, HttpServletResponse 
response)
{
super.processLocale(request, response);
}

public void processContent(HttpServletRequest request, HttpServletResponse 
response)
{
super.processContent(request, response);
}

public void processNoCache(HttpServletRequest request, HttpServletResponse 
response)
{
super.processNoCache(request, response);
}

public boolean processPreprocess(HttpServletRequest 
request,HttpServletResponse response)
{
return super.processPreprocess(request, response);
}

public ActionMapping processMapping(HttpServletRequest request, 
HttpServletResponse response, String path)
throws IOException
{
return super.processMapping(request, response, path);
}

public boolean processRoles(HttpServletRequest request, HttpServletResponse 
response,
ActionMapping mapping) 
throws IOException, ServletException
{
return super.processRoles(request, response, mapping);
}

public ActionForm processActionForm(HttpServletRequest request, 
HttpServletResponse response, ActionMapping mapping)
{
return super.processActionForm(request, response, mapping);
}

public void processPopulate(HttpServletRequest request, HttpServletResponse 
response,
ActionForm form, 
ActionMapping mapping) throws ServletException
{
super.processPopulate(request, response, form, mapping);
}

public boolean processValidate(HttpServletRequest request, HttpServletResponse 
response,
   ActionForm form, 
ActionMapping mapping) throws IOException, ServletException
{
return super.processValidate(request, response, form, mapping);
}

public boolean processForward(HttpServletRequest request, HttpServletResponse 
response, ActionMapping mapping)
throws IOException, ServletException
{
return super.processForward(request, response, mapping);
}

public boolean processInclude(HttpServletRequest request, HttpServletResponse 
response, ActionMapping mapping)
throws IOException, ServletException
{
return super.processInclude(request, response, mapping);
}

public Action 

are you sure?

2004-03-23 Thread [EMAIL PROTECTED]
Hi list, 

Still a struts newbie, I try to write an are you sure javascript
confirmation box for my submit button. 

The question is: how can I prevent the form from being submitted 
when the user clicks no? 

In the Jsp, I put the following code in the head:

SCRIPT LANGUAGE=javascript
   function areyousure(){
  var agree = false;
  agree = confirm(are you sure?);
  if(agree){
 ... some code which is not important
  }
  return agree;
   }
/SCRIPT


And the form tag looks like this:

html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm 
  onsubmit=areyousure() 


Whatever the user clicks, yes or no, the form 
gets submitted. I want to stop submitting the 
form when the user click no.

thanks, Rinke


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



RE: [OT] Design Question

2004-03-23 Thread Marco Mistroni
Hi,
In my previous company I had exactly what you are talking about,
Access  and fields are restricted by country (and we had also different
Names for fields depending on the country - not internationalization,
just
Different name).

Solution adopted was to have only ONE database in which you store
permissions by country..
When your struts app has to display the data in the page, we look up
Database to see which fields you can display 

Hope this helps
Regards
Marco

PS this of course involves writing a gui tool that writes in the
Database the permissions and modifies it. If you are using Hibernate 
Than that will save you a lot of time (you can reuse the framework
For both the GUI tool and the struts app)
Good luck!

-Original Message-
From: Claudio Sanchez [mailto:[EMAIL PROTECTED] 
Sent: 19 March 2004 00:52
To: [EMAIL PROTECTED]
Subject: [OT] Design Question

Hi all,

This is off-topic, but i hope that somebody helps me.

I have an application that use struts, spring and hibernate.
The security is based on roles using CMS (JdbcRealm over Tomcat 4.1.29)

The goal of this application is to manage contracts. Authorized users
creates contracts with supplier's data, start date, end date, etc.
Then the application send alarm e-mails to users, for example when a
contrat
expire, etc.
For now everithing works fine. But I have a requirements to people the
other
countrys use the application. Obviously people of a country can't manage
or
view the information the other countrys (contracts, users, departments,
currencies, etc).

The easiest implementation is to have an instance of the application and
database for each country. But I dont like this. I'd like to have only
one
instance to the application.

Another idea is separate only the database for country. For example
ArgentineanDB and MexicanDB. So when a user access to the application,
he(o
she) enter his(or her) country and the application use the appropriate
database.
But i found a problem with this. ¿How to manage security? because now i
have
the user and role tables in ArgentineanDB and MexicanDB. ¿Is possible
change
dynamically (depending of the user's country) the user and role table
use
for the CMS? I think that is not possible.
¿Is there a way to resolve this requirements without change the actual
user-role schema?

I'd like to hear another options

Thanks in advance,
Claudio Sanchez (apologize for my english)



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


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



RE: are you sure?

2004-03-23 Thread Janarthan Sathiamurthy
Try with this -
html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm 
  onsubmit=return areyousure() 

Should work

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:10 PM
To: [EMAIL PROTECTED]
Subject: are you sure?


Hi list, 

Still a struts newbie, I try to write an are you sure javascript
confirmation box for my submit button. 

The question is: how can I prevent the form from being submitted 
when the user clicks no? 

In the Jsp, I put the following code in the head:

SCRIPT LANGUAGE=javascript
   function areyousure(){
  var agree = false;
  agree = confirm(are you sure?);
  if(agree){
 ... some code which is not important
  }
  return agree;
   }
/SCRIPT


And the form tag looks like this:

html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm 
  onsubmit=areyousure() 


Whatever the user clicks, yes or no, the form 
gets submitted. I want to stop submitting the 
form when the user click no.

thanks, Rinke


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


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



Re: are you sure?

2004-03-23 Thread brati . sankarghosh

Hi rinkie,

You can use a button instead. call the
_javascript_ method on the onclick event of the button. donot use submit
use a button.

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





[EMAIL PROTECTED]
[EMAIL PROTECTED] 
03/23/2004 03:10 PM




Please respond to
Struts Users Mailing List [EMAIL PROTECTED]





To
[EMAIL PROTECTED]


cc



Subject
are you sure?








Hi list, 

Still a struts newbie, I try to write an are you sure _javascript_
confirmation box for my submit button. 

The question is: how can I prevent the form from being submitted 
when the user clicks no? 

In the Jsp, I put the following code in the head:

SCRIPT LANGUAGE=_javascript_
  function areyousure(){
   var agree = false;
   agree = confirm(are you sure?);
   if(agree){
 ... some code which is not important
   }
   return agree;
  }
/SCRIPT


And the form tag looks like this:

html:form action="">
   name=dateForm
   type=nl.rinke.DateForm 



Whatever the user clicks, yes or no, the form 
gets submitted. I want to stop submitting the 
form when the user click no.

thanks, Rinke


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


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

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

RE: are you sure?

2004-03-23 Thread Lokanath
hi 

u can try this

html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm 
  onsubmit=return confirm('areyousure') 

this is working 4 me

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 1:40 AM
To: [EMAIL PROTECTED]
Subject: are you sure?


Hi list, 

Still a struts newbie, I try to write an are you sure javascript
confirmation box for my submit button. 

The question is: how can I prevent the form from being submitted 
when the user clicks no? 

In the Jsp, I put the following code in the head:

SCRIPT LANGUAGE=javascript
   function areyousure(){
  var agree = false;
  agree = confirm(are you sure?);
  if(agree){
 ... some code which is not important
  }
  return agree;
   }
/SCRIPT


And the form tag looks like this:

html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm 
  onsubmit=areyousure() 


Whatever the user clicks, yes or no, the form 
gets submitted. I want to stop submitting the 
form when the user click no.

thanks, Rinke


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



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



RE: are you sure?

2004-03-23 Thread Colm Garvey
Simplest thing to do here is make the method handle the submit for you.
Replace the submit button with :

html:button property=dummySubmit
onclick=areyousure();Submit/html:button

Then change the javascript to use

...if (agree){formname.submit();}

Good Luck,

Colm

-Original Message-
From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 09:44
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: are you sure?


Try with this -
html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm
  onsubmit=return areyousure() 

Should work

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:10 PM
To: [EMAIL PROTECTED]
Subject: are you sure?


Hi list,

Still a struts newbie, I try to write an are you sure javascript
confirmation box for my submit button.

The question is: how can I prevent the form from being submitted
when the user clicks no?

In the Jsp, I put the following code in the head:

SCRIPT LANGUAGE=javascript
   function areyousure(){
  var agree = false;
  agree = confirm(are you sure?);
  if(agree){
 ... some code which is not important
  }
  return agree;
   }
/SCRIPT


And the form tag looks like this:

html:form action=/adddate
  name=dateForm
  type=nl.rinke.DateForm
  onsubmit=areyousure() 


Whatever the user clicks, yes or no, the form
gets submitted. I want to stop submitting the
form when the user click no.

thanks, Rinke


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


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


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



Re[2]: are you sure?

2004-03-23 Thread Dmitrii CRETU
we tried to use this (form.onsumbit=return f()) but encountered a problem:
if JavaScript is disabled in browser the submiting goes on without
confirmation dialogue and other stuff done by JS (wich in our case was
more important).

We solved this by setting input.type=button instead of submit and
submitting the form from JacaScript. But this caused another problem
(though less important): now user can not submit form pressing Enter
being at text input, he must click the button.


Dima.


Tuesday, March 23, 2004, 11:43:54 AM, you wrote:

JS Try with this -
JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm 
JS   onsubmit=return areyousure() 

JS Should work

JS -Original Message-
JS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
JS Sent: Tuesday, March 23, 2004 3:10 PM
JS To: [EMAIL PROTECTED]
JS Subject: are you sure?


JS Hi list, 

JS Still a struts newbie, I try to write an are you sure javascript
JS confirmation box for my submit button. 

JS The question is: how can I prevent the form from being submitted 
JS when the user clicks no? 

JS In the Jsp, I put the following code in the head:

JS SCRIPT LANGUAGE=javascript
JSfunction areyousure(){
JS   var agree = false;
JS   agree = confirm(are you sure?);
JS   if(agree){
JS  ... some code which is not important
JS   }
JS   return agree;
JS}
JS /SCRIPT


JS And the form tag looks like this:

JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm 
JS   onsubmit=areyousure() 


JS Whatever the user clicks, yes or no, the form 
JS gets submitted. I want to stop submitting the 
JS form when the user click no.

JS thanks, Rinke


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


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



-- 
Best regards,
 Dmitriimailto:[EMAIL PROTECTED]



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



html:select / html:options

2004-03-23 Thread Christian Schlaefcke
Hi Folks!

for several days I mess around with html:select and html:options.

I want to access a collection with names or numbers (just
java.lang.String). This collection is available in the session. For
testing I generated my own collection in the jsp

%
 java.util.Collection list = new java.util.ArrayList();
 teilnehmerListe.add(name1);
 teilnehmerListe.add(name2);
 teilnehmerListe.add(name3);
 session.setAttribute(myList, list);
%
 html:form action=/myAction.do
  html:select property=selectedItem
   html:options collection=myList /
  /html:select
  html:submitOK/html:submit
 /html:form

When I run this I get an IllegalArgumentException: no name specified

I found out that both select and options have an argument name so I
added some dummies test1 and test2 just to have it and get (as
expected) another error: no bean found by that name test1.

What am I doing wrong? Can someone point me to the right direction?

Thanx and Regards,

Chris


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



RE: html:select / html:options

2004-03-23 Thread Lokanath
hi ,

i think u have to get the bean from session to some Collection
useing session.getAttribute(mylist) then assign it to some collection.then
use that collection for populating the select

   lokee

-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:45 AM
To: Struts Users Mailing List
Subject: html:select / html:options


Hi Folks!

for several days I mess around with html:select and html:options.

I want to access a collection with names or numbers (just
java.lang.String). This collection is available in the session. For
testing I generated my own collection in the jsp

%
 java.util.Collection list = new java.util.ArrayList();
 teilnehmerListe.add(name1);
 teilnehmerListe.add(name2);
 teilnehmerListe.add(name3);
 session.setAttribute(myList, list);
%
 html:form action=/myAction.do
  html:select property=selectedItem
   html:options collection=myList /
  /html:select
  html:submitOK/html:submit
 /html:form

When I run this I get an IllegalArgumentException: no name specified

I found out that both select and options have an argument name so I
added some dummies test1 and test2 just to have it and get (as
expected) another error: no bean found by that name test1.

What am I doing wrong? Can someone point me to the right direction?

Thanx and Regards,

Chris


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



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



AW: Re[2]: are you sure?

2004-03-23 Thread Andreas Solarik
Wow, I'm confused. If javascript was disabled, the onSubmit trigger was
ignored, but the button onClick trigger was honored? I'll have to try that
out.

Andreas

-Ursprungliche Nachricht-
Von: Dmitrii CRETU [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 23. Marz 2004 11:09
An: Struts Users Mailing List
Betreff: Re[2]: are you sure?


we tried to use this (form.onsumbit=return f()) but encountered a problem:
if JavaScript is disabled in browser the submiting goes on without
confirmation dialogue and other stuff done by JS (wich in our case was
more important).

We solved this by setting input.type=button instead of submit and
submitting the form from JacaScript. But this caused another problem
(though less important): now user can not submit form pressing Enter
being at text input, he must click the button.


Dima.


Tuesday, March 23, 2004, 11:43:54 AM, you wrote:

JS Try with this -
JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=return areyousure() 

JS Should work

JS -Original Message-
JS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
JS Sent: Tuesday, March 23, 2004 3:10 PM
JS To: [EMAIL PROTECTED]
JS Subject: are you sure?


JS Hi list,

JS Still a struts newbie, I try to write an are you sure javascript
JS confirmation box for my submit button.

JS The question is: how can I prevent the form from being submitted
JS when the user clicks no?

JS In the Jsp, I put the following code in the head:

JS SCRIPT LANGUAGE=javascript
JSfunction areyousure(){
JS   var agree = false;
JS   agree = confirm(are you sure?);
JS   if(agree){
JS  ... some code which is not important
JS   }
JS   return agree;
JS}
JS /SCRIPT


JS And the form tag looks like this:

JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=areyousure() 


JS Whatever the user clicks, yes or no, the form
JS gets submitted. I want to stop submitting the
JS form when the user click no.

JS thanks, Rinke


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


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



--
Best regards,
 Dmitriimailto:[EMAIL PROTECTED]



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


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



Documentation Struts-config

2004-03-23 Thread Franck DARRAS
Hi every body

Do you know a documentation about all fields of the struts-config DTD 
(Struts version 1.1) file (with example if possible).

For example :
Action-mapping
   [...]
   prefixCDATA #IMPLIED
   suffixCDATA #IMPLIED
   unknown   boolean #IMPLIED
   [...]
I accept all links (book, documentation on-line..., web link).

I'm already using the jakarta user guide 
(http://jakarta.apache.org/struts/userGuide/)

Thanks for your response
--
*Franck DARRAS
*


RE: html:select / html:options

2004-03-23 Thread Sanoj, Antony (IE10)
Hi,

I believe you need to read the following link 
http://www.jajakarta.org/struts/struts1.1/documentation/ja/target/userGuide/
printer/struts-html.html#options

This should give you an idea of what the attributes of html:options are.
Collection should be a set of java beans. Rules are clearly provided in the
above link.

I can give you an example using html:optionsCollection


 html:form action=Roles method=post
  table border=0 align=center width=100%
  tr
  td
bean:message key=app.roleselection/
  /td
  /tr
  tr
td align=center 
 html:select style=width:180px size=8 property=strRoleId
html:optionsCollection property=htUserRoles
label=strDisplayName value=strId/
 /html:select
/td
   /tr
  /table
html:submit/
/html:form

Regards, 
Sanoj Antony 


-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 4:15 PM
To: Struts Users Mailing List
Subject: html:select / html:options


Hi Folks!

for several days I mess around with html:select and html:options.

I want to access a collection with names or numbers (just
java.lang.String). This collection is available in the session. For
testing I generated my own collection in the jsp

%
 java.util.Collection list = new java.util.ArrayList();
 teilnehmerListe.add(name1);
 teilnehmerListe.add(name2);
 teilnehmerListe.add(name3);
 session.setAttribute(myList, list);
%
 html:form action=/myAction.do
  html:select property=selectedItem
   html:options collection=myList /
  /html:select
  html:submitOK/html:submit
 /html:form

When I run this I get an IllegalArgumentException: no name specified

I found out that both select and options have an argument name so I
added some dummies test1 and test2 just to have it and get (as
expected) another error: no bean found by that name test1.

What am I doing wrong? Can someone point me to the right direction?

Thanx and Regards,

Chris


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

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



referrer url

2004-03-23 Thread MOHAN RADHAKRISHNAN
Hi
 I am trying to get the referrer URL using JSTL or JSP. Is there a way ?


I have a link in an email that hits an action. So in order to identify
the action was hit from the email link I appended a parameter to the URL.
Now I want to do something if the action was hit from the email link.


Any thoughts.




Mohan


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



Re: are you sure?

2004-03-23 Thread Martin Gainty
+1
-Martin
- Original Message - 
From: Colm Garvey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 5:00 AM
Subject: RE: are you sure?


 Simplest thing to do here is make the method handle the submit for you.
 Replace the submit button with :
 
 html:button property=dummySubmit
 onclick=areyousure();Submit/html:button
 
 Then change the javascript to use
 
 ...if (agree){formname.submit();}
 
 Good Luck,
 
 Colm
 
 -Original Message-
 From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
 Sent: 23 March 2004 09:44
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: are you sure?
 
 
 Try with this -
 html:form action=/adddate
   name=dateForm
   type=nl.rinke.DateForm
   onsubmit=return areyousure() 
 
 Should work
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 3:10 PM
 To: [EMAIL PROTECTED]
 Subject: are you sure?
 
 
 Hi list,
 
 Still a struts newbie, I try to write an are you sure javascript
 confirmation box for my submit button.
 
 The question is: how can I prevent the form from being submitted
 when the user clicks no?
 
 In the Jsp, I put the following code in the head:
 
 SCRIPT LANGUAGE=javascript
function areyousure(){
   var agree = false;
   agree = confirm(are you sure?);
   if(agree){
  ... some code which is not important
   }
   return agree;
}
 /SCRIPT
 
 
 And the form tag looks like this:
 
 html:form action=/adddate
   name=dateForm
   type=nl.rinke.DateForm
   onsubmit=areyousure() 
 
 
 Whatever the user clicks, yes or no, the form
 gets submitted. I want to stop submitting the
 form when the user click no.
 
 thanks, Rinke
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: AW: Re[2]: are you sure?

2004-03-23 Thread Dmitrii CRETU
AS Wow, I'm confused. If javascript was disabled, the onSubmit trigger was
AS ignored, but the button onClick trigger was honored? I'll have to try that
AS out.

If JavaScript is disabled neither of solutions work properly. But with
button you avoid uncontrolled form submition, simply nothing happens.

In submit-scenario the submition is taken place without JavaScript
preprocessing (onSubmit event) wich could not be accepted sometimes,
e.g. when you encrypt some fields.

Dima.



AS Andreas

AS -Ursprungliche Nachricht-
AS Von: Dmitrii CRETU [mailto:[EMAIL PROTECTED]
AS Gesendet: Dienstag, 23. Marz 2004 11:09
AS An: Struts Users Mailing List
AS Betreff: Re[2]: are you sure?


AS we tried to use this (form.onsumbit=return f()) but encountered a problem:
AS if JavaScript is disabled in browser the submiting goes on without
AS confirmation dialogue and other stuff done by JS (wich in our case was
AS more important).

AS We solved this by setting input.type=button instead of submit and
AS submitting the form from JacaScript. But this caused another problem
AS (though less important): now user can not submit form pressing Enter
AS being at text input, he must click the button.


AS Dima.


AS Tuesday, March 23, 2004, 11:43:54 AM, you wrote:

JS Try with this -
JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=return areyousure() 

JS Should work

JS -Original Message-
JS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
JS Sent: Tuesday, March 23, 2004 3:10 PM
JS To: [EMAIL PROTECTED]
JS Subject: are you sure?


JS Hi list,

JS Still a struts newbie, I try to write an are you sure javascript
JS confirmation box for my submit button.

JS The question is: how can I prevent the form from being submitted
JS when the user clicks no?

JS In the Jsp, I put the following code in the head:

JS SCRIPT LANGUAGE=javascript
JSfunction areyousure(){
JS   var agree = false;
JS   agree = confirm(are you sure?);
JS   if(agree){
JS  ... some code which is not important
JS   }
JS   return agree;
JS}
JS /SCRIPT


JS And the form tag looks like this:

JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=areyousure() 


JS Whatever the user clicks, yes or no, the form
JS gets submitted. I want to stop submitting the
JS form when the user click no.

JS thanks, Rinke


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


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



AS --
AS Best regards,
AS  Dmitriimailto:[EMAIL PROTECTED]



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


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



-- 
Best regards,
 Dmitriimailto:[EMAIL PROTECTED]



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



RE: How can I refresh my jsp

2004-03-23 Thread Pady Srinivasan

In sample1.jsp:

Instead of pointing to action1.do, point to a javascript function which will
do a win.open(action1.do?form param values). Then do a refresh on
current page.


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Mu Mike [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 9:38 PM
To: [EMAIL PROTECTED]
Subject: How can I refresh my jsp

sample1.jsp:
form action=/action1.do
 ..
/form

this is my action definition

action path=/action1
type=com.mycom.Action1
name=myForm
scope=session
forward name=success path=/sample2.jsp/
/action

but when I finished the action  in sample1, it opens sample2.jsp in the 
current window(not refresing the sample1.jsp window) and the sample2.jsp 
page remains the old(I modified some source files in the action in sample1 
which are used by sample2.jsp)

please, how can I solve this probelm,that is ,refreshing sample2.jsp in its 
own window

ThanksRegards

_
 MSN Explorer:   http://explorer.msn.com/lccn  


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: HELP: applet-to-action anomaly

2004-03-23 Thread Pady Srinivasan

For me, clicking on Standard Area Page: took me to the page with SoA site
- Standard area It seems to work ok.
 

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 12:57 AM
To: [EMAIL PROTECTED]
Subject: HELP: applet-to-action anomaly

hi,

please can someone help? i am building a struts 1.1 based web app using 
j2sdk1.4.2, tomcat 4.0.6. i'm using a 3rd-party tree applet for site 
navigation (a constraint specified by the client). i've got an action which 
can be accessed with this uri:

http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?areaid=3

if you attempt to load this uri directly into your browser (i'm testing with

msie 6.0 on win xp home) then, as expected, the action fails, and forwards 
to a dummy error page placeholder letting you know that you haven't logged 
in yet. that is what should happen if you try to enter the area without 
having logged in.

i've got another dummy page where you can see this 3rd-party navigation 
applet i mentioned:

http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp

for testing, within a scriptlet inside index.jsp, i've simulated a logged-in

user by instantiating a user bean and putting 

this user bean in the session when this index.jsp page loads. to verify that

this user bean is, in fact, in the session, i write out the user bean's 
email address at the very bottom of the page (the bit in red that 
says, there is a reader in the session: bebop-at-propelnewmedia.com). 

the navigation applet reads in a text file that contains the links needed to

render the nodes. i've set the Standard Area Page node to point at the 
enterAreaToRead.do?areaid=3 action:

The Society
|
+ Groups
|
|_Lorem Ipsum
|
+ BRG
| 
+ PCG
|
+ UMSIG
|
|_ Standard Area Page -- points to action
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum


the problem is: under certain conditions, loading the index.jsp page, then 
clicking on the Standard Area Page node in the applet takes you to the 
error page when it shouldn't. it shouldn't because the action should only 
forward to that error page 

if there is no user bean in the session. but there *IS* a user bean in the 
session which is verified by the presence of the bean's email address which 
i pull out of the session at the very bottom of index.jsp. this is how to 
reproduce the problem:

1) *FIRST* load
http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?
areaid=3. you should be taken to the error page.

2) then, load http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp. 
you can see that the user is logged in by the 

message at the very bottom of the page.

3) then click on the Standard Area Page node of the navigation applet on 
the left-hand side of the page. if you've done the steps in the above order,

then you will have been forwarded to the error page (which isn't suppose to 
happen because you are logged in).

the curious thing is: also at the very bottom of the index,jsp page is 
an Enter Area link (rendered by an html:link tag) that points to the 
exact same action that the applet points to. the action forwards correctly 
if you click on this link. 

also, the applet's Standard Area Page link to the action will also work 
correctly, *BUT ONLY IF* index.jsp is the first page loaded. i suspect that 
it is something to do with the applet not knowing about the session for some

reason. short of recoding the 

applet by having it append the session string to the uri via a passed-in 
parameter, is there some other - more straight forward (struts-specific 
maybe) -  way around this problem that you know of?

thanks in advance for your help.

--
Open WebMail Project (http://openwebmail.org)
--- End of Forwarded Message ---


--
Open WebMail Project (http://openwebmail.org)


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



It dies in super.init() after migrating from 1.0 to 1.1

2004-03-23 Thread Jignesh Kapadia

Hi ,
 This in the reference to the previous question I had posted. I am in process of migrating form 1.0 to 1.1. I copied all the latest .jar files(i.e. Struts.jar as well as commons.jar files) in my WEB-INF/lib. I did the corresponding chnages in config.xml file as well as web.xml. Since I dont have mulitple modules I think my web.xml remains the same. But When I start the application It is failingin super.init(). I am attaching the error file Please help. I am stuck to this small problems from last two days.

Thanks,

JigneshDo you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.4
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001

[3/20/04 14:30:12:932 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:12:979 EST] 26cac26b SASConfig X SECJ0108E: Unexpected exception 
occurred when getting user registry or registry attributes.
 Start Display Current Environment 
WebSphere AEs 4.0.4 ptf40230.02 running with process name localhost/Default Server and 
process id 346
Host Operating System is Windows NT, version 4.0
Java version = J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT enabled: 
jitc), Java Compiler = jitc, Java VM name = Classic VM
server.root = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
ws.ext.dirs = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/java/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/classes;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/ext;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/web/help;C:/Program Files/SQLLIB/java/db2java.zip;C:/Program 
Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasListener.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar;C:\wsad40requiredjars;C:\devc\olr_properties\env;C:\JAR\persistent_services_classes.jar;C:\JAR\config_services_classes_1_0_0.jar;C:\JAR\eas_api_classes_2_1_3.jar;C:\JAR\easaccess_classes.jar;C:\JAR\codes_repository_classes.jar;C:\JAR\uniqueidgeneration_services_classes.jar;C:\JAR\xml_services_classes_1_0_0.jar;C:\projects\testingEarWeb\Web
 Content\WEB-INF\classes;C:\projects\testingEarWeb\Web Content\WEB-INF\lib
Classpath = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/properties;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/lib/bootstrap.jar;C:/Program Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wteServers.jar;C:/Program
 Files/IBM/WebSphere 
Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasToolsCommon.jar
Java Library path = C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4/bin;C:\Program Files\IBM\WebSphere 
Studio\eclipse\jre\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program 
Files\Rational\common;e:\Program Files\ibm\gsk5\lib;C:\Program 
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program 
Files\SQLLIB\help;C:\Program Files\Oracle\jre\1.3.1\bin;C:\ORACLE\ora92\bin;C:\Program 
Files\Oracle\jre\1.1.8\bin;
Current trace specification = *=all=disabled
* End Display Current Environment *
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Version : 4.0.4
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Edition: Advanced Single Server 
Edition for Multiplatforms
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build date: Thu Sep 05 00:00:00 
EDT 2002
[3/20/04 14:30:14:042 EST] 26cac26b ServerU Build number: ptf40230.02
[3/20/04 14:30:16:792 EST] 26cac26b WSRegistryImp X Unable to initialize user registry 
class com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due 
to exception: Access is denied.

[3/20/04 14:30:16:792 EST] 26cac26b StandardIniti W SECJ0007E: Error during security 
initialization. Exception com.ibm.ejs.security.registry.RegistryErrorException: 
Windows:Access is denied.

at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.create(WSRegistryImplFactory.java:128)
at 
com.ibm.ejs.security.registry.WSRegistryImplFactory.getRegistryImpl(WSRegistryImplFactory.java:72)
at 
com.ibm.ejs.security.SecurityCollaborator.initialize(SecurityCollaborator.java:345)
at 
com.ibm.ws.security.core.StandardInitializer.initialize(StandardInitializer.java:162)
at 
com.ibm.ws.runtime.StandardServer.initializeSecurityRuntime(StandardServer.java:390)
at com.ibm.ws.runtime.Server.initializeRuntime0(Server.java:953)
at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:341)

RE: DynaActionForm caching issues?

2004-03-23 Thread Hubert Rabago
In my experience, it's not that the bean config is cached, it's that the form
itself is cached.  If your bean is not in request scope, it gets reused. 
Tomcat can keep a session alive between application and server restarts and
so your form can survive those.  What I've done when I modify my dyna forms
is to invalidate any existing sessions I have before proceeding with my
testing.

--- Norris, David A. ERDC-CERL-IL Contractor
[EMAIL PROTECTED] wrote:
 Note: JBoss 3.2.3 includes an integrated Tomcat 4.1.29, which is of course
 more likely to be relevant to this problem than JBoss itself...
 
 
  -Original Message-
  From: Norris, David A. ERDC-CERL-IL Contractor 
  [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 22, 2004 4:45 PM
  To: [EMAIL PROTECTED]
  Subject: DynaActionForm caching issues?
  
  
  Hello,
  
  This message is in response to Geeta Ramani's post on March 4 
  entitled DynaActionForm IllegalArgumentException.
  
  In short, I have a DynaActionForm defined in 
  struts-config.xml. It's been around for a while, but I find 
  that each time I make a change to it (for instance, adding a 
  new property), I run into the same IllegalArgumentException 
  (at the same file and line number) that Geeta described. I 
  can work around the issue by undeploying my application, 
  stopping my application server entirely (JBoss 3.2.3 on 
  Linux), and then restarting and redeploying.
  
  Is it possible that there are some caching issues, where 
  Struts saves its configured DynaActionForms somewhere in the 
  application server's memory and then doesn't realize it has 
  to refresh that information when struts-config.xml changes?
  
  Interestingly, the Struts and all Commons jar files are kept 
  inside my application's war file, and are not stored in 
  JBoss's shared library directory. I would think this would 
  ensure a complete Struts reload upon each deployment, but it 
  seems that is not the case.
  
  I'm using Struts 1.1 final and the Commons jars included in 
  that distribution. I have JBoss 3.2.3 running on Linux with 
  Sun's j2sdk 1.4.2_04.
  
  Thanks in advance for any suggestions,
  --
  David Norris
  [EMAIL PROTECTED]
  
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Connection failure

2004-03-23 Thread Viswanathan, Cheenuvasan (MED, TCS)
Hi,
 
Can anyone give me the solution or leads? This problem happens sometimes not
regularly. 
 
Mar 23, 2004 6:58:13 PM GMT+05:30 Error HTTP BEA-101083 Connection
failure.
ava.net.ProtocolException: Didn't meet stated Content-Length, wrote: '2'
bytes instead of stated: '1214' by
   at
weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength()V(Ser
vletOutputStreamImpl.
   at
weblogic.servlet.internal.ServletResponseImpl.ensureContentLength()V(Servlet
ResponseImpl.java:117
   at
weblogic.servlet.internal.ServletResponseImpl.send()V(ServletResponseImpl.ja
va:1188)
   at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Execut
eThread;)V(ServletReq
:2590)
   at
weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Exe
cuteThread.java:197)
   at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
   at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown
Source)
 
Mar 23, 2004 6:58:13 PM GMT+05:30 Error HTTP BEA-101104 Servlet
execution in servlet context Servl
34182276,name=lba,context-path=/lba) failed, java.net.ProtocolException:
Didn't meet stated Content-Length
bytes instead of stated: '1214' bytes..
ava.net.ProtocolException: Didn't meet stated Content-Length, wrote: '2'
bytes instead of stated: '1214' by
   at
weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength()V(Ser
vletOutputStreamImpl.
   at
weblogic.servlet.internal.ServletResponseImpl.ensureContentLength()V(Servlet
ResponseImpl.java:117
   at
weblogic.servlet.internal.ServletResponseImpl.send()V(ServletResponseImpl.ja
va:1188)
   at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Execut
eThread;)V(ServletReq
:2590)
   at
weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Exe
cuteThread.java:197)
   at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
   at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown
Source)
 
 
thanks.
Cheenu.


RE: Using SSL Extension and Workflow Extension together

2004-03-23 Thread shirishchandra.sakhare
Hello Scott,
I have already replied to this message.But my replies to the list were bouncing since 
this morning.So reposting the reply.

As the SSL extension and Workflow extension modify different parts of the response 
cycle, they are not mutually exclusive.
Just that nobody came up with the requirement of using SSL+ Workflow + Tiles so far 
:-((

I have put together a class for you,which will allow you to use SSL+ Workflow + Tiles 
combination.
Put this java file in the Workflow source files you have and recompile it.Also change 
the configutration to make use of the new Request Processor.

I will make a note to include this class in next release of Workflow Extension/or make 
it available as patch ,which I am porting to sourceforge.net.


*

package com.livinglogic.struts.workflow;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.SecureTilesRequestProcessor;
import org.apache.struts.config.ForwardConfig;

/**
 * pstrongSecureTilesWorkflowRequestProcessor/strong extends the request 
processor from
 * Struts SSL extension.This will allow using the Workflow extension along with the 
SSL extension
 *  Tiles.
 *
 * @author Shirish Sakhare
 */
public class SecureTilesWorkflowRequestProcessor
extends SecureTilesRequestProcessor implements 
WorkflowRequestProcessorLogicAdapter{

/**
 * The WorkflowRequestProcessingLogic instance we are using 
 */
WorkflowRequestProcessorLogic logic;

public void processForwardConfig(HttpServletRequest request, 
HttpServletResponse response, ForwardConfig forward)
throws IOException, ServletException
{
super.processForwardConfig(request, response, forward);
}


public HttpServletRequest processMultipart(HttpServletRequest request)
{
return super.processMultipart(request);
}

public String processPath(HttpServletRequest request, HttpServletResponse 
response)
throws IOException
{
return super.processPath(request, response);
}

public void processLocale(HttpServletRequest request, HttpServletResponse 
response)
{
super.processLocale(request, response);
}

public void processContent(HttpServletRequest request, HttpServletResponse 
response)
{
super.processContent(request, response);
}

public void processNoCache(HttpServletRequest request, HttpServletResponse 
response)
{
super.processNoCache(request, response);
}

public boolean processPreprocess(HttpServletRequest 
request,HttpServletResponse response)
{
return super.processPreprocess(request, response);
}

public ActionMapping processMapping(HttpServletRequest request, 
HttpServletResponse response, String path)
throws IOException
{
return super.processMapping(request, response, path);
}

public boolean processRoles(HttpServletRequest request, HttpServletResponse 
response,
ActionMapping mapping) 
throws IOException, ServletException
{
return super.processRoles(request, response, mapping);
}

public ActionForm processActionForm(HttpServletRequest request, 
HttpServletResponse response, ActionMapping mapping)
{
return super.processActionForm(request, response, mapping);
}

public void processPopulate(HttpServletRequest request, HttpServletResponse 
response,
ActionForm form, 
ActionMapping mapping) throws ServletException
{
super.processPopulate(request, response, form, mapping);
}

public boolean processValidate(HttpServletRequest request, HttpServletResponse 
response,
   ActionForm form, 
ActionMapping mapping) throws IOException, ServletException
{
return super.processValidate(request, response, form, mapping);
}

public boolean processForward(HttpServletRequest request, HttpServletResponse 
response, ActionMapping mapping)
throws IOException, ServletException
{
return super.processForward(request, response, mapping);
}

public boolean processInclude(HttpServletRequest request, HttpServletResponse 
response, ActionMapping mapping)
throws IOException, 

Re: How can I refresh my jsp

2004-03-23 Thread Mark Lowe
forward name=succes path=/sampe2.jsp redirect=true /

On 23 Mar 2004, at 03:38, Mu Mike wrote:

sample1.jsp:
form action=/action1.do
..
/form
this is my action definition

   action path=/action1
   type=com.mycom.Action1
   name=myForm
   scope=session
   forward name=success path=/sample2.jsp/
   /action
but when I finished the action  in sample1, it opens sample2.jsp in 
the current window(not refresing the sample1.jsp window) and the 
sample2.jsp page remains the old(I modified some source files in the 
action in sample1 which are used by sample2.jsp)

please, how can I solve this probelm,that is ,refreshing sample2.jsp 
in its own window

ThanksRegards

_
~{Cb7QOBTX~} MSN Explorer:   http://explorer.msn.com/lccn
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Connection failure

2004-03-23 Thread Butt, Dudley
u must set the content length of the servlet response when writing/streaming back to 
the browser
example code from my stuffwere generating a report, converting it to byte[] and 
streaming back to client..

public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

ServletOutputStream toClient = null;
RMDocument report = template.generateReport(mbIncTransList);
byte reportBytes[] =null;

res.setContentType(application/pdf); // where response is the 
HttpServletResponse
reportBytes = report.pdfBytes();

Integer sizeOfReport = new Integer(reportBytes.length);
res.setHeader(Content-Length, sizeOfReport.toString());
res.setContentLength(reportBytes.length);

toClient = res.getOutputStream();
toClient.write(reportBytes);
toClient.flush();

-Original Message-
From: Viswanathan, Cheenuvasan (MED, TCS)
[mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 03:31 PM
To: Struts Users Mailing List
Subject: Connection failure


Hi,
 
Can anyone give me the solution or leads? This problem happens sometimes not
regularly. 
 
Mar 23, 2004 6:58:13 PM GMT+05:30 Error HTTP BEA-101083 Connection
failure.
ava.net.ProtocolException: Didn't meet stated Content-Length, wrote: '2'
bytes instead of stated: '1214' by
   at
weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength()V(Ser
vletOutputStreamImpl.
   at
weblogic.servlet.internal.ServletResponseImpl.ensureContentLength()V(Servlet
ResponseImpl.java:117
   at
weblogic.servlet.internal.ServletResponseImpl.send()V(ServletResponseImpl.ja
va:1188)
   at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Execut
eThread;)V(ServletReq
:2590)
   at
weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Exe
cuteThread.java:197)
   at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
   at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown
Source)
 
Mar 23, 2004 6:58:13 PM GMT+05:30 Error HTTP BEA-101104 Servlet
execution in servlet context Servl
34182276,name=lba,context-path=/lba) failed, java.net.ProtocolException:
Didn't meet stated Content-Length
bytes instead of stated: '1214' bytes..
ava.net.ProtocolException: Didn't meet stated Content-Length, wrote: '2'
bytes instead of stated: '1214' by
   at
weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength()V(Ser
vletOutputStreamImpl.
   at
weblogic.servlet.internal.ServletResponseImpl.ensureContentLength()V(Servlet
ResponseImpl.java:117
   at
weblogic.servlet.internal.ServletResponseImpl.send()V(ServletResponseImpl.ja
va:1188)
   at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Execut
eThread;)V(ServletReq
:2590)
   at
weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Exe
cuteThread.java:197)
   at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
   at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown
Source)
 
 
thanks.
Cheenu.


NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

Metropolitan Holdings Limited, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.

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



RE: [OT] multiple submit buttons on a single page

2004-03-23 Thread Brian Buchanan

What I've learned is that here is no standard or recommendation defining
what should happen when the user hits enter on a text box, so browsers are
allowed to do whatever they want.

OTOH, this is what I've observed:

When the user hit's enter while context is in a text box:

1. Internet Explorer 6 with single text box does not submit any submit
button, it just submits the text box value.

2. IE 6 with multiple text boxes submits the first submit button on the
form.

3. Opera 7 with any text boxes submits the first submit button AFTER the
text box.

This lead my design to the least-destructive submit button first, and placed
after all text boxes.  Where there's only one text box in the form, I assume
a default action on the server side.

I did not try any other browsers (i.e. netscape, safari, etc.), any other
version of the above browsers, or any other platforms (tested only on W2K
Pro).

This page
http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html
seems to have a good summary and explains item 1 above with a suggestion
found in the HTML 2.0 spec:

http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2

This google link suggests that alot of people have been talking about this
issue:

http://www.google.com/search?q=form+submit+enter


._. Brian

-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:51 PM
To: Struts User List
Subject: [OT] multiple submit buttons on a single page


Hello all.

A slightly of-topic question for the group ...

The situation: a form with two submit buttons, and the user doesn't use
either of them, but instead submits the form by pressing enter/return in
one of the text fields.

Question: how does the form get submitted?  Is it by:
- the action attribute of the form (form name=XXY
action=Action.do)
- the first submit button
- the second submit button
- both submit buttons

My tests have shown one answer, but I'd like some confirmation (just
because test X says something doesn't mean my test is accurate! ;-) ).

Thanks

JDG


--
Jay Glanville

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




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



Re: html:select / html:options

2004-03-23 Thread Mark Lowe
session.setAttribute(myList, list);
session.setAttribute(myList,list.toArray());

for some reason you need to cast to list to an array.

On 24 Mar 2004, at 01:23, Lokanath wrote:

hi ,

i think u have to get the bean from session to some Collection
useing session.getAttribute(mylist) then assign it to some 
collection.then
use that collection for populating the select

   lokee

-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:45 AM
To: Struts Users Mailing List
Subject: html:select / html:options
Hi Folks!

for several days I mess around with html:select and html:options.

I want to access a collection with names or numbers (just
java.lang.String). This collection is available in the session. For
testing I generated my own collection in the jsp
%
 java.util.Collection list = new java.util.ArrayList();
 teilnehmerListe.add(name1);
 teilnehmerListe.add(name2);
 teilnehmerListe.add(name3);
 session.setAttribute(myList, list);
%
 html:form action=/myAction.do
  html:select property=selectedItem
   html:options collection=myList /
  /html:select
  html:submitOK/html:submit
 /html:form
When I run this I get an IllegalArgumentException: no name specified

I found out that both select and options have an argument name 
so I
added some dummies test1 and test2 just to have it and get (as
expected) another error: no bean found by that name test1.

What am I doing wrong? Can someone point me to the right direction?

Thanx and Regards,

Chris

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


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


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


RE: access variable value in html tag

2004-03-23 Thread Brian Buchanan

The Struts-EL is what I'd recommend, which supports exactly what you want to
do, unless you're into (Tomcat 5 and the) JSP 2.0 then you'd just do:
option value=${accounts.number}${accounts.number}/option

Otherwise I _think_ I've done this nastiness and it worked, but I might have
been doing it with plain HTML (non-struts tags):

html:option value=c:out value=${accounts.number}/c:out
value=${accounts.number}//html:option

._.

-Original Message-
From: Steltner, Joern [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 7:28 AM
To: [EMAIL PROTECTED]
Subject: access variable value in html tag


Dear,

I'm not an expert in Struts and Java. I need some simple help:

html:select property=no_account
 c:forEach var=accounts items=${Accounts} varStatus=status
  html:option value=c:out
value=${accounts.number}/html:option
 /c:forEach
/html:select

Everything works fine, but at ??? mark I would like take
account.no_account like ${accounts.number}, but it doesn't work. May someone
can give me a small note about the right syntax to get the value from
accounts.number as text in the quotes.

Thanks

Regards
J. Steltner



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




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



pre-populating DynaValidatorForm

2004-03-23 Thread Dean A. Hoover
I am using DynaValidatorAction and
it works just fine, when starting clean.
However, when I attempt to pre-populate
the object, the data never makes it to the
form. Anyone know why? What follows
is some snippets of files that should show
what I am doing.
=== struts-config.xml
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD 
Struts Configuration 1.0//EN 
http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

struts-config
 form-beans
   !-- changeContactInfo --
   form-bean name=changeContactInfo
  type=org.apache.struts.validator.DynaValidatorForm
 form-property name=contactInfoWidgetsSubFormFirstName
type=java.lang.String/
...
   /form-bean
...
 global-forwards
   forward name=welcome path=/home.do/
   forward name=logon path=/logon.do/
   forward name=logout path=/Logout.do/
...
   forward name=changeContactInfo path=/ChangeContactInfoSetup.do/
...
 /global-forwards
 action-mappings
...
   !-- changeContactInfo --
   action path=/ChangeContactInfoSetup
   type=fi.els.action.ChangeContactInfoSetup
 forward name=success path=/changeContactInfo.do/
 !-- FIXME --
 forward name=failure path=/changeContactInfo.do/
   /action
   action path=/changeContactInfo
   type=org.apache.struts.actions.ForwardAction
   parameter=tiles.changeContactInfo/
   action path=/ChangeContactInfo
   type=fi.els.action.ChangeContactInfo
   name=changeContactInfo
   validate=true
   input=tiles.changeContactInfo
   parameter=method
 forward name=success path=/home.do/
 forward name=cancel path=/home.do/
   /action
...
 /action-mappings
...
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames
 value=/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml/
 /plug-in
/struts-config
=== validation.xml
form-validation
 formset
...
   !-- Change Contact Info --
   form name=changeContactInfo
 field property=contactInfoWidgetsSubFormFirstName
depends=required,maxlength
   arg0 key=contactInfoWidgetsSubForm.label.firstName/
   arg1 name=maxlength key=${var:maxlength} resource=false/
   var
 var-namemaxlength/var-name
 var-value24/var-value
   /var
 /field
...
   /form
 /formset
/form-validation
=== ChangeContactInfoSetup.java
package fi.els.action;
...
public class ChangeContactInfoSetup extends Action
{
   public ActionForward execute
   (
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response
   ) throws Exception
   {
   User user = (User)request.getSession().getAttribute(user);
   Connection connection = null;

   try
   {
   DynaValidatorForm vForm = new DynaValidatorForm();
...
   connection = dataSource.getConnection();
   Client client = Client.load(connection, user.getId());
   ContactInfo contactInfo = client.getContactInfo();
   vForm.set(contactInfoWidgetsSubFormFirstName,
(contactInfo.getFirstName() != null) ?
contactInfo.getFirstName() : );
...
   request.getSession().setAttribute(changeContactInfo, vForm);
   return mapping.findForward(success);
   }
...
   }
}


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


RE: DynaActionForm caching issues?

2004-03-23 Thread Norris, David A. ERDC-CERL-IL Contractor
The form is in request scope, and I *think* I've tried restarting my browser
and starting a new session, but I'm not positive. I'll give it a shot. If I
run into the problem again I'll try to get some more verbose debugging
information.

Thanks,
--
David Norris
[EMAIL PROTECTED]


-Original Message-
From: Hubert Rabago
To: Struts Users Mailing List
Sent: 3/23/04 7:28 AM
Subject: RE: DynaActionForm caching issues?

In my experience, it's not that the bean config is cached, it's that the
form itself is cached.  If your bean is not in request scope, it gets
reused. Tomcat can keep a session alive between application and server
restarts and so your form can survive those.  What I've done when I modify
my dyna forms is to invalidate any existing sessions I have before
proceeding with my testing.


Generating Tiles tags and Struts tags from with in another Custom Tag

2004-03-23 Thread Sreenivasa Chadalavada
All,

I wrote a custom tag that generates JSP code that includes struts tags and 
tiles tags.

They are not getting interpreted by the JSP Container. 

Can you please let me know if it is possible? If it is possible are there 
any examples that
help me understand the life cycle?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



Re: pre-populating DynaValidatorForm

2004-03-23 Thread Hubert Rabago
What version of Struts are you using?  How are you instantiating your
Dyna*Form?  Struts 1.1 didn't really have direct support for instantiating
DyanForms from an Action object.  Struts 1.2.0/nightly build does.  Is it
possible that you're using 1.1 and instantiating the form incorrectly?  

--- Dean A. Hoover [EMAIL PROTECTED] wrote:
 I am using DynaValidatorAction and
 it works just fine, when starting clean.
 However, when I attempt to pre-populate
 the object, the data never makes it to the
 form. Anyone know why? What follows
 is some snippets of files that should show
 what I am doing.
 
 === struts-config.xml
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD 
 Struts Configuration 1.0//EN 
 http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
 
 struts-config
   form-beans
 !-- changeContactInfo --
 form-bean name=changeContactInfo
type=org.apache.struts.validator.DynaValidatorForm
   form-property name=contactInfoWidgetsSubFormFirstName
  type=java.lang.String/
 ...
 /form-bean
 ...
   global-forwards
 forward name=welcome path=/home.do/
 forward name=logon path=/logon.do/
 forward name=logout path=/Logout.do/
 ...
 forward name=changeContactInfo path=/ChangeContactInfoSetup.do/
 ...
   /global-forwards
 
   action-mappings
 ...
 !-- changeContactInfo --
 action path=/ChangeContactInfoSetup
 type=fi.els.action.ChangeContactInfoSetup
   forward name=success path=/changeContactInfo.do/
   !-- FIXME --
   forward name=failure path=/changeContactInfo.do/
 /action
 
 action path=/changeContactInfo
 type=org.apache.struts.actions.ForwardAction
 parameter=tiles.changeContactInfo/
 
 action path=/ChangeContactInfo
 type=fi.els.action.ChangeContactInfo
 name=changeContactInfo
 validate=true
 input=tiles.changeContactInfo
 parameter=method
   forward name=success path=/home.do/
   forward name=cancel path=/home.do/
 /action
 ...
   /action-mappings
 ...
   plug-in className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames
   value=/WEB-INF/validator-rules.xml,
  /WEB-INF/validation.xml/
   /plug-in
 
 /struts-config
 === validation.xml
 form-validation
   formset
 ...
 !-- Change Contact Info --
 form name=changeContactInfo
   field property=contactInfoWidgetsSubFormFirstName
  depends=required,maxlength
 arg0 key=contactInfoWidgetsSubForm.label.firstName/
 arg1 name=maxlength key=${var:maxlength} resource=false/
 var
   var-namemaxlength/var-name
   var-value24/var-value
 /var
   /field
 ...
 /form
   /formset
 /form-validation
 === ChangeContactInfoSetup.java
 package fi.els.action;
 ...
 public class ChangeContactInfoSetup extends Action
 {
 public ActionForward execute
 (
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response
 ) throws Exception
 {
 User user = (User)request.getSession().getAttribute(user);
 
 Connection connection = null;
 
 try
 {
 DynaValidatorForm vForm = new DynaValidatorForm();
 ...
 connection = dataSource.getConnection();
 Client client = Client.load(connection, user.getId());
 ContactInfo contactInfo = client.getContactInfo();
 vForm.set(contactInfoWidgetsSubFormFirstName,
  (contactInfo.getFirstName() != null) ?
  contactInfo.getFirstName() : );
 ...
 request.getSession().setAttribute(changeContactInfo, vForm);
 return mapping.findForward(success);
 }
 ...
 }
 }
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: AW: Re[2]: are you sure?

2004-03-23 Thread Mark Lowe
submitting to the server returning an action message with a checkbox 
(check to confirm). and then resubmitting I reckon would be nicer than 
a javascript dependency.

html:form action=/save.do
logic:messagesPresent bla bla (i hate this tag)
Are you sure you want to do that or are you just being a punk?br
html:checkbox property=confirmed value=true /
/logic: messagesPresent
html:submit /
/html:form
in the action something like ..

boolean confirmed = theForm.getConfirmed().equals(true);

if(!confirmed) {
ActionMessages messages= blas bla
saveMessages(bla bla);
}


On 23 Mar 2004, at 13:29, Dmitrii CRETU wrote:

AS Wow, I'm confused. If javascript was disabled, the onSubmit 
trigger was
AS ignored, but the button onClick trigger was honored? I'll have to 
try that
AS out.

If JavaScript is disabled neither of solutions work properly. But with
button you avoid uncontrolled form submition, simply nothing happens.
In submit-scenario the submition is taken place without JavaScript
preprocessing (onSubmit event) wich could not be accepted sometimes,
e.g. when you encrypt some fields.
Dima.



AS Andreas

AS -Ursprungliche Nachricht-
AS Von: Dmitrii CRETU [mailto:[EMAIL PROTECTED]
AS Gesendet: Dienstag, 23. Marz 2004 11:09
AS An: Struts Users Mailing List
AS Betreff: Re[2]: are you sure?
AS we tried to use this (form.onsumbit=return f()) but encountered 
a problem:
AS if JavaScript is disabled in browser the submiting goes on without
AS confirmation dialogue and other stuff done by JS (wich in our case 
was
AS more important).

AS We solved this by setting input.type=button instead of submit 
and
AS submitting the form from JacaScript. But this caused another 
problem
AS (though less important): now user can not submit form pressing 
Enter
AS being at text input, he must click the button.

AS Dima.

AS Tuesday, March 23, 2004, 11:43:54 AM, you wrote:

JS Try with this -
JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=return areyousure() 
JS Should work

JS -Original Message-
JS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
JS Sent: Tuesday, March 23, 2004 3:10 PM
JS To: [EMAIL PROTECTED]
JS Subject: are you sure?
JS Hi list,

JS Still a struts newbie, I try to write an are you sure javascript
JS confirmation box for my submit button.
JS The question is: how can I prevent the form from being submitted
JS when the user clicks no?
JS In the Jsp, I put the following code in the head:

JS SCRIPT LANGUAGE=javascript
JSfunction areyousure(){
JS   var agree = false;
JS   agree = confirm(are you sure?);
JS   if(agree){
JS  ... some code which is not important
JS   }
JS   return agree;
JS}
JS /SCRIPT
JS And the form tag looks like this:

JS html:form action=/adddate
JS   name=dateForm
JS   type=nl.rinke.DateForm
JS   onsubmit=areyousure() 
JS Whatever the user clicks, yes or no, the form
JS gets submitted. I want to stop submitting the
JS form when the user click no.
JS thanks, Rinke

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

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



AS --
AS Best regards,
AS  Dmitriimailto:[EMAIL PROTECTED]


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

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



--
Best regards,
 Dmitriimailto:[EMAIL PROTECTED]


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


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


RE: Generating Tiles tags and Struts tags from with in another Custom Tag

2004-03-23 Thread shirishchandra.sakhare
If you are writing a tag,The output generated by your tag should be valid html.

Because the life cycle is as follows.

1--The ServletContainer gets a request for a particular page(In this case your .jsp 
page)
2--The request being for a JSP page, the servlet container decides to pass it on to 
JspServlet/any helper class which knows how to interpret jsp code(Call methods on the 
Actions(Tags) if there are any tags included etc. ),I am also not very clear about 
this part, in the sense that if there is any restriction on ServletCOntainers about 
how to handle the interpretation of jsps.

3--Any output that the tags generate will written to the HTTPServletResponse object. 
which means it has to be valid HTML if the browser has to display it properly.

In your case, as you can see, the tags you wrote are again generating jsp which will 
be directly going to the client Browser.

May be what you can do is to write a temporary jsp file and then redirect to that 
temporary jsp file.

But why you have to go this way?It looks too contrived/complicated to me.

Why not just spit out proper HTML from your tags?
And the only purpose is to reuse the existing struts/Tiles tags,why not extend them, 
overriding where ever appropriate?

HTH.

Regards,
Shirish

-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:22 PM
To: Struts Users Mailing List
Subject: Generating Tiles tags and Struts tags from with in another
Custom Tag


All,

I wrote a custom tag that generates JSP code that includes struts tags and 
tiles tags.

They are not getting interpreted by the JSP Container. 

Can you please let me know if it is possible? If it is possible are there 
any examples that
help me understand the life cycle?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.


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



RE: Generating Tiles tags and Struts tags from with in another Custom Tag

2004-03-23 Thread Sreenivasa Chadalavada
Shirish,

Thanks for answering the e-mail.

One reason I would like to generate Struts, Tiles tags is to implement 
composition.

Take an example of generating a Table structure. I would like to use 
Struts and Tiles because
of all the niceties.  I hope this example makes sense?

If what you are saying is true, then I should follow some of the 
techniques you suggested to solve
the problem.

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






shirishchandra.sakhare
@ubs.com
03/23/2004 09:47 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:RE: Generating Tiles tags and Struts tags from with in another 
Custom Tag


If you are writing a tag,The output generated by your tag should be valid 
html.

Because the life cycle is as follows.

1--The ServletContainer gets a request for a particular page(In this case 
your .jsp page)
2--The request being for a JSP page, the servlet container decides to 
pass it on to JspServlet/any helper class which knows how to interpret jsp 
code(Call methods on the Actions(Tags) if there are any tags included etc. 
),I am also not very clear about this part, in the sense that if there is 
any restriction on ServletCOntainers about how to handle the 
interpretation of jsps.

3--Any output that the tags generate will written to the 
HTTPServletResponse object. which means it has to be valid HTML if the 
browser has to display it properly.

In your case, as you can see, the tags you wrote are again generating jsp 
which will be directly going to the client Browser.

May be what you can do is to write a temporary jsp file and then redirect 
to that temporary jsp file.

But why you have to go this way?It looks too contrived/complicated to me.

Why not just spit out proper HTML from your tags?
And the only purpose is to reuse the existing struts/Tiles tags,why not 
extend them, overriding where ever appropriate?

HTH.

Regards,
Shirish

-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:22 PM
To: Struts Users Mailing List
Subject: Generating Tiles tags and Struts tags from with in another
Custom Tag


All,

I wrote a custom tag that generates JSP code that includes struts tags and 

tiles tags.

They are not getting interpreted by the JSP Container. 

Can you please let me know if it is possible? If it is possible are there 
any examples that
help me understand the life cycle?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 

e-mail for such purpose.


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





RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.
 
http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html
 

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for  controller /controller
 
In web.xml file all parameters are proper Except following
config/${module} and  rulesets  parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.
 
Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.
 
Thanks,
Jignesh 


Saul Q Yuan [EMAIL PROTECTED] wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. File on time.


Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Do you Yahoo!?
 http://taxes.yahoo.com/filing.html Yahoo! Finance Tax Center - File
online. File on time.



Re: pre-populating DynaValidatorForm

2004-03-23 Thread Dean A. Hoover
I am using struts 1.1, and I am directly instantiating a 
DynaValidatorForm in
my Action class. I am hesitant to embrace struts 1.2 at this time, 
especially if
the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is 
there
some other way to accomplish it?

Dean Hoover

Hubert Rabago wrote:

What version of Struts are you using?  How are you instantiating your
Dyna*Form?  Struts 1.1 didn't really have direct support for instantiating
DyanForms from an Action object.  Struts 1.2.0/nightly build does.  Is it
possible that you're using 1.1 and instantiating the form incorrectly?  

 



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


Questions about debug and info messages

2004-03-23 Thread Eric Hodges
We have a torrent of debug and info messages coming out of struts.  I can't
find any documentation about how to turn them off.  Two questions:

1. How do I turn off debug and info level messages?
2. Where is that documented?

Thanks,
Eric Hodges

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



Re: pre-populating DynaValidatorForm

2004-03-23 Thread Hubert Rabago
See http://www.mail-archive.com/[EMAIL PROTECTED]/msg96035.html

hth,
Hubert

--- Dean A. Hoover [EMAIL PROTECTED] wrote:
 I am using struts 1.1, and I am directly instantiating a 
 DynaValidatorForm in
 my Action class. I am hesitant to embrace struts 1.2 at this time, 
 especially if
 the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is 
 there
 some other way to accomplish it?
 
 Dean Hoover
 
 Hubert Rabago wrote:
 
 What version of Struts are you using?  How are you instantiating your
 Dyna*Form?  Struts 1.1 didn't really have direct support for instantiating
 DyanForms from an Action object.  Struts 1.2.0/nightly build does.  Is it
 possible that you're using 1.1 and instantiating the form incorrectly?  
 
   
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



html:options where values have embedded quotes

2004-03-23 Thread Doug
We have some customer-supplied selection options that have double quotes 
in their values, and Struts 1.1 isn't seeming to handle this correctly.

Best I can tell from the HTML spec, these should be placed on the page 
as quot; , which will submit them as %22 , which *should* be seen on 
the server side as double quotes again, right?  And Struts should be 
able to match that to an existing entry so it can properly set the 
selected value.

Instead, it seems the options tag isn't escaping the quotes at all 
(changing them to quot;) and that if we manually do it ourselves, the 
selected item still isn't being set when the page is reloaded.  IIRC, 
the tag is just leaving the quotes inside the attribute value, which 
outputs invalid HTML.

Am I missing something?  Is there a better way to do this?  Thanks.

Doug

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


RE: Questions about debug and info messages

2004-03-23 Thread Pady Srinivasan


If you are using  JDK 1.4 and not using log4j, then look in
JAVA_HOME/jre/lib for a file called logging.properties. Set the .level to
OFF. The levels in descending order are: SEVERE (highest value) WARNING INFO
CONFIG FINE FINER FINEST (lowest value) In addition there is a level OFF
that can be used to turn off logging, and a level ALL that can be used to
enable logging of all messages.

I haven't used log4j. Here is the struts docs:

http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/pac
kage-summary.html#package_description



Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Eric Hodges [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 10:36 AM
To: Struts Users Mailing List (E-mail)
Subject: Questions about debug and info messages

We have a torrent of debug and info messages coming out of struts.  I can't
find any documentation about how to turn them off.  Two questions:

1. How do I turn off debug and info level messages?
2. Where is that documented?

Thanks,
Eric Hodges

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Exception handling in struts

2004-03-23 Thread Tate Austin
I'm trying to write an exception handler in my struts-config to clean up my 
application's exception behavior.  Well, I've followed the directions in the docs to a 
T, I have this entry in my struts config:

global-exceptions

exception

key=uncaught_exception 

type=java.lang.exception 

path=/jsp/error.jsp 

handler=com.graysail.pgbadmecs.exceptions.exceptioncatcher 

scope=request/

/global-exceptions



my exception catcher extends GlobalExceptionHandler and bears an execute() method.  
Well, when an error of type exception goes off, the catcher is never called to it?  
What ingredient am I missing?


[OT] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the html:link  
attriibute to use : page or href.

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


Re: [OT] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
I've found this way :

 c:if test=${link.bytes[0] eq '/'.bytes[0]}

Not so pretty, but working !

Nico.

nicolas De Loof a écrit :

Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the html:link  
attriibute to use : page or href.

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


Re: Exception handling in struts

2004-03-23 Thread Larry Meadors
type=java.lang.exception

There is not such class.

Think big E instead...

Larry

 [EMAIL PROTECTED] 03/23/04 9:10 AM 
I'm trying to write an exception handler in my struts-config to clean up
my application's exception behavior.  Well, I've followed the directions
in the docs to a T, I have this entry in my struts config:

global-exceptions

exception

key=uncaught_exception 

type=java.lang.exception 

path=/jsp/error.jsp 

handler=com.graysail.pgbadmecs.exceptions.exceptioncatcher 

scope=request/

/global-exceptions



my exception catcher extends GlobalExceptionHandler and bears an
execute() method.  Well, when an error of type exception goes off, the
catcher is never called to it?  What ingredient am I missing?


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



Re: Exception handling in struts

2004-03-23 Thread Nick Wesselman
And I bet ExceptionCatcher needs the same treatment.

Larry Meadors wrote:

type=java.lang.exception

There is not such class.

Think big E instead...

Larry

 

[EMAIL PROTECTED] 03/23/04 9:10 AM 
   

I'm trying to write an exception handler in my struts-config to clean up
my application's exception behavior.  Well, I've followed the directions
in the docs to a T, I have this entry in my struts config:
global-exceptions

exception

key=uncaught_exception 

type=java.lang.exception 

path=/jsp/error.jsp 

handler=com.graysail.pgbadmecs.exceptions.exceptioncatcher 

scope=request/

/global-exceptions



my exception catcher extends GlobalExceptionHandler and bears an
execute() method.  Well, when an error of type exception goes off, the
catcher is never called to it?  What ingredient am I missing?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: [OT] JSTL : test the first char of a String

2004-03-23 Thread Pady Srinivasan

c:if test=${fn:startsWith(url, '/')}

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 11:12 AM
To: Struts Users Mailing List
Subject: [OT] JSTL : test the first char of a String

Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the html:link  
attriibute to use : page or href.

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



What page or action am I on?

2004-03-23 Thread Skip Hollowell
I have searched the archives, and tried every goodle search I can think of,
so now I ask you.

I have a tabbed nav scheme on my site.  I know I can use the hardcore
approach, and pull the location.href to pieces to determine which page or
forward the user is at and highlight the appropriate tab that way.  But is
there a more official Struts-ish was to determine the current location of
the user?I have dug though the html, logic and utility tags so far, and
am headed into bean next.

Thanks for any advice.
Skip.


Current Url for user (example):

http://mymachine:8080/MyWebApp/accountInfo.do

global-forwards 
forward name=accountInfo path=/accountInfo.do /
forward name=rateQuote path=/rateQuote.do /
forward name=credit path=/credit.do /
/global-forwards

action
path=/accountInfo
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.accountInfoLayout /
action
path=/rateQuote
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.rateQuoteLayout /
action
path=/credit
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.creditLayout /





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



passing errors from model?

2004-03-23 Thread Nick Wesselman
Say my model does some validation of business rules. What's the best way 
to communicate those errors to the controller, and then (in the case of 
struts) translate those into ActionError's? It seems that if I want to 
communicate specific errors, creating Exception's for each case might be 
excessive. Or maybe I should create a custom Exception with a set of 
error codes and messages?

Any thoughts? How do others handle this?

Nick

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


how to find a value in a list

2004-03-23 Thread sean jones
I have a user object in the session

The user object contains a List object that conatins an entry for each role the 
person has.


User {
private Roles r = new Roles();
user() {}

(getters  setters)..
}

i have a Console.jsp (this is used to show items that need processing by the 
user).  

the preceeding action put a consoleUserData object in the request.

for each role i have to iterate over the the consoleUserData object
to build that section of the console page.

h1 data entry 1 /h1
logic:iterate id=data name=consoleData

/logic:iterate 


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



Re: passing errors from model?

2004-03-23 Thread Greg Reddin
Nick Wesselman wrote:
create a custom Exception with a set of 
error codes and messages?
This is what we've done in the past.  We'd assign a set of error codes 
in the ApplicationResources file. and throw an exception like this:

throw new MyException(12345, ...);

And catch it like this:

try {
 
} catch (MyException e) {
  errors.addError(new ActionMessage(e.getErrorCode());
}
That may not be completely correct, but something similar to that.

Greg

Any thoughts? How do others handle this?

Nick

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


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


Displaying Content only if form errors are present

2004-03-23 Thread Christoph Kutzinski
Hi,

I'm trying to display a piece of HTML only if the previous form submit 
create an ActionError. This is what I got so far:

logic:present name=%=org.apache.struts.Globals.ERROR_KEY%
td class=errorhtml:errors property=company //td
/logic:present
tdCompany:/tdtdhtml:text property=company//td
this works, but seems not the cleanest way to do this to me.
Does anyone know a better way, e.g. a custom tag for this.
BTW I tried this with JSTL core, too, but couldn't get it to work:
c:if test=${!empty $org.apache.struts.action.ERROR}

evaluates always to false.
Does anyone know how to get this to work with JSTL?
thanks in advance,

Christoph

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


RE: Displaying Content only if form errors are present

2004-03-23 Thread Irving, Dave
logic:messagesPresent ?

-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 17:51
To: Struts Users Mailing List
Subject: Displaying Content only if form errors are present


Hi,

I'm trying to display a piece of HTML only if the previous form submit 
create an ActionError. This is what I got so far:

logic:present name=%=org.apache.struts.Globals.ERROR_KEY%
 td class=errorhtml:errors property=company //td
/logic:present
tdCompany:/tdtdhtml:text property=company//td

this works, but seems not the cleanest way to do this to me.
Does anyone know a better way, e.g. a custom tag for this.
BTW I tried this with JSTL core, too, but couldn't get it to work:

c:if test=${!empty $org.apache.struts.action.ERROR}

evaluates always to false.
Does anyone know how to get this to work with JSTL?


thanks in advance,

Christoph

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

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.

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



Re: Displaying Content only if form errors are present

2004-03-23 Thread Christoph Kutzinski
That works, thanks a lot.
I overlooked this tag in the Struts docs ;-(
Irving, Dave wrote:

logic:messagesPresent ?

-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: 23 March 2004 17:51
To: Struts Users Mailing List
Subject: Displaying Content only if form errors are present
Hi,

I'm trying to display a piece of HTML only if the previous form submit 
create an ActionError. This is what I got so far:

logic:present name=%=org.apache.struts.Globals.ERROR_KEY%
 td class=errorhtml:errors property=company //td
/logic:present
tdCompany:/tdtdhtml:text property=company//td
this works, but seems not the cleanest way to do this to me.
Does anyone know a better way, e.g. a custom tag for this.
BTW I tried this with JSTL core, too, but couldn't get it to work:
c:if test=${!empty $org.apache.struts.action.ERROR}

evaluates always to false.
Does anyone know how to get this to work with JSTL?
thanks in advance,

Christoph

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

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



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


Re: Documentation Struts-config

2004-03-23 Thread Bill Siggelkow
I think you will find that the struts-config_1_1.dtd file in the /lib 
folder of the Struts distribution is well documented and provides 
descriptions of all attributes.

Franck DARRAS wrote:
Hi every body

Do you know a documentation about all fields of the struts-config DTD 
(Struts version 1.1) file (with example if possible).

For example :
Action-mapping
   [...]
   prefixCDATA #IMPLIED
   suffixCDATA #IMPLIED
   unknown   boolean #IMPLIED
   [...]
I accept all links (book, documentation on-line..., web link).

I'm already using the jakarta user guide 
(http://jakarta.apache.org/struts/userGuide/)

Thanks for your response


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


RE: how to find a value in a list

2004-03-23 Thread Pady Srinivasan

Assuming you can get a Collection of roles, using jstl,

c:forEach items=${requestScope.ROLES} var=role
c:if test=${role.name == 'myRole'}
Do something...
/c:if
/c:forEach


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: sean jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 12:31 PM
To: [EMAIL PROTECTED]
Subject: how to find a value in a list

I have a user object in the session

The user object contains a List object that conatins an entry for each role
the 
person has.


User {
private Roles r = new Roles();
user() {}

(getters  setters)..
}

i have a Console.jsp (this is used to show items that need processing by the

user).  

the preceeding action put a consoleUserData object in the request.

for each role i have to iterate over the the consoleUserData object
to build that section of the console page.

h1 data entry 1 /h1
logic:iterate id=data name=consoleData

/logic:iterate 


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: Documentation Struts-config

2004-03-23 Thread atta-ur rehman
How about:

jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

- Original Message - 
From: Bill Siggelkow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:13 AM
Subject: Re: Documentation Struts-config


 I think you will find that the struts-config_1_1.dtd file in the /lib 
 folder of the Struts distribution is well documented and provides 
 descriptions of all attributes.
 
 Franck DARRAS wrote:
  Hi every body
  
  Do you know a documentation about all fields of the struts-config DTD 
  (Struts version 1.1) file (with example if possible).
  
  For example :
  Action-mapping
 [...]
 prefixCDATA #IMPLIED
 suffixCDATA #IMPLIED
 unknown   boolean #IMPLIED
 [...]
  
  I accept all links (book, documentation on-line..., web link).
  
  I'm already using the jakarta user guide 
  (http://jakarta.apache.org/struts/userGuide/)
  
  Thanks for your response
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Please help....Struts 1.0.2b and JDK 1.4.2

2004-03-23 Thread Kramer, Brad
 Can anyone either confirm or deny if Struts 1.0.2b is compatible with
JDK 1.4.2? 

 
Thanks a lot!
 

  _  

Brad Kramer
Pager -  [EMAIL PROTECTED]
  _  

 
 



[OT] Is it possible to use commons-el in a standalone application?

2004-03-23 Thread Daniel H. F. e Silva
Hi,
 I know this is an off-topic message, but as many people here works with Jakarta 
Commons
components, i decided to start my search in this list.
 I was thinking about writing a Swing app where its config file would be a XML file. 
And i'd like
to put EL expressions in that file. So, my question is: is it possible to embed EL 
into a
standalone app? 
 I was reading commons-el API docs and they make a lot of references to JSP 
implementation classes
(PageContext, VariableResolver, etc). So, in first glance, looks it is not possible. 
Is my
conclusion right?

 Thanks in advance for any hint.

Regards,
 Daniel Silva.

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



ANN: MVC conference in NYC next weekend.

2004-03-23 Thread Vic Cekvenich
Not this weekend, but next. Price is cheap - sign up, but goes up. This 
is also my last post on it.

Today's NY Times Science has an ad on it. (Does anyone know the page #?).

Here is the line up of sessions:
1. Ted Husted will present - on details of anew sample Struts 
application to be included. I hope he mentions future CoR.

2. iBatis.com home page has link to it, Clinton will present - flies in 
from BC-Canada's West coast. Also, new version jPetStore 4.0 is out with 
new version of SQL-Maps 2.0RC1, very popular for the model layer. Check 
it out!

3. Matt from Denver will present on updetable data grid jsp tag: 
http://demo.raibledesigns.com/appfuse/users-edit.jsp and Struts-Menu now 
reads from DB: http://demo.raibledesigns.com/appfuse/dynamicMenu.jsp.

4. Rod Johnson flies in from London: http://www.springframework.org, a 
modren MVC. He has some comments on EJB.

5. OpenSymphony WebWork 2 - Another MVC framework by Jason:: 
http://jroller.com/page/jcarreira/20040308#talking_and_not_talking_javaone

6. Christophe on RIA mXML: 
http://www.macromedia.com/devnet/flex/articles/struts.html . MacroMedia 
supported JSF early.

7. Vic on a Struts Portal

Bring your books for an autograph, most of above have a book out.
This is likely best one day seminar on the east cost (Maybe west coast 
too, JavaOne is for newbies and marketing types).

.V

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


Server side Validation

2004-03-23 Thread Joao Batistella
Hello.

I'm using the Validator framework to validate user input and I'm having some
problems.

I've configured my form validation in the correct file.

The Javascript validation works fine but when I disable javascript
validation to see the server side validation behavior, I have the error
messages but without the field that generate the error, like this:
The field  is required.

Inside the  it was suposed to be the name that I configure in
ApplicationResources. How can Javascript validation works fine and server
side doesn't?

Thanks,
JP


RE: What page or action am I on?

2004-03-23 Thread Pady Srinivasan


Can you set a hidden field when a tab is chosen ? If not, you can do a 
ActionMapping.getPath() and get the path.

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Skip Hollowell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 9:04 AM
To: [EMAIL PROTECTED]
Subject: What page or action am I on?

I have searched the archives, and tried every goodle search I can think of,
so now I ask you.

I have a tabbed nav scheme on my site.  I know I can use the hardcore
approach, and pull the location.href to pieces to determine which page or
forward the user is at and highlight the appropriate tab that way.  But is
there a more official Struts-ish was to determine the current location of
the user?I have dug though the html, logic and utility tags so far, and
am headed into bean next.

Thanks for any advice.
Skip.


Current Url for user (example):

http://mymachine:8080/MyWebApp/accountInfo.do

global-forwards 
forward name=accountInfo path=/accountInfo.do /
forward name=rateQuote path=/rateQuote.do /
forward name=credit path=/credit.do /
/global-forwards

action
path=/accountInfo
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.accountInfoLayout /
action
path=/rateQuote
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.rateQuoteLayout /
action
path=/credit
type=org.apache.struts.actions.ForwardAction
parameter=.accountInfo.creditLayout /





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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: Questions about debug and info messages

2004-03-23 Thread Eric Hodges
Thanks for the advice, but I'm using log4j.  The API doc you to which you
linked doesn't offer much help.  I hacked a solution by setting the message
level on the struts logger to warning in one of my servlet's init method,
but surely there's a configuration setting (like a parameter to the Action
servlet?) that will set the message level.



-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:21 AM
To: Struts Users Mailing List
Subject: RE: Questions about debug and info messages




If you are using  JDK 1.4 and not using log4j, then look in
JAVA_HOME/jre/lib for a file called logging.properties. Set the .level to
OFF. The levels in descending order are: SEVERE (highest value) WARNING INFO
CONFIG FINE FINER FINEST (lowest value) In addition there is a level OFF
that can be used to turn off logging, and a level ALL that can be used to
enable logging of all messages.

I haven't used log4j. Here is the struts docs:

http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/pac
kage-summary.html#package_description



Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Eric Hodges [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 10:36 AM
To: Struts Users Mailing List (E-mail)
Subject: Questions about debug and info messages

We have a torrent of debug and info messages coming out of struts.  I can't
find any documentation about how to turn them off.  Two questions:

1. How do I turn off debug and info level messages?
2. Where is that documented?

Thanks,
Eric Hodges

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: Questions about debug and info messages

2004-03-23 Thread Pady Srinivasan

I assume you tried setting log4j.rootCategory as one of  DEBUG, ERROR, INFO,
WARN, FATAL  in log4j.properties file.


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Eric Hodges [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 3:28 PM
To: Struts Users Mailing List
Subject: RE: Questions about debug and info messages

Thanks for the advice, but I'm using log4j.  The API doc you to which you
linked doesn't offer much help.  I hacked a solution by setting the message
level on the struts logger to warning in one of my servlet's init method,
but surely there's a configuration setting (like a parameter to the Action
servlet?) that will set the message level.



-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:21 AM
To: Struts Users Mailing List
Subject: RE: Questions about debug and info messages




If you are using  JDK 1.4 and not using log4j, then look in
JAVA_HOME/jre/lib for a file called logging.properties. Set the .level to
OFF. The levels in descending order are: SEVERE (highest value) WARNING INFO
CONFIG FINE FINER FINEST (lowest value) In addition there is a level OFF
that can be used to turn off logging, and a level ALL that can be used to
enable logging of all messages.

I haven't used log4j. Here is the struts docs:

http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/pac
kage-summary.html#package_description



Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Eric Hodges [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 10:36 AM
To: Struts Users Mailing List (E-mail)
Subject: Questions about debug and info messages

We have a torrent of debug and info messages coming out of struts.  I can't
find any documentation about how to turn them off.  Two questions:

1. How do I turn off debug and info level messages?
2. Where is that documented?

Thanks,
Eric Hodges

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: Questions about debug and info messages

2004-03-23 Thread Van Riper, Mike
Eric,

If you are using log4j, then you can configure it with a properties file. As
an example (minus some of my project specific settings), here is a simple
log4j configuration file that establishes a rolling log file. Notice near
the bottom where I set the struts and commons packages to the WARN log
level. This suppresses the INFO and DEBUG log messages for these packages.

# Usage: Specifies the configuration properties for log4j.
#
# Notes: This properties file should be placed somewhere
#inside the WEB-INF/classes directory.

# Create two appenders, one called stdout and the other called rolling
log4j.rootLogger=WARN, stdout, rolling

# Configure the stdout appender to go to the Console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender

#  Configure the stdout appender to use the PatternLayout
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

# Configure the rolling appender to be a RollingFileAppender
log4j.appender.rolling=org.apache.log4j.RollingFileAppender

# Configure the name of the logout for the rolling appender
# For Tomcat:
# log4j.appender.rolling.File=../logs/app-rolling.log
# For Weblogic:
log4j.appender.rolling.File=/logs/app-rolling.log

# Set up the maximum size of the rolling log file
log4j.appender.rolling.MaxFileSize=5120KB

# Keep two backup files of the rolling appender
log4j.appender.rolling.MaxBackupIndex=2

# Configure the Layout pattern and conversion pattern for the rolling
appender
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ISO8601} - %p %c - %m%n

# Set Struts/Commons log level
log4j.logger.org.apache.struts=WARN
log4j.logger.org.apache.commons=WARN

---

Of course, you have to configure your installation to read the properties
file. The simplest way is to include it inside the war at the root of your
class package structure where it gets picked up by default. However, you can
explicitly point to a properties file outside the war using command line
arguments to the JVM startup command for your servlet container. This is how
we have it setup for our production webapps so that we can reconfigure the
logging options without having to redeploy the war file again. See the log4j
docs for more information:

http://tinyurl.com/3hlrq

Hope this helps, Van

Mike Van Riper
Silicon Valley Struts User Group
http://www.baychi.org/bof/struts/

 -Original Message-
 From: Eric Hodges [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 12:28 PM
 To: Struts Users Mailing List
 Subject: RE: Questions about debug and info messages
 
 
 Thanks for the advice, but I'm using log4j.  The API doc you 
 to which you
 linked doesn't offer much help.  I hacked a solution by 
 setting the message
 level on the struts logger to warning in one of my 
 servlet's init method,
 but surely there's a configuration setting (like a parameter 
 to the Action
 servlet?) that will set the message level.
 
 
 
 -Original Message-
 From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 8:21 AM
 To: Struts Users Mailing List
 Subject: RE: Questions about debug and info messages
 
 
 
 
 If you are using  JDK 1.4 and not using log4j, then look in
 JAVA_HOME/jre/lib for a file called logging.properties. Set 
 the .level to
 OFF. The levels in descending order are: SEVERE (highest 
 value) WARNING INFO
 CONFIG FINE FINER FINEST (lowest value) In addition there is 
 a level OFF
 that can be used to turn off logging, and a level ALL that 
 can be used to
 enable logging of all messages.
 
 I haven't used log4j. Here is the struts docs:
 
 http://jakarta.apache.org/commons/logging/api/org/apache/commo
 ns/logging/pac
 kage-summary.html#package_description
 
 
 
 Thanks
  
 -- pady
 [EMAIL PROTECTED]
  
 
 -Original Message-
 From: Eric Hodges [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 23, 2004 10:36 AM
 To: Struts Users Mailing List (E-mail)
 Subject: Questions about debug and info messages
 
 We have a torrent of debug and info messages coming out of 
 struts.  I can't
 find any documentation about how to turn them off.  Two questions:
 
 1. How do I turn off debug and info level messages?
 2. Where is that documented?
 
 Thanks,
 Eric Hodges

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



[OT] How to get file creation date

2004-03-23 Thread Chiming Huang
Hi,
 
The File class provides only lastModified().  Is there a way to get the file creation 
date in Java?
 
Thanks,
Chiming

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: [OT] How to get file creation date

2004-03-23 Thread Pady Srinivasan

I think u cant find it - atleast on most UNIX systems there is no direct
method, like a system command, to find out. If you have created the file,
then you can save the time of creation.

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 4:03 PM
To: Struts Users Mailing List
Subject: [OT] How to get file creation date

Hi,
 
The File class provides only lastModified().  Is there a way to get the file
creation date in Java?
 
Thanks,
Chiming

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: how to find a value in a list

2004-03-23 Thread sean jones
Pady Srinivasan Pady.Srinivasan at Heroix.com writes:

 
 Assuming you can get a Collection of roles, using jstl,
 
 c:forEach items=${requestScope.ROLES} var=role
 c:if test=${role.name == 'myRole'}
 Do something...
 /c:if
 /c:forEach
 
 
 Thanks
  

thanks, but this is about what i have now using the struts iterate tag

i have actually decided to create a console page for each role and

have the consoleAction  decide what page to include in the template.

String incl=defaultConsole.jsp;
if (user.verifyRole(thisrole))
   incl = ConsoleThisRole.jsp;
elseif (user.verifyRole(thatrole))
   incl = ConsoleThatRole.jsp

CreateTemplate(request, constants.empty, constants.empty, MasterTemplate.jsp, 
incl);



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



Internal error while merging PD's

2004-03-23 Thread McClung, Brian
I recently started getting this exception on code that had been working
before.  I have checked that the get method and set method return and accept
the same type (in this case a String).  I saw the earlier post indicating
that the accessor methods had been mismatched, but in this case I have
checked and double checked to make sure that they each match.  Any help
would be appreciated.

java.lang.Error: PropertyDescriptor: internal error while merging PDs:
type mismatch between read and write methods
at java.beans.PropertyDescriptor.init(PropertyDescriptor.java:343)
at
java.beans.Introspector.processPropertyDescriptors(Introspector.java:649)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUt
ils.java:949)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUt
ils.java:979)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:887)
at
org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
ava:1172)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:772)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:952)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at
_sharedcontent._registration._test__jsp._jspService(/sharedcontent/registrat
ion/test.jsp:11)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:555)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155
)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.ja
va:129)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:272)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:111)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.ja
va:113)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.ja
va:129)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:272)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:111)
at com.caucho.jsp.PageContextImpl.forward(PageContextImpl.java:811)
at
_sharedcontent._registration._index2__jsp._jspService(_index2__jsp.java:30)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.pageservice(Page.java:555)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155
)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:1
77)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
221)
at
com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:315)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:353)
at com.caucho.util.ThreadPool.run(ThreadPool.java:302)
at java.lang.Thread.run(Thread.java:534)


Thanks,

Brian McClung
Senior Programmer
Belo Interactive
214-977-4083



Re: [OT] How to get file creation date

2004-03-23 Thread Chiming Huang
Thanks.

- Original Message -
From: Pady Srinivasan [EMAIL PROTECTED]
To: Struts Users Mailing List
[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 4:49 PM
Subject: RE: [OT] How to get file creation date



 I think u cant find it - atleast on most UNIX
systems there is no direct
 method, like a system command, to find out. If you
have created the file,
 then you can save the time of creation.

 Thanks

 -- pady
 [EMAIL PROTECTED]


 -Original Message-
 From: Chiming Huang [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 4:03 PM
 To: Struts Users Mailing List
 Subject: [OT] How to get file creation date

 Hi,

 The File class provides only lastModified().  Is
there a way to get the
file
 creation date in Java?

 Thanks,
 Chiming

 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on
time.


__
 This email has been scanned by the MessageLabs Email
Security System.
 For more information please visit
http://www.messagelabs.com/email

__


__
 This email has been scanned by the MessageLabs Email
Security System.
 For more information please visit
http://www.messagelabs.com/email

__


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



__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



html:messages jstl equivalent

2004-03-23 Thread Pedro Salgado


html:messages id=error

 ...

/html:messages

  Does anyone know how do I fill the ${???} to have a JSTL equivalent for
the previous html tag?

  c:forEach items='${???}' var='error'

   ...

  /c:forEach


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



Re: referrer url

2004-03-23 Thread Max Cooper
request.getHeader(referer)

-Max

On Tue, 2004-03-23 at 03:52, MOHAN RADHAKRISHNAN wrote:
 Hi
  I am trying to get the referrer URL using JSTL or JSP. Is there a way ?
 
 
 I have a link in an email that hits an action. So in order to identify
 the action was hit from the email link I appended a parameter to the URL.
 Now I want to do something if the action was hit from the email link.
 
 
 Any thoughts.
 
 
 
 
 Mohan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Max Cooper [EMAIL PROTECTED]


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



RE: referrer url

2004-03-23 Thread McClung, Brian
Careful doing this.  If an end user is running a personal firewall or has
very high security settings, the referrer may not be set.  In this case your
application will need a back up plan in order to build the appropriate URL.

Brian McClung 

-Original Message-
From: MOHAN RADHAKRISHNAN [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 5:53 AM
To: 'Struts Users Mailing List'
Subject: referrer url

Hi
 I am trying to get the referrer URL using JSTL or JSP. Is there a way ?


I have a link in an email that hits an action. So in order to identify
the action was hit from the email link I appended a parameter to the URL.
Now I want to do something if the action was hit from the email link.


Any thoughts.




Mohan


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

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



Re: [OT] Is it possible to use commons-el in a standalone application?

2004-03-23 Thread Martin Cooper
You're much more likely to get a good answer to this if you post to
commons-user, where it would be ON topic. Asking on struts-user if you can
use a non-Struts library in a non-Struts app isn't the best approach. ;-)

--
Martin Cooper


Daniel H. F. e Silva [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,
  I know this is an off-topic message, but as many people here works with
Jakarta Commons
 components, i decided to start my search in this list.
  I was thinking about writing a Swing app where its config file would be a
XML file. And i'd like
 to put EL expressions in that file. So, my question is: is it possible to
embed EL into a
 standalone app?
  I was reading commons-el API docs and they make a lot of references to
JSP implementation classes
 (PageContext, VariableResolver, etc). So, in first glance, looks it is not
possible. Is my
 conclusion right?

  Thanks in advance for any hint.

 Regards,
  Daniel Silva.

 __
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.
 http://taxes.yahoo.com/filing.html




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



Re: Please help....Struts 1.0.2b and JDK 1.4.2

2004-03-23 Thread Martin Cooper
You asked exactly the same question only 24 hours ago. Patience is a virtue.
;-)

Do you mean 1.0.2 beta? Wow, that's old! There is no reason that it
shouldn't, but I haven't run anything that old for some time now. I would
recommend upgrading to 1.1 anyway. :-)

--
Martin Cooper


Kramer, Brad [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can anyone either confirm or deny if Struts 1.0.2b is compatible with
JDK 1.4.2?


Thanks a lot!


  _

Brad Kramer
Pager -  [EMAIL PROTECTED]
  _








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



RE: [OT] Is it possible to use commons-el in a standalone application?

2004-03-23 Thread Chappell, Simon P
Except on Friday afternoons, of course. :-)

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Tuesday, March 23, 2004 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Is it possible to use commons-el in a standalone
application?


You're much more likely to get a good answer to this if you post to
commons-user, where it would be ON topic. Asking on 
struts-user if you can
use a non-Struts library in a non-Struts app isn't the best 
approach. ;-)

--
Martin Cooper

snip

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



Map-backed ActionForms, validating using validWhen

2004-03-23 Thread Mark Thill
I have a form that I'm using map-backed properties
with.  There is nothing all that unusual about it, but
I'm trying to do validation using the validWhen
built-in validation.  I can't seem to figure out if I
can access a map-backed property in the conditional
statement for the validWhen validation.  My
validation.xml looks like such:

  form name=circuitBreakerEditForm
field property=value(marketCategoryId)
depends=required
  arg0 key=label.marketCategoryId/
/field
field property=value(shortDescription)
depends=required
  arg0 key=label.shortDescription/
/field
field property=value(percentIncrease)
depends=validwhen
  arg0 key=label.percentIncrease/
  var
var-nametest/var-name
var-value((*this* != null) or
(value(percentDecline) != null))/var-value
  /var
/field
  /form 

The first two for marketCategoryId and
shortDescription work fine, but when I add the 3rd it
gives me an error unexpected token: value.  Does
anyone know how to access a map-backed property in
this conditional part of the validWhen validation?

Thanks for any help
Mark

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: html:messages jstl equivalent

2004-03-23 Thread Joe Germuska
At 12:06 PM + 3/23/04, Pedro Salgado wrote:
html:messages id=error

 ...

/html:messages

  Does anyone know how do I fill the ${???} to have a JSTL equivalent for
the previous html tag?
  c:forEach items='${???}' var='error'

   ...

  /c:forEach
The keys are defined in org.apache.struts.Globals:

org.apache.struts.Globals.ERROR_KEY = org.apache.struts.action.ERROR
org.apache.struts.Globals. MESSAGE_KEY  = 
org.apache.struts.action.ACTION_MESSAGE

Until recently, the messages were always stored in request scope, so

${requestScope['org.apache.struts.action.ERROR']}

In recent nightly builds, the ability to store the messages in the 
session instead was added.

I'm not sure I believe that this is a case where using the JSTL is 
better than using the Struts tags.  It seems to me that leaving the 
coordination inside Struts classes is the way to go.  Also, there is 
no JSTL solution as clean as using the property attribute of 
html:messages to filter to only include messages associated with a 
specific property.

I'm all for people using the JSTL wherever its better, but I'm not 
sure its better here...

Joe

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

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


Claudia Woestheinrich/InfoTL ist außer Haus.

2004-03-23 Thread Claudia Woestheinrich
Ich werde ab  20.03.2004 nicht im Büro sein. Ich kehre zurück am
13.04.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.


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



RE: HELP: applet-to-action anomaly

2004-03-23 Thread w i l l i a m b o y d
...this is how to reproduce the problem:

1) *FIRST* load http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?
areaid=3. you should be taken to the error page.

2) then, load http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp. 
you can see that the user is logged in by the message at the very bottom 
of the page.

3) then click on the Standard Area Page node of the navigation applet on 
the left-hand side of the page. if you've done the steps in the above order, 
then you will have been forwarded to the error page (which isn't suppose to 
happen because you are logged in)...

...also, the applet's Standard Area Page link to the action will also work 
correctly, *BUT ONLY IF* index.jsp is the first page loaded...

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



RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Jignesh Kapadia
Hi ,
 Now today I tried it with the Simple Log and tried to run a very simple APP using 
in WSAD with Struts 1.1 and the Log file generated following error.
 
 
 
 
3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
Web Module: Hello.
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: JSP 1.1 Processor: init
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: SimpleFileServlet: init
[3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: InvokerServlet: init
[3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
LOG]: action: init
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='ApplicationResources', returnNull=true
[3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
Transport http is listening on port 8,080.
[3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
initialize user registry class 
com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

[3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
during security initialization. Exception 
com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.

 
 
 
I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml.  The resoucebundle has already an entry 
in config.xml file.
 
Please help,
Jignesh


Saul Q Yuan [EMAIL PROTECTED] wrote:
From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.

http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html


-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for 

In web.xml file all parameters are proper Except following
config/${module} and rulesets parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.

Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.

Thanks,
Jignesh 


Saul Q Yuan wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just realcing the war files when I upgrade the Struts version.
The error file is attached in e-mail.


Thanks and Regards,
Jignesh

Do you Yahoo!?
Yahoo! Finance Tax Center - File
online. 

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread a s
Hi Jignesh,
When I was upgrading to struts1.1 beta last year, I had some issues.
I did a clean up of the work directory in the Resin Application Server, and 
everything was fine
 
-Aswath

Jignesh Kapadia [EMAIL PROTECTED] wrote:
Hi ,
Now today I tried it with the Simple Log and tried to run a very simple APP using in 
WSAD with Struts 1.1 and the Log file generated following error.




3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
Web Module: Hello.
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: JSP 1.1 Processor: init
[3/23/04 15:58:10:512 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: SimpleFileServlet: init
[3/23/04 15:58:10:528 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: InvokerServlet: init
[3/23/04 15:58:10:684 EST] 26c486ff WebGroup I SRVE0091I: [Servlet 
LOG]: action: init
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, 
config='ApplicationResources', returnNull=true
[3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
Transport http is listening on port 8,080.
[3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
initialize user registry class 
com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

[3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
during security initialization. Exception 
com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.




I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml. The resoucebundle has already an entry in 
config.xml file.

Please help,
Jignesh


Saul Q Yuan wrote:
From the error log, it seems it's looking for the default logger which
comes with jdk1.4. Have you configured to use a logger like log4j, if
you havn't configured one, then Struts will try to use the logger from
jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
The following thread may be helpful.

http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
02092603_04404.html


-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 10:34 PM
To: Struts Users Mailing List
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Well I think my struts-config.xml is proper except 
I dont know what to put for 

In web.xml file all parameters are proper Except following
config/${module} and rulesets parameter . 
My aplication has only one module and I dont know what to put for
RuleSet since I am using th e default one i.e.
org.apache.commons.digester.RuleSet.

Also I have moved the MessageResources has been moved from web.xml to
struts-Config.xml. From the error I had set earlier. I think its failing
in ActionServlet.init(). I am attaching the error file again.

Thanks,
Jignesh 


Saul Q Yuan wrote:

Well, here is a bit longer version of the reply. There are many changes
from Struts 1.0.1 to 1.1, you can find a full description below:

http://jakarta.apache.org/struts/userGuide/release-notes.html

and the configuration changes below.

http://jakarta.apache.org/struts/userGuide/configuration.html


Back to your particular questions, yes, you'll need to define your
Message resouce like the following:

in Struts-config.xml file. 

And Struts1.1 works with JDK1.2 and up. 

HTH,
Saul


- Original Message - 
From: Jignesh Kapadia 
To: Struts Users Mailing List 
Sent: Monday, March 22, 2004 7:52 PM
Subject: RE: Error while upgrading from struts version 1.0 to 1.1


Well,
All the jar files are compiled properly. do we need to add some special
parameter in in Struts-Config.xml file? It seems its looking for some
Message Resource Factory Information. Also does Struts 1.1 work with JDK
1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
2 days now. I created a new application and copied this Struts1.1/jar
file along with the set of Commons.jar file.

It will a good if somebody can help out in this.

Thanks,
Jignesh

Saul Q Yuan wrote:
I think you need to recompile your application against the new
Struts.jar file and other jar files it depends on.

Saul

-Original Message-
From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Error while upgrading from struts version 1.0 to 1.1


Hi ,
I am upgrading my current application from Struts 1.0 to Struts
1.1. The application is working properly with version 1.0. I just copied
the struts 1.1 realted jar files in my web-inf/lib directory. Now when I
restart my application it gives meError while loading Action Servlet.
its failing in Super.init(). Is there anything I need to do other that
just 

applets, sessions, actions

2004-03-23 Thread w i l l i a m b o y d
hi,

please can someone help? i am building a struts 1.1 based web app using 
j2sdk1.4.2  tomcat 4.0.6. i'm using a 3rd-party tree applet for site 
navigation (a constraint specified by the client). if a user does the 
following steps - in *EXACTLY* the following order:


1) *FIRST* load http://www.thefreelancer.net:8080/soa/jsp/enterAreaToRead.do?
areaid=3. you should be taken to the error page.

2) then, load http://www.thefreelancer.net:8080/soa/jsp/mockups/index.jsp. 
you can see that the user is logged in by the message at the very bottom 
of the page. (simulated by instantiating a user been inside a scriptlet and 
placing it in the session)

3) then click on the Standard Area Page node of the navigation applet on 
the left-hand side of the page. if you've done the steps in the  above 
order, then you will have been forwarded to the error page (which  isn't 
suppose to happen because you are logged in).

*IMPORTANT* in order to reproduce the problem i am describing, all the above 
3 steps *MUST* take place in the same browser session and they *MUST* be 
followed in the numbered order above.

the error page that appears in step 1 is meant to happen if the user *IS 
NOT* logged in, so step 1 is fine. if there *IS* a logged in user in the 
session, (which there *IS* after step 2) then the error page should *NOT* be 
appearing in step 3.

the problem is this: if a user's very *FIRST* visit to the site is the 
enterAreaToRead.do action, then - even if the user *IS LOGGED IN* - any 
subsequent attempt to execute that enterAreaToRead.do action from the 
navigation applet results in the enterAreaToRead.do action ignoring the 
logged in user which *HAS* been placed into the session in step 2. there is 
something peculiar happening where it seems like the applet is working with 
one session and the action is working with a totally different session.

*HOWEVER*, if a user's very first visit to the site is the url in step 2, 
then everything works as it should. any ideas? thanks in advance for your 
help.


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



Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
Can you run any example applications from Struts1.1 in your current enviroment, that 
is Webshpere, I think? just try to see if it's an upgrading issue or your application 
server setup issue. If it's an Websphere issue, you may have better luck from the 
Websphere user group.

  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Tuesday, March 23, 2004 7:30 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
   Now today I tried it with the Simple Log and tried to run a very simple APP 
using in WSAD with Struts 1.1 and the Log file generated following error.
   
   
   
   
  3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading 
  Web Module: Hello.
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: JSP 1.1 Processor: init
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: SimpleFileServlet: init
  [3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: InvokerServlet: init
  [3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet 
  LOG]: action: init
  [INFO] PropertyMessageResources - -Initializing, 
  config='org.apache.struts.util.LocalStrings', returnNull=true
  [INFO] PropertyMessageResources - -Initializing, 
  config='org.apache.struts.action.ActionResources', returnNull=true
  [INFO] PropertyMessageResources - -Initializing, 
  config='ApplicationResources', returnNull=true
  [3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I: 
  Transport http is listening on port 8,080.
  [3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to 
  initialize user registry class 
  com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type Windows due to 
exception: Access is denied.

  [3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error 
  during security initialization. Exception 
  com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is denied.

   
   
   
  I think Its not able to read any Property file in struts.jar file. Do we need to do 
any setting in web.xml ot struts-config.xml.  The resoucebundle has already an entry 
in config.xml file.
   
  Please help,
  Jignesh


  Saul Q Yuan [EMAIL PROTECTED] wrote:
  From the error log, it seems it's looking for the default logger which
  comes with jdk1.4. Have you configured to use a logger like log4j, if
  you havn't configured one, then Struts will try to use the logger from
  jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
  The following thread may be helpful.

  http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
  02092603_04404.html


  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 
  Sent: Monday, March 22, 2004 10:34 PM
  To: Struts Users Mailing List
  Subject: Re: Error while upgrading from struts version 1.0 to 1.1


  Well I think my struts-config.xml is proper except 
  I dont know what to put for 

  In web.xml file all parameters are proper Except following
  config/${module} and rulesets parameter . 
  My aplication has only one module and I dont know what to put for
  RuleSet since I am using th e default one i.e.
  org.apache.commons.digester.RuleSet.

  Also I have moved the MessageResources has been moved from web.xml to
  struts-Config.xml. From the error I had set earlier. I think its failing
  in ActionServlet.init(). I am attaching the error file again.

  Thanks,
  Jignesh 


  Saul Q Yuan wrote:

  Well, here is a bit longer version of the reply. There are many changes
  from Struts 1.0.1 to 1.1, you can find a full description below:

  http://jakarta.apache.org/struts/userGuide/release-notes.html

  and the configuration changes below.

  http://jakarta.apache.org/struts/userGuide/configuration.html


  Back to your particular questions, yes, you'll need to define your
  Message resouce like the following:

  in Struts-config.xml file. 

  And Struts1.1 works with JDK1.2 and up. 

  HTH,
  Saul


  - Original Message - 
  From: Jignesh Kapadia 
  To: Struts Users Mailing List 
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
  All the jar files are compiled properly. do we need to add some special
  parameter in in Struts-Config.xml file? It seems its looking for some
  Message Resource Factory Information. Also does Struts 1.1 work with JDK
  1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
  2 days now. I created a new application and copied this Struts1.1/jar
  file along with the set of Commons.jar file.

  It will a good if somebody can help out in this.

  Thanks,
  Jignesh

  Saul Q Yuan wrote:
  I think you need to recompile your application against the new
  Struts.jar file and other jar files it depends on.

  Saul

  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] 

Re: applets, sessions, actions

2004-03-23 Thread w i l l i a m b o y d
p.s. this is where you will find the Standard Area Page action in the 
applet:

The Society
|
+ Groups
|
|_Lorem Ipsum
|
+ BRG
| 
+ PCG
|
+ UMSIG
|
|_ Standard Area Page -- points to action
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum
|
|_ Lorem Ipsum



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



bean:message inside onclick javascript string?

2004-03-23 Thread Craig Berry
I have a webpage on which I do a Javascript popup to confirm a deletion.
The JSP fragment looks like this:

html:submit property=command value=Delete
  onclick=return confirm('Are you sure you want to delete this
paragraph permanently?')/

I would dearly love to replace that fixed text with bean:message
key=confirm.paragraph.delete/, but all my experimentation has not
succeeded in finding a relatively straightforward way to do this.  I'm
using the -el taglibs, if that matters.  Anybody have ideas on an
elegant solution?

-- 
Craig Berry
Principal Architect and Technical Manager
PortBlue
(310) 566-7546
 

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



Re: bean:message inside onclick javascript string?

2004-03-23 Thread Saul Q Yuan
Try move the onclick javascript function out, something like this:


script language=javascript

function verify() {
var msg = beam:message key=confirm.paragraph.delete /;

return confirm(msg);
}
/script


html:submit property=command value=Delete
  onclick=return verify();/


Saul
  - Original Message - 
  From: Craig Berry 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, March 23, 2004 9:46 PM
  Subject: bean:message inside onclick javascript string?


  I have a webpage on which I do a Javascript popup to confirm a deletion.
  The JSP fragment looks like this:

  html:submit property=command value=Delete
onclick=return confirm('Are you sure you want to delete this
  paragraph permanently?')/

  I would dearly love to replace that fixed text with bean:message
  key=confirm.paragraph.delete/, but all my experimentation has not
  succeeded in finding a relatively straightforward way to do this.  I'm
  using the -el taglibs, if that matters.  Anybody have ideas on an
  elegant solution?

  -- 
  Craig Berry
  Principal Architect and Technical Manager
  PortBlue
  (310) 566-7546
   

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


Form's property, String or not?

2004-03-23 Thread Xuemin Guan
Hi, dear all, very new to Struts. Just a simple question:

As a best practice of Struts,  should I declare formebeans'
properties all as String, or the actual type (such as BigDecimal,
int, float, and double etc.)

Thanks,

Xuemin


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



RE: Form's property, String or not?

2004-03-23 Thread Andrew Hill
For actionforms you should make them all strings. Certainly anything that
allows for text entry in the UI should be made a string even if it is
intended for numeric input. (For checkboxes and such like its less important
though Id still recommend using strings for them)

This allows you to return the user to the form when validation fails with
the input they entered preserved - so if they type One instead of 1 the
bad value will be preserved for them to correct on return to the page.

If they type text into a field whose actionform property is numeric you can
have problems handling it. I cant remember if it causes an exception or is
just converted implicitly to the value 0 - but either way its a problem...

-Original Message-
From: Xuemin Guan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 March 2004 11:30
To: Struts Users Mailing List
Subject: Form's property, String or not?


Hi, dear all, very new to Struts. Just a simple question:

As a best practice of Struts,  should I declare formebeans'
properties all as String, or the actual type (such as BigDecimal,
int, float, and double etc.)

Thanks,

Xuemin


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



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



Re: Form's property, String or not?

2004-03-23 Thread Xuemin Guan
Thanks, Andrew, it explains very well.

Xuemin

- Original Message - 
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 12:33 PM
Subject: RE: Form's property, String or not?


 For actionforms you should make them all strings. Certainly anything that
 allows for text entry in the UI should be made a string even if it is
 intended for numeric input. (For checkboxes and such like its less
important
 though Id still recommend using strings for them)

 This allows you to return the user to the form when validation fails with
 the input they entered preserved - so if they type One instead of 1
the
 bad value will be preserved for them to correct on return to the page.

 If they type text into a field whose actionform property is numeric you
can
 have problems handling it. I cant remember if it causes an exception or is
 just converted implicitly to the value 0 - but either way its a problem...

 -Original Message-
 From: Xuemin Guan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 24 March 2004 11:30
 To: Struts Users Mailing List
 Subject: Form's property, String or not?


 Hi, dear all, very new to Struts. Just a simple question:

 As a best practice of Struts,  should I declare formebeans'
 properties all as String, or the actual type (such as BigDecimal,
 int, float, and double etc.)

 Thanks,

 Xuemin


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



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




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



Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Martin Gainty
Saul:
Run websphere as root or Administrator in Windows
Regards,
Martin
- Original Message -
From: Saul Q Yuan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 9:05 PM
Subject: Re: Error while upgrading from struts version 1.0 to 1.1


Can you run any example applications from Struts1.1 in your current
enviroment, that is Webshpere, I think? just try to see if it's an upgrading
issue or your application server setup issue. If it's an Websphere issue,
you may have better luck from the Websphere user group.

  - Original Message -
  From: Jignesh Kapadia
  To: Struts Users Mailing List
  Sent: Tuesday, March 23, 2004 7:30 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Hi ,
   Now today I tried it with the Simple Log and tried to run a very
simple APP using in WSAD with Struts 1.1 and the Log file generated
following error.




  3/23/04 15:58:10:184 EST] 26c486ff ServletEngine A SRVE0169I: Loading
  Web Module: Hello.
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: JSP 1.1 Processor: init
  [3/23/04 15:58:10:512 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: SimpleFileServlet: init
  [3/23/04 15:58:10:528 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: InvokerServlet: init
  [3/23/04 15:58:10:684 EST] 26c486ff WebGroup  I SRVE0091I: [Servlet
  LOG]: action: init
  [INFO] PropertyMessageResources - -Initializing,
  config='org.apache.struts.util.LocalStrings', returnNull=true
  [INFO] PropertyMessageResources - -Initializing,
  config='org.apache.struts.action.ActionResources', returnNull=true
  [INFO] PropertyMessageResources - -Initializing,
  config='ApplicationResources', returnNull=true
  [3/23/04 15:58:11:496 EST] 26c486ff HttpTransport A SRVE0171I:
  Transport http is listening on port 8,080.
  [3/23/04 15:58:11:496 EST] 26c486ff WSRegistryImp X Unable to
  initialize user registry class
  com.ibm.ejs.security.registry.nt.NTLocalDomainRegistryImpl for type
Windows due to exception: Access is denied.

  [3/23/04 15:58:11:496 EST] 26c486ff StandardIniti W SECJ0007E: Error
  during security initialization. Exception
  com.ibm.ejs.security.registry.RegistryErrorException: Windows:Access is
denied.




  I think Its not able to read any Property file in struts.jar file. Do we
need to do any setting in web.xml ot struts-config.xml.  The resoucebundle
has already an entry in config.xml file.

  Please help,
  Jignesh


  Saul Q Yuan [EMAIL PROTECTED] wrote:
  From the error log, it seems it's looking for the default logger which
  comes with jdk1.4. Have you configured to use a logger like log4j, if
  you havn't configured one, then Struts will try to use the logger from
  jdk1.4. So, try to configure log4j, or use jdk1.4 to see how it goes.
  The following thread may be helpful.

  http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0209/tmct-020998/tmct
  02092603_04404.html


  -Original Message-
  From: Jignesh Kapadia [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 10:34 PM
  To: Struts Users Mailing List
  Subject: Re: Error while upgrading from struts version 1.0 to 1.1


  Well I think my struts-config.xml is proper except
  I dont know what to put for

  In web.xml file all parameters are proper Except following
  config/${module} and rulesets parameter .
  My aplication has only one module and I dont know what to put for
  RuleSet since I am using th e default one i.e.
  org.apache.commons.digester.RuleSet.

  Also I have moved the MessageResources has been moved from web.xml to
  struts-Config.xml. From the error I had set earlier. I think its failing
  in ActionServlet.init(). I am attaching the error file again.

  Thanks,
  Jignesh


  Saul Q Yuan wrote:

  Well, here is a bit longer version of the reply. There are many changes
  from Struts 1.0.1 to 1.1, you can find a full description below:

  http://jakarta.apache.org/struts/userGuide/release-notes.html

  and the configuration changes below.

  http://jakarta.apache.org/struts/userGuide/configuration.html


  Back to your particular questions, yes, you'll need to define your
  Message resouce like the following:

  in Struts-config.xml file.

  And Struts1.1 works with JDK1.2 and up.

  HTH,
  Saul


  - Original Message -
  From: Jignesh Kapadia
  To: Struts Users Mailing List
  Sent: Monday, March 22, 2004 7:52 PM
  Subject: RE: Error while upgrading from struts version 1.0 to 1.1


  Well,
  All the jar files are compiled properly. do we need to add some special
  parameter in in Struts-Config.xml file? It seems its looking for some
  Message Resource Factory Information. Also does Struts 1.1 work with JDK
  1.3.* or we need to have JDK 1.4*? I am struggling with this for almost
  2 days now. I created a new application and copied this Struts1.1/jar
  file along with the set of Commons.jar file.

  It will a good if somebody can help out in this.

  Thanks,
  

Retrieve a Variable From the DynaActionForm

2004-03-23 Thread Caroline Jen
In my Struts application, postForm is of the
DynaActionForm type:
DynaActionForm postForm = ( DynaActionForm )form;

Later on, I want to save one of the fields receiver,
which is a String, in the request context. Which is
the following is the correct syntax?

request.setAttribute( Receiver, postForm.get(
receiver) );

Or

request.setAttribute( Receiver, ( String
)postForm.get( receiver) ); 



__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



alternate resource bundle

2004-03-23 Thread Otto, Frank
Hi,

I have defined an alternate resource bundle in my struts-config.xml:

message-resources parameter=AlternateResources null=false key=alternate/

In element global exceptions I have some Exceptions. One of this should use the bundle 
alternate, but it was ignored.

global-exceptions
exception
  key=global.error.login.invalidlogin
  bundle=alternate
  path=/action/welcome
  scope=request
  type=test.InvalidLoginException /
...

Has someone an idea?


Regards,

Frank

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



File upload location

2004-03-23 Thread Deepak

Hi,
What is the default location of a file uploaded using html:file ? Can I upload 
it to one of the folders in my context path ?

thanks
Deepak


Action Not working/getting called

2004-03-23 Thread Nilesh
I am a struts newbie, but have done a few forms in Struts.
In my current application, for a particular form when I click the Submit button the 
form gets submitted to itself, and all the textboxes I had filled before submitting 
get cleared. It doesnot go to VendorEntry.do
 
I am using DBCP to connect to mySQL

Can anybody please help me out. I have already invested a lot of time in it.

The VendorEntryAction.java   VendorEntryForm.java have been successfuly compiled 
n I am ready with these classes



following is a snap from vendorEntry.jsp - the 1 which has the problem

html:form action=action input=/vendorEntry.jsp name=vendorEntryForm
   path=/VendorEntry type=vendor.VendorEntryAction
   forward name=detailsentered path=/detailsenteredsuccessfully.jsp/
   forward name=alreadyexists path=/alreadyreg.jsp/
   forward name=cudnotinsert path=/erroroccured.jsp/
  /action
  name=vendorEntryForm
  type=vendor.VendorEntryForm
form name=form1 method=post action=
---
--- text boxes
---n Submit button
/form
/html:form


Entry in My struts-config.xml for this jsp looks like this...

form-beans
---other entries
---
 form-bean name=vendorEntryForm type=vendor.VendorEntryForm/
/form-beans

action input=/vendorEntry.jsp name=vendorEntryForm
   path=/VendorEntry type=vendor.VendorEntryAction
   forward name=detailsentered path=/detailsenteredsuccessfully.jsp/
   forward name=alreadyexists path=/alreadyreg.jsp/
   forward name=cudnotinsert path=/erroroccured.jsp/
/action


Please tell me the probabale reasons. 

Thanks in advance.

Regards,
Nilesh.


Re: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException

2004-03-23 Thread Bala S Subramanian
Hi ,

   I am not able to find a SAX related Jar Files. I would like to get a 
help from any one of you guys in this group. Please give me a some input 
on this.

thanks
Bala
 




Bala S Subramanian/India/[EMAIL PROTECTED]
03/22/2004 07:08 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 

Hi Chris,

Previously, i was using jdk 1.3 and I got Class not Found 
Exception (org/xml/sax/SAXParseException). And, I replaced jdk 1.3 with 
jdk 1.4 as per group message,then I got the UnsupportedException. 

I would like to know whether I can download the SAX Parser jar 
irrespective of JDK Versions. Please guide me to get the things done fast.

thanks
Bala





Christoph Kutzinski [EMAIL PROTECTED]
03/22/2004 07:00 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException

 

Bala S Subramanian wrote:
 Hi,
 
   I included the rt.jar which comes along with J2SE 1.4.2 but am getting 


 unsupported version error
 
 java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException 
 (Unsupported major.minor version 48.0)

This means probably that you try to run Struts with an 1.3 or lower JVM.
JVMs prior to 1.4 cannot use 1.4.2 JARs (if they are compiled with 
target 1.4 what the rt.jar surely is)


HTH
Christoph


PS: Why isn't anyone in this mailing list able to correctly reply to 
threaded messages? I'm often seeing messages not correctly appended to 
their predecessors.

 
 
 
 [EMAIL PROTECTED]
 03/22/2004 06:20 PM
 Please respond to Struts Users Mailing List
 
 
 To: Struts Users Mailing List 
[EMAIL PROTECTED]
 cc: 
 Subject:RE: java.lang.NoClassDefFoundError: 
org/xml/sax/SAXParseException
 
 
 
 
 
 SAX is part of the J2SE 1.4.2, see
 http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html
 
 I am not sure which sdk you have and may have to get relevant jar file. 
 More
 info is available at http://java.sun.com/xml/ and http://www.saxproject.org/.
 
 HTH
 Anuj
 
 
 
 
 
 Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM
 
 Please respond to Struts Users Mailing List 
 [EMAIL PROTECTED]
 
 To:   Struts Users Mailing List [EMAIL PROTECTED]
 cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
 
 Subject:  RE: java.lang.NoClassDefFoundError: 
 org/xml/sax/SAXParseException
 
 
 
 Hi,
 
I dont have problem in accessing the url, but it says Class not 
founf
 exception. I would like to know from where I can get the SAX jar file 
so
 that I can place in Lib directory.
 
 thanks
 Bala
 
 
 
 
 
 
 Ashutosh Satyam [EMAIL PROTECTED]
 03/22/2004 05:34 PM
 Please respond to Struts Users Mailing List
 
 
 To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 cc:
 Subject:RE: java.lang.NoClassDefFoundError:
 org/xml/sax/SAXParseException
 
 
 
 If your application is deployed as a default ROOT application,
 then Your URL should be only http://localhost/login.do
 
 I could make out only this much. If this helps fine, else
 provide some more information.
 
 - Ashutosh Satyam
 
 -Original Message-
 From: Bala S Subramanian [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 22, 2004 5:25 PM
 To: Struts Users Mailing List
 Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
 
 
 Hi ,
 
   I tried to call the action classes http://localhost/context
 rootlogin.do, am getting the following exception
 
 java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
 at
 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 
com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:287)
 
 at
 
com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:81)
 
 at
 
com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)
 
 at
 
com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)
 
 at
 com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)