Collection problem - for dynamic content with MapBackedForms

2004-01-16 Thread Oliver Thiel
Hi all!
 
 
I still try to implement a ,real' dynamic form. So far I can build the
Form dynamically. Perform the validation dynamically. All changes can be
made by adding or deleting a database field. So you don't have to edit
the jsp or java files to change the form. But at the moment this things
are still static:
 
MESSAGE="KEY"
TYPE="TEXT" 
MAXLENGTH="20" 
CLASS="FELD"
 


  :
  )" value=""
CLASS="FELD">   

  
 
I tried to implement Maps which keep the values, but I did not manage to
iterate them properly. I also tried to use a list of maps which kept the
values, but there I had problems to define the Set- and Get- Methods
properly. 
 
 
The values I need to store are:
MESSAGE="KEY"
NAME="VALUE"   (Get-/Set-)
TYPE="TEXT" 
MAXLENGTH="20" 
CLASS="FELD"
 
 
Has any one a good suggestion which Collection I could use? And or has
someone done something comparable and can provide my some sample code? 
 
 
Have a nice weekend
Oliver
 


RE: Disable validator framework

2004-01-16 Thread Hunt, Steve
Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;



Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: Disable validator framework

2004-01-16 Thread rahul.chaudhary

How tough will it be to modify the code so as to have individual action for each 
button.Well, if you can then thats the best way.Also will help in workflow (not sure 
whether thats part of the project requirement).
Rahul

-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;



Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: Disable validator framework

2004-01-16 Thread Andriy Ruzhevych
You can try to use the page attribute of the field element.
"Only fields with a page attribute value that is equal to or
less than the value of the page property on the form JavaBean are
processed. This is useful when using a "wizard" approach to
completing a large form, to ensure that a page is not skipped"

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 8:34 AM
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


__ NOD32 1.596 (20040109) Information __

This message was checked by NOD32 antivirus system.
http://www.nod32.com



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



weird Tomcat prob

2004-01-16 Thread Claire Wall
Hi,

I have a struts application which i am deploying to another server which is running 
Tomcat 4.1.29 via a WAR file. The application works fine except for one problem:

I have a servlet which loads on start-up via the following declaration in web.xml:

  
hasAttachments
HasAttachmentsServlet
5
  


It loads up fine - the servlet is found as it is logging to the log file that it is 
loaded. However, when I try to access this servlet it does not find the servlet at 
all. The servlet has a doGet() method which just passes back some text to be 
outputted. I call it like this: http://localhost:8080/CRM/servlet/hasAttachments. I 
get the following error message:


org.apache.jasper.JasperException: Exception reading resource 
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4E4980AF8092618AF?context=12&upload=false:
 java.io.FileNotFoundException: 
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4E4980AF8092618AF?context=12&upload=false
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
 at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
 at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
 at org.apache.jsp.identification_jsp._jspService(identification_jsp.java:278)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
 at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.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:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(Standard

RE: Disable validator framework

2004-01-16 Thread Mohan Radhakrishnan
Hi,

 What if it is not a 'submit' ?

Mine is like this



Thanks
Mohan
-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;



Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


-
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: weird Tomcat prob

2004-01-16 Thread Max Cooper
My guess is that it is finding and executing the servlet, but that something
goes wrong while the servlet is being processed. It looks like it drops down
into some JSPs, and that seems to be the source of the exception.

We need to know more about what that servlet does. I see Struts classes in
the stack trace. It also seems like there might be an 'identification.jsp'
file that includes an 'incAttachment.jsp' file. Can you look at line 120 of
the incAttachment_jsp.java file that Tomcat generates when it transforms the
JSP file into a Java class? It might have comments that tell you what the
line number in the incAttachment.jsp file is causing the exception.

-Max

- Original Message - 
From: "Claire Wall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 1:22 AM
Subject: weird Tomcat prob


Hi,

I have a struts application which i am deploying to another server which is
running Tomcat 4.1.29 via a WAR file. The application works fine except for
one problem:

I have a servlet which loads on start-up via the following declaration in
web.xml:

  
hasAttachments
HasAttachmentsServlet
5
  


It loads up fine - the servlet is found as it is logging to the log file
that it is loaded. However, when I try to access this servlet it does not
find the servlet at all. The servlet has a doGet() method which just passes
back some text to be outputted. I call it like this:
http://localhost:8080/CRM/servlet/hasAttachments. I get the following error
message:


org.apache.jasper.JasperException: Exception reading resource
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4E4980AF8092618AF?context=12&upload=false:
java.io.FileNotFoundException:
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4E4980AF8092618AF?context=12&upload=false
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
 at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
 at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
 at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
 at
org.apache.jsp.identification_jsp._jspService(identification_jsp.java:278)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
 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:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveC

Re: weird Tomcat prob

2004-01-16 Thread Claire Wall
i've just this minute fixed the problem - the servlet mapping for servlets
(/servlet/) was commented out in the web.xml file in the Tomcat conf folder
for some reason - this must be what it is like when Tomcat is first
installed - knew it would be something small and annoying.

cheers :)

claire


- Original Message -
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 10:08 AM
Subject: Re: weird Tomcat prob


> My guess is that it is finding and executing the servlet, but that
something
> goes wrong while the servlet is being processed. It looks like it drops
down
> into some JSPs, and that seems to be the source of the exception.
>
> We need to know more about what that servlet does. I see Struts classes in
> the stack trace. It also seems like there might be an 'identification.jsp'
> file that includes an 'incAttachment.jsp' file. Can you look at line 120
of
> the incAttachment_jsp.java file that Tomcat generates when it transforms
the
> JSP file into a Java class? It might have comments that tell you what the
> line number in the incAttachment.jsp file is causing the exception.
>
> -Max
>
> - Original Message -
> From: "Claire Wall" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, January 16, 2004 1:22 AM
> Subject: weird Tomcat prob
>
>
> Hi,
>
> I have a struts application which i am deploying to another server which
is
> running Tomcat 4.1.29 via a WAR file. The application works fine except
for
> one problem:
>
> I have a servlet which loads on start-up via the following declaration in
> web.xml:
>
>   
> hasAttachments
> HasAttachmentsServlet
> 5
>   
>
>
> It loads up fine - the servlet is found as it is logging to the log file
> that it is loaded. However, when I try to access this servlet it does not
> find the servlet at all. The servlet has a doGet() method which just
passes
> back some text to be outputted. I call it like this:
> http://localhost:8080/CRM/servlet/hasAttachments. I get the following
error
> message:
>
>
> org.apache.jasper.JasperException: Exception reading resource
>
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4
E4980AF8092618AF?context=12&upload=false:
> java.io.FileNotFoundException:
>
http://localhost:8080/CRM/servlet/hasAttachments;jsessionid=B0636FAB02DF85F4
E4980AF8092618AF?context=12&upload=false
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 54)
>  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:684)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
> er.java:575)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
> .java:498)
>  at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
> 22)
>  at
> org.apache.jsp.identification_jsp._jspService(identification_jsp.java:278)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 10)
>  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:684)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
> er.java:432)
>  at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
> .java:356)
>  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:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.core.StandardP

Unable to open text file

2004-01-16 Thread Ravi Kulkarni
Hi Everyone,

In my application we have an feature for downloading search results.

I am reading the contents from file and writing into response using PrintWriter,
in my action.
I have set the content type and headers as follows :
.
 httpservletresponse.setContentType("application/x-download;charset=UTF-8");
 httpservletresponse.setHeader("Content-Disposition", "attachment; filename=" +
"product_search.txt");

..

When I select download button from screen, a dialog window open to download the
file. If I choose to Open the file,another dialog box appears. If I choose to
open, then notepad application opens with blank page with message cannot open
file ..

Can anyone help me how to set the parameters right, to open the file and save as
properly.

Did someone face this problem? I am using IE6


Thanks in advance,

Kulkarni.


validation problem

2004-01-16 Thread Kelly Goedert
Hi,

I'm trying to use the validator in a form that is used in as login form 
for authentication.
And the fields are not being checked.

I have this mapping on struts-config.xml


   
   
   
   
   
   

   
   
   
   
In the validation.xml I have this:


   
   
   
   depends="required">
   
   
   
   depends="required">
   
   
   
  


Why the fields are not checked??

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


RE: validation problem

2004-01-16 Thread Matthias Wessendorf
hi kelly,

did you integrate it into
struts-config?

-->





greetings

-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:25 AM
To: Struts Users Mailing List
Subject: validation problem


Hi,

I'm trying to use the validator in a form that is used in as login form 
for authentication.
And the fields are not being checked.

I have this mapping on struts-config.xml














In the validation.xml I have this:











   


Why the fields are not checked??


-
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: Disable validator framework

2004-01-16 Thread Hunt, Steve
you could rewrite it like this

Task 


-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 09:28
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Hi,

 What if it is not a 'submit' ?

Mine is like this



Thanks
Mohan
-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;



Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


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



validating more formbeans at one time

2004-01-16 Thread Bubeník Miroslav
Hi,
I'm doing something like "colection forms". That means, that user has some forms (more 
than 2) and goes through then. From each form he can submit data from all colection 
forms to the business logic (EJB).
Problem is, that he can skip some form, which has invalid fields. Struts can via 
struts-config with validation="true" validate current submitted form. But I need after 
submit validate not just current form but also formbeans stored in session (keys, 
under which are forms in session I know).
How can I do that?
 
miro


Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app. 
The StrutsStudio uses Ant to build the WAR file. If I deploy my app 
in Tomcat anything works fine, but I am not able to use my WAR file 
within the WAServer from IBM. There I always get a massage that 
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver
 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



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



Re: validation problem

2004-01-16 Thread Kelly Goedert
Yes I did. It is exactly like your application.

Matthias Wessendorf wrote:

hi kelly,

did you integrate it into
struts-config?
-->




greetings

-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:25 AM
To: Struts Users Mailing List
Subject: validation problem

Hi,

I'm trying to use the validator in a form that is used in as login form 
for authentication.
And the fields are not being checked.

I have this mapping on struts-config.xml


   
   
   
   
   
   

   
   
   
   
In the validation.xml I have this:


   
   
   
   depends="required">
   
   
   
   depends="required">
   
   
   
  


Why the fields are not checked??

-
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: Disable validator framework

2004-01-16 Thread Patrick Cheng
If you want to do validation conditionally, you can disable validation
in struts-config, and call 'form.validate' explicitly in the Action
class.(base on your condition)
About the 'page' attribute, what I don't understand is, how does struts
know which fields are in page 1, which fields are in page 2,3,4..., in
order to do the validation for the current+previous pages only? 

Rgds,
Patrick.

-Original Message-
From: Andriy Ruzhevych [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 4:50 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Disable validator framework


You can try to use the page attribute of the field element. "Only fields
with a page attribute value that is equal to or less than the value of
the page property on the form JavaBean are processed. This is useful
when using a "wizard" approach to completing a large form, to ensure
that a page is not skipped"

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 8:34 AM
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a
popup action associated with one button on the form. When the user
clicks on this a particular method in the action is called but I don't
want to validate the ActionForm because the main form is not submitted.
There are other buttons that submit the form and I need a selective
validator framework.

   I know that it is possible if I were to write my own validate()
method by checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then
I have to abandon the validator.

Appreciate ideas.
Mohan


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


__ NOD32 1.596 (20040109) Information __

This message was checked by NOD32 antivirus system. http://www.nod32.com



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


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



RE: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread Jaap van der Molen


Out of the box, WAS wants an EAR file (Enterprise Application aRchive) and
not a WAR file. You could create a new 'default' EAR project and add the web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do you
use a standalone WAS server. The Admin tool should help you in the latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



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



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



RE: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread Srivastava, Ravi Prakash
Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat --> IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive) and
not a WAR file. You could create a new 'default' EAR project and add the web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do you
use a standalone WAS server. The Admin tool should help you in the latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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



RE: validation problem

2004-01-16 Thread Matthias Wessendorf
what is about

name="loginForm"

instead:
name = "loginForm"
(as action.-attribute)?

but can´t be... ?!?



-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:41 AM
To: Struts Users Mailing List
Subject: Re: validation problem


Yes I did. It is exactly like your application.

Matthias Wessendorf wrote:

>hi kelly,
>
>did you integrate it into
>struts-config?
>
>-->
>
>   
>  property="pathnames"
>   
>value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   
>
>greetings
>
>-Original Message-
>From: Kelly Goedert [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 16, 2004 11:25 AM
>To: Struts Users Mailing List
>Subject: validation problem
>
>
>Hi,
>
>I'm trying to use the validator in a form that is used in as login form
>for authentication.
>And the fields are not being checked.
>
>I have this mapping on struts-config.xml
>
>
>
>type="org.apache.struts.validator.DynaValidatorForm">
>
>
>
>
>
>type="LoginAction"
>name = "loginForm"
>scope="request"
>input="/login.jsp"
>validate="true">
>name="continue"
>path="/pages/principal.jsp"/>
>name="erro"
>path="/login.jsp"/>
>
>
>In the validation.xml I have this:
>
>
>
>
>depends="required">
>
>
>depends="required">
>
>
>
>   
>
>
>Why the fields are not checked??
>
>
>-
>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: validation problem

2004-01-16 Thread Kelly Goedert
I'm sorry, I didn't get what you mean... could you explain?

Matthias Wessendorf wrote:

what is about

name="loginForm"

instead:
name = "loginForm"
(as action.-attribute)?
but can´t be... ?!?



-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:41 AM
To: Struts Users Mailing List
Subject: Re: validation problem

Yes I did. It is exactly like your application.

Matthias Wessendorf wrote:

 

hi kelly,

did you integrate it into
struts-config?
-->

	
   

className="org.apache.struts.validator.ValidatorPlugIn">
 



greetings

-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:25 AM
To: Struts Users Mailing List
Subject: validation problem
Hi,

I'm trying to use the validator in a form that is used in as login form
for authentication.
And the fields are not being checked.
I have this mapping on struts-config.xml


  
  
  
  
  
  
  
  
  
  
In the validation.xml I have this:


  
  
  
  depends="required">
  
  
  
  depends="required">
  
  
  
 


Why the fields are not checked??

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


   



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



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


Re: validation problem

2004-01-16 Thread Eric C
Shouldn't your formbean type point to the actual class loginForm instead of
"org.apache.struts.validator.DynaValidatorForm", which i believe should be
in the bean code (bean extends DynaValidatorForm) ?


- Original Message -
From: "Kelly Goedert" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 11:24 AM
Subject: validation problem


> Hi,
>
> I'm trying to use the validator in a form that is used in as login form
> for authentication.
> And the fields are not being checked.
>
> I have this mapping on struts-config.xml
>
> 
> 
>  type="org.apache.struts.validator.DynaValidatorForm">
> 
> 
> 
> 
>
>  type="LoginAction"
> name = "loginForm"
> scope="request"
> input="/login.jsp"
> validate="true">
>  name="continue"
> path="/pages/principal.jsp"/>
>  name="erro"
> path="/login.jsp"/>
> 
>
> In the validation.xml I have this:
>
> 
> 
> 
>  depends="required">
> 
> 
>  depends="required">
> 
> 
> 
> 
> 
>
> Why the fields are not checked??
>
>
> -
> 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: validation problem

2004-01-16 Thread Matthias Wessendorf
mmm strange :-)

in your action
the is a blank
name = "loginForm"


try name="loginForm"


okay you have DynaValidatorForm
not DynaValidatorActionForm
(it´s sometimes not clear (the differents)...)

and you have

  

and NOT! name="/login"
(what is needed for DynaValodatorActionForm...




so please try to create an own bean
which extends DynaValidatorForm
and in its validator()
do some debug-output
(for seeing, validator-framework works...)


greetings

-Original Message-
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 12:08 PM
To: Struts Users Mailing List
Subject: Re: validation problem


I'm sorry, I didn't get what you mean... could you explain?

Matthias Wessendorf wrote:

>what is about
>
>name="loginForm"
>
>instead:
>name = "loginForm"
>(as action.-attribute)?
>
>but can´t be... ?!?
>
>
>
>-Original Message-
>From: Kelly Goedert [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 16, 2004 11:41 AM
>To: Struts Users Mailing List
>Subject: Re: validation problem
>
>
>Yes I did. It is exactly like your application.
>
>Matthias Wessendorf wrote:
>
>  
>
>>hi kelly,
>>
>>did you integrate it into
>>struts-config?
>>
>>-->
>>
>>  >
>>
>className="org.apache.struts.validator.ValidatorPlugIn">
>  
>
>>  >  property="pathnames"
>>  
>>value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>>  
>>
>>greetings
>>
>>-Original Message-
>>From: Kelly Goedert [mailto:[EMAIL PROTECTED]
>>Sent: Friday, January 16, 2004 11:25 AM
>>To: Struts Users Mailing List
>>Subject: validation problem
>>
>>
>>Hi,
>>
>>I'm trying to use the validator in a form that is used in as login 
>>form for authentication. And the fields are not being checked.
>>
>>I have this mapping on struts-config.xml
>>
>>
>>   
>>   >type="org.apache.struts.validator.DynaValidatorForm">
>>   
>>   
>>   
>>   
>>
>>   >   type="LoginAction"
>>   name = "loginForm"
>>   scope="request"
>>   input="/login.jsp"
>>   validate="true">
>>   >   name="continue"
>>   path="/pages/principal.jsp"/>
>>   >   name="erro"
>>   path="/login.jsp"/>
>>   
>>
>>In the validation.xml I have this:
>>
>>
>>   
>>   
>>   >   depends="required">
>>   
>>   
>>   >   depends="required">
>>   
>>   
>>   
>>  
>>
>>
>>Why the fields are not checked??
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>>
>>
>>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>



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


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



Session Problem

2004-01-16 Thread Parag Pattewar
Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk values
which are not applicable for that session , but will be applicable for the
session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



Ling Tag client

2004-01-16 Thread Renato Romano
I'm trying to define a Tag that does some work, and defines a link to
some resource. To define this link I was trying to use the struts
 tag in this way:

LinkTag linkTag = new LinkTag();
linkTag.setPageContext(pageContext);
linkTag.setHref("http://myhost/mypage";);
linkTag.doStartTag();
try
{
pageContext.getOut().print("Go to myHost");
}
catch (IOException e)
{
e.printStackTrace();
return SKIP_PAGE;
}
linkTag.doEndTag();
return SKIP_BODY;

Is this the correct way to utilize an external Tag definition ??
Thanks


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



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



RE: Session Problem

2004-01-16 Thread Andrew Hill
On the same machine? Rather sounds like its the same session.
Im not sure about IE6, but as I recall, IE5 will share its cookies between
the various windows if cookies are enabled. If cookies are disabled then url
writing takes over (asuming youve made sure your links are re-written by
using the appropriate tags) which means they shouldlnt share sessions if
opened seperately. You could test this theory by disabling cookies in your
browser and see if it makes a difference.

Put it a log statement somewhere to log the sessionId and compare the
results for both the windows to see if it is indeed a different session, or
if the second window causes the first window to end up in the second's
session.


-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:17
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk values
which are not applicable for that session , but will be applicable for the
session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



Uploading File

2004-01-16 Thread Allistair Crossley
Hi Guys,

Not explicity Struts related but this error is happening in my Struts Action and 
someone may have come across it..

Basically I am using Commons File Uploader. 

If I post a file upload to Tomcat directly, e.g http://server:8080/upload.do it works 
fine

If I post a file through our IIS -> JK2 -> Tomcat method, e.g http://server/upload.do 
it fails with a "Stream terminated unexpectedly".

The code below is what I am doing - this is not at fault .. it seems to be going 
through IIS that is killing my upload..

if (FileUpload.isMultipartContent(request)) {
  DiskFileUpload upload = new DiskFileUpload();

  List items = null;
  try {
logger.info("parsing multipart form request");
items = upload.parseRequest(request);
  } catch (FileUploadException fuE) {
logger.error(fuE.getMessage());
break DO_CHECKIN;
}


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Ling Tag client

2004-01-16 Thread Andrew Hill
Im not a JSP expert but I think you might be 'playing with fire' on that
one.
btw: Does it actually work or youve not tried it yet?

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:37
To: 'Struts Users Mailing List'
Subject: Ling Tag client


I'm trying to define a Tag that does some work, and defines a link to
some resource. To define this link I was trying to use the struts
 tag in this way:

LinkTag linkTag = new LinkTag();
linkTag.setPageContext(pageContext);
linkTag.setHref("http://myhost/mypage";);
linkTag.doStartTag();
try
{
pageContext.getOut().print("Go to myHost");
}
catch (IOException e)
{
e.printStackTrace();
return SKIP_PAGE;
}
linkTag.doEndTag();
return SKIP_BODY;

Is this the correct way to utilize an external Tag definition ??
Thanks


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



-
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: Disable validator framework

2004-01-16 Thread Andriy Ruzhevych
the first you must add the page attribute in your form bean

  
  
  
  


and change validation.xml like
  
 

 
 

 
  

in this case when page=1 then only calculationType validate, when page=2
then calculationType and isDecret validate.
when page=n (fields from page attr page=0..n validate)

-Original Message-
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 12:49 PM
To: Struts Users Mailing List
Subject: RE: Disable validator framework


If you want to do validation conditionally, you can disable validation
in struts-config, and call 'form.validate' explicitly in the Action
class.(base on your condition)
About the 'page' attribute, what I don't understand is, how does struts
know which fields are in page 1, which fields are in page 2,3,4..., in
order to do the validation for the current+previous pages only?

Rgds,
Patrick.

-Original Message-
From: Andriy Ruzhevych [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:50 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Disable validator framework


You can try to use the page attribute of the field element. "Only fields
with a page attribute value that is equal to or less than the value of
the page property on the form JavaBean are processed. This is useful
when using a "wizard" approach to completing a large form, to ensure
that a page is not skipped"

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 8:34 AM
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a
popup action associated with one button on the form. When the user
clicks on this a particular method in the action is called but I don't
want to validate the ActionForm because the main form is not submitted.
There are other buttons that submit the form and I need a selective
validator framework.

   I know that it is possible if I were to write my own validate()
method by checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then
I have to abandon the validator.

Appreciate ideas.
Mohan


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


__ NOD32 1.596 (20040109) Information __

This message was checked by NOD32 antivirus system. http://www.nod32.com



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


__ NOD32 1.596 (20040109) Information __

This message was checked by NOD32 antivirus system.
http://www.nod32.com



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



RE: Session Problem

2004-01-16 Thread Andrew Hill

How do I make sure the session on both the browsers will be different other
than URL Rewriting.


This I do not know. :-(
You can take a look through all the browser options and see if there is
anything to make it associate cookies only with a specific window, but I
would be quite surprised if there is such an option. I suspect in the
absense of url rewriting you will need to use either different machines for
each browser, or a different browser (ie open second window in mozilla or
something). Hopefully Im wrong on that and someone else on this list has a
better idea!

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:31
To: [EMAIL PROTECTED]
Subject: RE: Session Problem


Hi

I tried to use URL rewriting explicetly for session tracking, unfortunately
I wont be able to use this because Its not been guaranteed in the code is
been written using  always for the links.
As both the browsers sessions are using only the same cookies, so I think
the problem is because of that.
How do I make sure the session on both the browsers will be different other
than URL Rewriting.

Thanks
Parag

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:51 PM
To: Struts Users Mailing List
Subject: RE: Session Problem


On the same machine? Rather sounds like its the same session.
Im not sure about IE6, but as I recall, IE5 will share its cookies between
the various windows if cookies are enabled. If cookies are disabled then url
writing takes over (asuming youve made sure your links are re-written by
using the appropriate tags) which means they shouldlnt share sessions if
opened seperately. You could test this theory by disabling cookies in your
browser and see if it makes a difference.

Put it a log statement somewhere to log the sessionId and compare the
results for both the windows to see if it is indeed a different session, or
if the second window causes the first window to end up in the second's
session.


-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:17
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk values
which are not applicable for that session , but will be applicable for the
session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


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



html:errors break line

2004-01-16 Thread Vinicius Carvalho
Hi there! I have a page that renders all my erros, called 
errors.jsp (duh!). What I'm trying to do is if the user's session has 
expired, I'll forward him using a javascript, after an alert: Here's how my 
code looks like:


function sessionExpired(){
alert("");
top.frames.location="index.jsp";
}
function refreshScreen() {

}

Now, let's suppose the session has expired: the code displays this:


function sessionExpired(){
alert("
Session expired! Please login again!

");
top.frames.location="index.jsp";
}
function refreshScreen() {

sessionExpired();


} As you can see, errors property sessionExpiredFunction writes the function to be called. and the errosExpiredString, the warning string. Problem is, I have a new line, before and after it, invalidating my alert() method. Any way to solve this? Or maybe a better solution for the problem? Thanks Vinicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
Hi Eric,

use:

MessageResources resources = 
   (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
String msg = resources.getMessage(locale, "key");


Regards,

Frank

-Ursprüngliche Nachricht-
Von: Eric C [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 12:42
An: Struts Users Mailing List
Betreff: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


-
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 Applicationresources.properties from Action

2004-01-16 Thread Matthias Wessendorf
hi, 
use getResources(request);


or if more then 1

getResources(request, "keyOfResource");


this returns an MessageResource-Object

then you can read it.

greeting


-Original Message-
From: Eric C [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 12:42 PM
To: Struts Users Mailing List
Subject: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is
deliver an error message to my result page. Any sample code showing the
use of the MessageResources object ?

Regards,
ERic


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



html:errors breakline (version 2)

2004-01-16 Thread Vinicius Carvalho
Sorry all! Eudora simply killed my text, sorry, heres the full version

Hi there! I have a page that renders all my erros, called errors.jsp 
(duh!). What I'm trying to do is if the user's session has expired, I'll 
forward him using a javascript, after an alert: Here's how my code looks like:


function sessionExpired(){
alert("");
top.frames.location="index.jsp";
}
function refreshScreen() {

}

Now, let's suppose the session has expired: the code displays this:


function sessionExpired(){
alert("
Session expired! Please login again!

");
top.frames.location="index.jsp";
}
function refreshScreen() {

sessionExpired();


} As you can see, errors property sessionExpiredFunction writes the function to be called. and the errosExpiredString, the warning string. Problem is, I have a new line, before and after it, invalidating my alert() method. Any way to solve this? Or maybe a better solution for the problem? Thanks Vinicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Access Applicationresources.properties from Action

2004-01-16 Thread Paul McCulloch
Is there an easy way to get the 'closest match' on terms of locales in the
request?

For example, my browser has it's request languages set to
Italian;French;English. My application's default properties file is in
English. There is a French properties file but not an Italian one.

So, when I ask for a value I want to get the French one. But getMessage()
will always return a value if the key exists in the default locale, so there
seems to be no way to try Italian first, then French, then English.

Any ideas?

Paul

> -Original Message-
> From: Otto, Frank [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:46
> To: 'Struts Users Mailing List'
> Subject: AW: Access Applicationresources.properties from Action
> 
> 
> Hi Eric,
> 
> use:
> 
> MessageResources resources = 
>
> (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
> String msg = resources.getMessage(locale, "key");
> 
> 
> Regards,
> 
> Frank
> 
> -Ursprüngliche Nachricht-
> Von: Eric C [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. Januar 2004 12:42
> An: Struts Users Mailing List
> Betreff: Access Applicationresources.properties from Action
> 
> 
> Hi all,
> 
> i'd like to access my properties file from the Action. My 
> purpose is deliver
> an error message to my result page. Any sample code showing 
> the use of the
> MessageResources object ?
> 
> Regards,
> ERic
> 
> 
> -
> 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]
> 


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


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



RE: Ling Tag client

2004-01-16 Thread Paul McCulloch
The approach I use when I want to leverage another tags functionality is to
nest the tag I want to use inside my own tag body. My own tag then processes
the result of the other tag.

e.g.





I don't know if this will help in your situation or not.

Paul

> -Original Message-
> From: Renato Romano [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:37
> To: 'Struts Users Mailing List'
> Subject: Ling Tag client
> 
> 
> I'm trying to define a Tag that does some work, and defines a link to
> some resource. To define this link I was trying to use the struts
>  tag in this way:
> 
>   LinkTag linkTag = new LinkTag();
>   linkTag.setPageContext(pageContext);
>   linkTag.setHref("http://myhost/mypage";);
>   linkTag.doStartTag();
>   try
>   {
>   pageContext.getOut().print("Go to myHost");
>   }
>   catch (IOException e)
>   {
>   e.printStackTrace();
>   return SKIP_PAGE;
>   }
>   linkTag.doEndTag();
>   return SKIP_BODY;
> 
> Is this the correct way to utilize an external Tag definition ??
> Thanks
> 
> 
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
> 
> e-mail: [EMAIL PROTECTED]
> Tel.:   010 2712603
> _
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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


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



AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
No, getMessage(locale, "key") searchs for the italian file first. If it don't find it, 
it will take the default file.

Regards,

Frank



-Ursprüngliche Nachricht-
Von: Paul McCulloch [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 13:02
An: 'Struts Users Mailing List'
Betreff: RE: Access Applicationresources.properties from Action


Is there an easy way to get the 'closest match' on terms of locales in the
request?

For example, my browser has it's request languages set to
Italian;French;English. My application's default properties file is in
English. There is a French properties file but not an Italian one.

So, when I ask for a value I want to get the French one. But getMessage()
will always return a value if the key exists in the default locale, so there
seems to be no way to try Italian first, then French, then English.

Any ideas?

Paul

> -Original Message-
> From: Otto, Frank [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:46
> To: 'Struts Users Mailing List'
> Subject: AW: Access Applicationresources.properties from Action
> 
> 
> Hi Eric,
> 
> use:
> 
> MessageResources resources = 
>
> (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
> String msg = resources.getMessage(locale, "key");
> 
> 
> Regards,
> 
> Frank
> 
> -Ursprüngliche Nachricht-
> Von: Eric C [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. Januar 2004 12:42
> An: Struts Users Mailing List
> Betreff: Access Applicationresources.properties from Action
> 
> 
> Hi all,
> 
> i'd like to access my properties file from the Action. My 
> purpose is deliver
> an error message to my result page. Any sample code showing 
> the use of the
> MessageResources object ?
> 
> Regards,
> ERic
> 
> 
> -
> 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]
> 


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


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

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



RE: Session Problem

2004-01-16 Thread Guillermo Meyer
I had a similar problem.
I have two browsers opened with diferent sessions (and logged on with
different users to my app) in the same machine.
In one browser, I click a button that opens a new window (window.open in
javascript) and in this new window a submit is performed to an action of
struts. This action has an execute that checks isTokenValid and gives
false, not because I haven't saved token first, but because session are
different. 

 */
protected boolean isTokenValid(HttpServletRequest request) {

// Retrieve the saved transaction token from our session
HttpSession session = request.getSession(false);

//--> here, session id is different of the main window
session, but equals to the other window session.

if (session == null)
.
.
.

//as session id is wrong, token is invalid.
}

If I have one only main browser opened this problem doesn't happen. I
think that it can be a window.open IE problem, but I still couldn't find
out a solution. 

If anyone has one...
Thanks..
Guillermo.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 16 de Enero de 2004 08:38 a.m.
To: Struts
Subject: RE: Session Problem



How do I make sure the session on both the browsers will be different
other than URL Rewriting. 

This I do not know. :-(
You can take a look through all the browser options and see if there is
anything to make it associate cookies only with a specific window, but I
would be quite surprised if there is such an option. I suspect in the
absense of url rewriting you will need to use either different machines
for each browser, or a different browser (ie open second window in
mozilla or something). Hopefully Im wrong on that and someone else on
this list has a better idea!

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:31
To: [EMAIL PROTECTED]
Subject: RE: Session Problem


Hi

I tried to use URL rewriting explicetly for session tracking,
unfortunately I wont be able to use this because Its not been guaranteed
in the code is been written using  always for the links. As
both the browsers sessions are using only the same cookies, so I think
the problem is because of that. How do I make sure the session on both
the browsers will be different other than URL Rewriting.

Thanks
Parag

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:51 PM
To: Struts Users Mailing List
Subject: RE: Session Problem


On the same machine? Rather sounds like its the same session. Im not
sure about IE6, but as I recall, IE5 will share its cookies between the
various windows if cookies are enabled. If cookies are disabled then url
writing takes over (asuming youve made sure your links are re-written by
using the appropriate tags) which means they shouldlnt share sessions if
opened seperately. You could test this theory by disabling cookies in
your browser and see if it makes a difference.

Put it a log statement somewhere to log the sessionId and compare the
results for both the windows to see if it is indeed a different session,
or if the second window causes the first window to end up in the
second's session.


-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:17
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk
values which are not applicable for that session , but will be
applicable for the session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Parag Pattewar
Hi all

How do I change Struts-Menu implemention, so it can support URL ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



access to ApplicationResources values from struts tags

2004-01-16 Thread Lee H
Hi - would be very grateful if anyone has any advice on the following:

Is it possible to use values stored in the ApplicationResources file in
struts logic: and html: tags?

As a simple example, in app resources we have 
  system.type = type_x

in my jsp i'd like to do

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

AW: access to ApplicationResources values from struts tags

2004-01-16 Thread Otto, Frank
Hi,

you can do this in this way:


  



...



Regards,

Frank

-Ursprüngliche Nachricht-
Von: Lee H [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 13:33
An: [EMAIL PROTECTED]
Betreff: access to ApplicationResources values from struts tags


Hi - would be very grateful if anyone has any advice on the following:

Is it possible to use values stored in the ApplicationResources file in
struts logic: and html: tags?

As a simple example, in app resources we have 
  system.type = type_x

in my jsp i'd like to do



Re: Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Thanks,

well my app doesn't know Globals.MESSAGES_KEY.
So I did directly :

MessageResources resources=getResources(request);
String res = resources.getMessage("errors.doublon");

- Original Message -
From: "Otto, Frank" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 12:45 PM
Subject: AW: Access Applicationresources.properties from Action


Hi Eric,

use:

MessageResources resources =

(MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
String msg = resources.getMessage(locale, "key");


Regards,

Frank

-Ursprüngliche Nachricht-
Von: Eric C [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 12:42
An: Struts Users Mailing List
Betreff: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


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



[FRIDAY] RE: JSP Protection

2004-01-16 Thread Nail, Evan Burke

Perhaps I have a different browser, but mine keeps asking for 
/images/deniserichards.jpg


hmmm



-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 7:20 PM
To: Struts Users Mailing List
Subject: Re: JSP Protection


The images are requested directly by the browser, so they must be accessible
from the outside. Here's a little browser-server dialog to illustrate how it
works:

Browser: please give me /DoSomething.do
Server: Here you go... (server invokes Struts action servlet, action servlet
invokes the requested action, action says it wants to forward to a JSP,
action servlet does the forward...)


Browser: please give me /images/bitchin_camaro.jpg
Server: Here you go...
24927image247data7902578259image293data85984396574389...

The request for the action returns HTML. The browser reads the HTML and sees
that it references an image. The browser then makes a separate request for
the image file so that it can render the page. The image file must be
"request-able" by the browser or it won't show up when someone wants to view
the page.

-Max

- Original Message - 
From: "lixin chu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 5:07 PM
Subject: RE: JSP Protection


> I can successfully move all the files into
> /WEB-INF/subfolder (WEB-INF is protected by default)
> except the images/ folder. It seems that I have to
> leave it outside - in the webapp root.
> I am using Tomcat 5.0.16. Is it a defect or it is like
> this ?
>
> --- "Karr, David" <[EMAIL PROTECTED]> wrote:
> > Put all JSP pages that can't be accessed directly
> > into a security constraint, only accessible by the
> > role "nobody", which you will never add a user to.
> > All accesses of JSPs will be through forwards from
> > actions, which will not be blocked by that security
> > constraint (unless you either have a broken web
> > container or a Servlet 2.4 container where you've
> > enabled auth on forward).
> >
> > -Original Message-
> > From: J黵gen Scheffler
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 15, 2004 8:15 AM
> > To: [EMAIL PROTECTED]
> > Subject: JSP Protection
> >
> >
> > Hi,
> >
> > how do i block URL guessing?
> > if someone requests abc.com/secret_page.jsp
> > he gets it. In my Action i check if the user object
> > has the right rights for this action and then i
> > forward him. But if guesses the jsp, he opens it.
> >
> > Help me!
> >
> > J黵gen
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
> -
> 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]



**
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may 
contain confidential and privileged material for the sole use of the intended 
recipient (s). Any review, use, distribution or disclosure by others is strictly 
prohibited. If you are not the intended recipient (or authorized to receive for the 
recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and 
delete all copies of the message. This e-mail (and any attachments hereto) are not 
intended to be an offer (or an acceptance) and do not create or evidence a binding and 
enforceable contract between Enron Corp. (or any of its affiliates) and the intended 
recipient or any other party, and may not be relied on by anyone as the basis of a 
contract by estoppel or otherwise. Thank you. 
**


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



Re: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
If you use forwards or actions for attributes, it should do this for 
you.

On Jan 16, 2004, at 5:20 AM, Parag Pattewar wrote:

Hi all

How do I change Struts-Menu implemention, so it can support URL 
ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India
Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901
-
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: Question: How do I put iterated radio buttons in the same gro up?

2004-01-16 Thread Eric Hodges
Nevermind, I figured it out.  Here's the syntax that works:

  

The documentation describes the "value" attribute as "[t]he value of the
radio tag."  That isn't very helpful.

-Original Message-
From: Eric Hodges 
Sent: Thursday, January 15, 2004 7:50 AM
To: Struts Users Mailing List
Subject: RE: Question: How do I put iterated radio buttons in the same
gro up?


Thanks for the advice, but I can't get that to work.  I have to add a
"value" attribute to get it to compile, so I changed it to this:



That causes this run-time exception:

javax.servlet.jsp.JspException: No getter method available for property
master for bean under name  org.apache.struts.taglib.html.BEAN

My account bean has an "isMaster" method, so it's looking on some other
bean.  I've tried playing with the attribute values with no success.  I even
replaced the boolean "master" property on my account bean with another bean
class that defined a boolean "master" property to see if it was trying to
access "account.master.master", but that failed too.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 1:03 PM
To: Struts Users Mailing List
Subject: Re: Question: How do I put iterated radio buttons in the same
group?


Try:



Quoting Eric Hodges <[EMAIL PROTECTED]>:

> I'm using nested:iterate to display a list of items in a table.  Each row
> shows on element of the list like this:
> 
> 
>   
> 
>   
> 
>   
> 
> 
> 
> I'd like to have one column that shows radio buttons and I'd like all of
> those buttons to be in the same group so only one of them can be selected
> at
> a time.  To do this I need them to have the same "name" property in the
> resulting HTML.  The problem is that their names take the form
> "account[index].master", where "index" has a different value on each row.
> This puts each radio button in it's own group and allows all of them to be
> selected at the same time.
> 
> Any ideas about how to make this work?

-- 
Kris Schneider 
D.O.Tech   

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



Re[2]: forward on https

2004-01-16 Thread Foux
Hello Alain, Mark and Raj,

Thank you very much for your help. The link to the Sourceforge project
(http://sourceforge.net/projects/sslext/) Alain mentionned, was exactly
what I needed!! (Sorry that I didn't see Alain's thread about Mixed
protocols)

However I would like to point out it's not working with Struts 1.2 without
changing the org.apache.struts.taglib.html.SecureFormTag source file.
At line 204 there is an if() statement on the "type" attribute which
doesn't exist, the source code does not compile. Simply comment the whole
if() statement but KEEP the "else" section. Recompile the source and your
done. It worked perfectly for me.

Thanks again for your help.
Foux





Thursday, January 15, 2004, 5:34:46 PM, you wrote:

AVV> I had the same need last week and I started a Thread called "Mix protocols
AVV> transparently in Struts"
AVV> Have a look at this ...
AVV> You will need the "Struts SSL Switching Extension" hosted at sourceforge:
AVV> http://sourceforge.net/projects/sslext/

AVV> Alain


AVV> At 17:27 15/01/2004 +0100, you wrote:
>>Hi,
>>
>>Is there any parameter to define a forward should be done over https
>>instead of the http protocol? I mean, is there something like this
>>(which is not working) :
>>
>> 
>>or
>> 
>>?
>>
>>Thanks.
>>-Foux
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
 Fouxmailto:[EMAIL PROTECTED]



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



RE: Ling Tag client

2004-01-16 Thread Renato Romano
I cannot use this approach, since my own tag must define a series of
links based on the "state" of the object it is processing. I detail my
needs also to get your help on my way of proceeding in such a situation:

I have a page several pages in fact) showing a table of "results"
(objects retrieved from the DB). A tipical handling of this is a
 tag that shows each object's properties inside a 
element. One of the column I need to show is an "Available Actions"
column, which should show an icon with a link to the "action". This set
of actions depends generally on the "state" of the object; for example
one object may be "deletable" while another would not. So I thought to
handle this behavior (on the web tier) by constructing this tag that
inspect the object state and generates an img and a link element
allowing the user to select only appropriate actions.

The code I inserted works fine, but as said by Andrew I feel like I'm
playing with fire... So I would have a confirmation that this way of
proceeding is quite correct!!
Thanks


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: venerdì 16 gennaio 2004 13.06
To: 'Struts Users Mailing List'
Subject: RE: Ling Tag client


The approach I use when I want to leverage another tags functionality is
to nest the tag I want to use inside my own tag body. My own tag then
processes the result of the other tag.

e.g.





I don't know if this will help in your situation or not.

Paul

> -Original Message-
> From: Renato Romano [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:37
> To: 'Struts Users Mailing List'
> Subject: Ling Tag client
> 
> 
> I'm trying to define a Tag that does some work, and defines a link to 
> some resource. To define this link I was trying to use the struts 
>  tag in this way:
> 
>   LinkTag linkTag = new LinkTag();
>   linkTag.setPageContext(pageContext);
>   linkTag.setHref("http://myhost/mypage";);
>   linkTag.doStartTag();
>   try
>   {
>   pageContext.getOut().print("Go to myHost");
>   }
>   catch (IOException e)
>   {
>   e.printStackTrace();
>   return SKIP_PAGE;
>   }
>   linkTag.doEndTag();
>   return SKIP_BODY;
> 
> Is this the correct way to utilize an external Tag definition ?? 
> Thanks
> 
> 
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
> 
> e-mail: [EMAIL PROTECTED]
> Tel.:   010 2712603
> _
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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


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



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



java virtual machine crashed

2004-01-16 Thread Otto, Frank
Hello,
 
I get some times following error and I don't know why. :-(
 
Heap at VM Abort:
Heap
 def new generation   total 3456K, used 3064K [0x4499, 0x44d5, 0x44e7)
  eden space 3072K,  98% used [0x4499, 0x44c830a8, 0x44c9)
  from space 384K,  11% used [0x44c9, 0x44c9b200, 0x44cf)
  to   space 384K,   0% used [0x44cf, 0x44cf, 0x44d5)
 tenured generation   total 45712K, used 37834K [0x44e7, 0x47b14000, 0x4899)
   the space 45712K,  82% used [0x44e7, 0x47362810, 0x47362a00, 0x47b14000)
 compacting perm gen  total 16896K, used 16751K [0x4899, 0x49a1, 0x4c99)
   the space 16896K,  99% used [0x4899, 0x499ebe40, 0x499ec000, 0x49a1)
 
Local Time = Fri Jan 16 14:54:50 2004
Elapsed Time = 13685
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi 
 
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
 
Has anyone an idea?
 
 
Regards,
 
Frank


AW: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>


Appendix: ANT



  
  






   




   
   
   
 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat --> IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat --> IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. 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]



Jrun4 Server start up error

2004-01-16 Thread Sandy Bingham-Porter
Hello,

We are in the process of developing a Struts web application running on 
Jrun 4. As we add more components to the struts configuration file, 
particularly dynaform properties, the startup time for the server is 
increasing.  We've now hit a time out and receive the following error:

The sever did not finish starting up in the expected amount of time; it 
may have failed to start.

Is there anyone on this list familiar with Jrun that could give me an 
idea how to increase time for start up?

Thanks for your time and help,

Sandy Bingham-Porter
Eastern Illinois University


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


Sublte problem with nested Tiles and Struts Actions

2004-01-16 Thread Neil Pattinson
Hello All,

I am using Struts with Tiles to build a nested layout, and have hit some wierdness: 
any comments/help much appreciated.

Background: I'm constructing a webapp allowing a 'client' to view useful info (e.g. 
about their account), and also allowing an 'admin' to view the client's info.
I want to embed the client's view into an admin page (allowing the admin to see both 
data about the client, as well as the client's view). Tiles is an obvious candidate 
for this.

So I have a tile for the client's view. To simplify, I will say that this tile relates 
a JSP (/client/overview.jsp) and a Struts action (ClientActions.java), defined thus in 
tiles-defs.xml:



This tile would normally be used as the 'body' attribute in a Tiles .clientLayout, 
e.g.:






In the admin context, there is a .adminLayout: the 'body' attribute is set to a JSP 
that itself inserts the .clientDetails.view tile:





...and a Struts Action acts as controller for this tile, using Struts ActionMappings, 
e.g.





Somewhere in viewClient.jsp I insert the client view tile in a table thus:


  


Now when I access the client part of the webapp (i.e. I hit the page defined by 
.clientOverview) it works OK. But when I get to the admin view (.adminClientView), the 
inserted tile blows up.

Close inspection with a debugger reveals that in the former case the Action 
ClientActions is invoked, but for the admin case it isn't.

(Originally the whole app was Struts Actions forwarding to tiles: I tried binding the 
ClientActions action to the overview.jsp just to give myself a component-ised 
controller/view tile.)

I'm expecting the following sequence:
1  /AdminViewClient.do forwards to .adminClientView
2  /admin/viewClient.jsp runs: inserts tile .clientDetails.view
3  /ClientActions.do action invoked
4  /client/overview.jsp runs.

It is step 3 that seems to be bypassed.

However, if I replace the Action with a Controller, thus:



...where ClientOverviewController extends org.apache.struts.tiles.ControllerSupport,  
then everything works OK.

My question is this: why does a JSP backed by an Action in a tiles def which is 
inserted into another JSP not result in the Action being invoked, while an inserted 
tile tying a JSP to a Controller *does* result in the Controller being invoked?

I guess I have a useable solution, but I'm wondering if I have (a) found a bug, or (b) 
missed something!

Sorry this is rather long winded: I wanted to give as clear an indication of the 
problem as poss.

Thanks for your help,

Neil Pattinson.


This e-mail message is meant solely for the person or organisation to whom it is 
addressed.The message may contain personal or confidential information, or information 
that is not public in nature. Ehbas Ltd accepts no responsibility for message content 
and possible attachments that are unlawful or of questionable decency. Further 
dissemination, publication or duplication of this message is strictly prohibited if 
the person or organisation receiving this message is not the intended recipient. In 
the event that you are not the intended recipient, we request you to refrain from 
using the content and to immediately inform the sender of the error by returning the 
message. Thank you for your co-operation.

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



RE: java virtual machine crashed

2004-01-16 Thread Andrew Hill
Sometimes bad things happen to good JVMs...

Ive had a few 1.4.something JVM crashes myself though I didnt take note of
the error. (Just figured it was because  of win98!)

Dont have any help to offer :-( , but for others who might, what OS are you
running on (etc...)?

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 22:27
To: Struts-User (E-Mail)
Subject: java virtual machine crashed


Hello,

I get some times following error and I don't know why. :-(

Heap at VM Abort:
Heap
 def new generation   total 3456K, used 3064K [0x4499, 0x44d5,
0x44e7)
  eden space 3072K,  98% used [0x4499, 0x44c830a8, 0x44c9)
  from space 384K,  11% used [0x44c9, 0x44c9b200, 0x44cf)
  to   space 384K,   0% used [0x44cf, 0x44cf, 0x44d5)
 tenured generation   total 45712K, used 37834K [0x44e7, 0x47b14000,
0x4899)
   the space 45712K,  82% used [0x44e7, 0x47362810, 0x47362a00,
0x47b14000)
 compacting perm gen  total 16896K, used 16751K [0x4899, 0x49a1,
0x4c99)
   the space 16896K,  99% used [0x4899, 0x499ebe40, 0x499ec000,
0x49a1)

Local Time = Fri Jan 16 14:54:50 2004
Elapsed Time = 13685
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi

#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#

Has anyone an idea?


Regards,

Frank


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



Re: AW: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
Websphere 4 is 2.2 not 2.3 compatible.

Mike 




"Oliver Thiel" <[EMAIL PROTECTED]> 
16/01/04 14:18
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
<[EMAIL PROTECTED]>
cc

Subject
AW: Tomcat --> IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
 

Appendix: ANT



  
  






   




   
   
   
 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat --> IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat --> IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. 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]




AW: java virtual machine crashed

2004-01-16 Thread Otto, Frank
I run suse 8.1...

-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 15:31
An: Struts Users Mailing List
Betreff: RE: java virtual machine crashed


Sometimes bad things happen to good JVMs...

Ive had a few 1.4.something JVM crashes myself though I didnt take note of
the error. (Just figured it was because  of win98!)

Dont have any help to offer :-( , but for others who might, what OS are you
running on (etc...)?

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 22:27
To: Struts-User (E-Mail)
Subject: java virtual machine crashed


Hello,

I get some times following error and I don't know why. :-(

Heap at VM Abort:
Heap
 def new generation   total 3456K, used 3064K [0x4499, 0x44d5,
0x44e7)
  eden space 3072K,  98% used [0x4499, 0x44c830a8, 0x44c9)
  from space 384K,  11% used [0x44c9, 0x44c9b200, 0x44cf)
  to   space 384K,   0% used [0x44cf, 0x44cf, 0x44d5)
 tenured generation   total 45712K, used 37834K [0x44e7, 0x47b14000,
0x4899)
   the space 45712K,  82% used [0x44e7, 0x47362810, 0x47362a00,
0x47b14000)
 compacting perm gen  total 16896K, used 16751K [0x4899, 0x49a1,
0x4c99)
   the space 16896K,  99% used [0x4899, 0x499ebe40, 0x499ec000,
0x49a1)

Local Time = Fri Jan 16 14:54:50 2004
Elapsed Time = 13685
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi

#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#

Has anyone an idea?


Regards,

Frank


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

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



Re: Jrun4 Server start up error

2004-01-16 Thread Pedro Salgado

  Two months ago, I had to configure a Struts application on a JRun Server
and I had some problems to make it work correctly.

  If your using Tomcat then some of the libs will be in its proper location
/WEB-INF/lib (commons-*, struts-*, and some other) but on Jrun I had to
place 

log4j.properties
commons-beanutils*
commons-collections*
commons-digester*
commons-validator*
commons-upload*
struts*
log4j*

on the ${JRUN_HOME}/servers/lib.

  For what I unserstood this is a JRun issue... something about loading
classes priority (servers lib, then website lib... ?! and not implementing a
Sun's specification... In conclusion, something that Tomcat does right and
JRun doesn't).

  Have you tried this?
  Have you checked the log files for more specific errors?

Regards,

Pedro Salgado


On 16/01/2004 14:28, "Sandy Bingham-Porter" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> We are in the process of developing a Struts web application running on
> Jrun 4. As we add more components to the struts configuration file,
> particularly dynaform properties, the startup time for the server is
> increasing.  We've now hit a time out and receive the following error:
> 
> The sever did not finish starting up in the expected amount of time; it
> may have failed to start.
> 
> Is there anyone on this list familiar with Jrun that could give me an
> idea how to increase time for start up?
> 
> Thanks for your time and help,
> 
> Sandy Bingham-Porter
> Eastern Illinois University
> 
> 
> 
> -
> 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: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
You have the source to struts and the source to struts-menu, grab the code
from struts and plug it into struts-menu and submit a patch.  You might need
a menu-config.xml option to indicate that you will be url rewriting.

Edgar

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: Struts-Menu (Support URL Re-writing)


Hi all

How do I change Struts-Menu implemention, so it can support URL ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



RE: Session Problem

2004-01-16 Thread Edgar P Dollin
If IE opens a new window (either through javascript or from the
file/new/window menu) and IE is in a session, the session is shared between
the two browser sessions.

If you open two copies of IE from the operating system, they will not share
the session.

The only way to solve this that I know of, is to keep a session token, if
you find it out of sequence, forward to a page which closes the window (if
javascript is enabled).  If you use tokens on your update sequences you
should be able to live with the two browsers in the same session.

Edgar

-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:19 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Session Problem


I had a similar problem.
I have two browsers opened with diferent sessions (and logged on with
different users to my app) in the same machine.
In one browser, I click a button that opens a new window (window.open in
javascript) and in this new window a submit is performed to an action of
struts. This action has an execute that checks isTokenValid and gives
false, not because I haven't saved token first, but because session are
different. 

 */
protected boolean isTokenValid(HttpServletRequest request) {

// Retrieve the saved transaction token from our session
HttpSession session = request.getSession(false);

//--> here, session id is different of the main window
session, but equals to the other window session.

if (session == null)
.
.
.

//as session id is wrong, token is invalid.
}

If I have one only main browser opened this problem doesn't happen. I
think that it can be a window.open IE problem, but I still couldn't find
out a solution. 

If anyone has one...
Thanks..
Guillermo.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 16 de Enero de 2004 08:38 a.m.
To: Struts
Subject: RE: Session Problem



How do I make sure the session on both the browsers will be different
other than URL Rewriting. 

This I do not know. :-(
You can take a look through all the browser options and see if there is
anything to make it associate cookies only with a specific window, but I
would be quite surprised if there is such an option. I suspect in the
absense of url rewriting you will need to use either different machines
for each browser, or a different browser (ie open second window in
mozilla or something). Hopefully Im wrong on that and someone else on
this list has a better idea!

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:31
To: [EMAIL PROTECTED]
Subject: RE: Session Problem


Hi

I tried to use URL rewriting explicetly for session tracking,
unfortunately I wont be able to use this because Its not been guaranteed
in the code is been written using  always for the links. As
both the browsers sessions are using only the same cookies, so I think
the problem is because of that. How do I make sure the session on both
the browsers will be different other than URL Rewriting.

Thanks
Parag

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:51 PM
To: Struts Users Mailing List
Subject: RE: Session Problem


On the same machine? Rather sounds like its the same session. Im not
sure about IE6, but as I recall, IE5 will share its cookies between the
various windows if cookies are enabled. If cookies are disabled then url
writing takes over (asuming youve made sure your links are re-written by
using the appropriate tags) which means they shouldlnt share sessions if
opened seperately. You could test this theory by disabling cookies in
your browser and see if it makes a difference.

Put it a log statement somewhere to log the sessionId and compare the
results for both the windows to see if it is indeed a different session,
or if the second window causes the first window to end up in the
second's session.


-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:17
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk
values which are not applicable for that session , but will be
applicable for the session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



-
To unsubscribe, e-mail: [EMAIL PROT

[OT] RE: java virtual machine crashed

2004-01-16 Thread Mike Jasnowski
it would probably help the diagnosis if you could describe the events
leading up to the crash.

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 9:27 AM
To: Struts-User (E-Mail)
Subject: java virtual machine crashed


Hello,

I get some times following error and I don't know why. :-(

Heap at VM Abort:
Heap
 def new generation   total 3456K, used 3064K [0x4499, 0x44d5,
0x44e7)
  eden space 3072K,  98% used [0x4499, 0x44c830a8, 0x44c9)
  from space 384K,  11% used [0x44c9, 0x44c9b200, 0x44cf)
  to   space 384K,   0% used [0x44cf, 0x44cf, 0x44d5)
 tenured generation   total 45712K, used 37834K [0x44e7, 0x47b14000,
0x4899)
   the space 45712K,  82% used [0x44e7, 0x47362810, 0x47362a00,
0x47b14000)
 compacting perm gen  total 16896K, used 16751K [0x4899, 0x49a1,
0x4c99)
   the space 16896K,  99% used [0x4899, 0x499ebe40, 0x499ec000,
0x49a1)

Local Time = Fri Jan 16 14:54:50 2004
Elapsed Time = 13685
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi

#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#

Has anyone an idea?


Regards,

Frank


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



RE: JSP Protection

2004-01-16 Thread Edgar P Dollin
There is one other way and that is to foward *.jsp in web.xml to a filter
which always fails.  

Edgar

-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:24 PM
To: Struts Users Mailing List
Subject: Re: JSP Protection


thanks !

--- Max Cooper <[EMAIL PROTECTED]> wrote:
> The images are requested directly by the browser, so
> they must be accessible
> from the outside. Here's a little browser-server
> dialog to illustrate how it
> works:
> 
> Browser: please give me /DoSomething.do
> Server: Here you go... (server invokes Struts action
> servlet, action servlet
> invokes the requested action, action says it wants
> to forward to a JSP,
> action servlet does the forward...)
> 
> 
> Browser: please give me /images/bitchin_camaro.jpg
> Server: Here you go...
>
24927image247data7902578259image293data85984396574389...
> 
> The request for the action returns HTML. The browser
> reads the HTML and sees
> that it references an image. The browser then makes
> a separate request for
> the image file so that it can render the page. The
> image file must be
> "request-able" by the browser or it won't show up
> when someone wants to view
> the page.
> 
> -Max
> 
> - Original Message - 
> From: "lixin chu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, January 15, 2004 5:07 PM
> Subject: RE: JSP Protection
> 
> 
> > I can successfully move all the files into
> > /WEB-INF/subfolder (WEB-INF is protected by
> default)
> > except the images/ folder. It seems that I have to
> > leave it outside - in the webapp root.
> > I am using Tomcat 5.0.16. Is it a defect or it is
> like
> > this ?
> >
> > --- "Karr, David" <[EMAIL PROTECTED]> wrote:
> > > Put all JSP pages that can't be accessed
> directly
> > > into a security constraint, only accessible by
> the
> > > role "nobody", which you will never add a user
> to.
> > > All accesses of JSPs will be through forwards
> from
> > > actions, which will not be blocked by that
> security
> > > constraint (unless you either have a broken web
> > > container or a Servlet 2.4 container where
> you've
> > > enabled auth on forward).
> > >
> > > -Original Message-
> > > From: J黵gen Scheffler
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 15, 2004 8:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: JSP Protection
> > >
> > >
> > > Hi,
> > >
> > > how do i block URL guessing?
> > > if someone requests abc.com/secret_page.jsp
> > > he gets it. In my Action i check if the user
> object
> > > has the right rights for this action and then i
> > > forward him. But if guesses the jsp, he opens
> it.
> > >
> > > Help me!
> > >
> > > J黵gen
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Out of memory problem

2004-01-16 Thread Christophe Andreoli

Hello !

I have a Struts/jsp Application

Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.OutOfMemoryError


It happens When the corresponding request returns more than 2-3
rows from the database, not every time

but surely if more request run parallely


>From the 2-3 rows I am making  the same number of the following
objects from this class
class{
public  int humanId=-1;
public String humanDescription="";
public String   swissProtId="";
public String swissProtName="";
public String function="";
public String subcellularLocation ="";
public String alternativeProtein ="";
public String  pathway ="";
public double mitoProt =-1;
public int mitoLocal=-1;
private double  accuracy;
public String swissProtLink="";
private int hasEncephalHomolog=-1;
private int hasRickettsiaHomolog=-1;
private int hasYeastMitoHomolog=-1;
private int hasParalogMito=-1;
private int heartProteome=-1;
private int psort=-1;
private String mesClone="";
private String mesUnigene="";
private int holgerCandidate=-1;
private int predotar=-1;
private String omim="";
private String subLocWiemann="";


}


Can you help me ?



   Thank you!


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

RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
Struts Menu makes use of Struts classes to support "forward" and
"action" attributes.  If you use those, you'll likely get the re-writing
you're looking for.  I did this on a previous project and did find that
the "forward" attribute worked, but not the "action" attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the "action" attribute or the
"page" attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.

If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.

Matt

> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 16, 2004 7:54 AM
> To: 'Parag Pattewar'; [EMAIL PROTECTED]
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> You have the source to struts and the source to struts-menu, 
> grab the code from struts and plug it into struts-menu and 
> submit a patch.  You might need a menu-config.xml option to 
> indicate that you will be url rewriting.
> 
> Edgar
> 
> -Original Message-
> From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 16, 2004 7:21 AM
> To: [EMAIL PROTECTED]
> Subject: Struts-Menu (Support URL Re-writing)
> 
> 
> Hi all
> 
> How do I change Struts-Menu implemention, so it can support 
> URL ReWriting for session tracking?
> 
> Thanks and Regards
> Parag Pattewar
> Persistent Systems Private Limited
> "Bhageerath"
> 402, Senapati Bapat Road
> Pune 411016
> India
> 
> Tel: +91 (20) 2567 8900 extn. 2640
> Fax: +91 (20) 2567 8901
> 
> 
> -
> 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: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread MBrewer
aka :

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

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

Mike 





"Oliver Thiel" <[EMAIL PROTECTED]> 
16/01/04 14:18
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
<[EMAIL PROTECTED]>
cc

Subject
AW: Tomcat --> IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
 

Appendix: ANT



  
  






   




   
   
   
 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat --> IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat --> IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. 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]




WSAD 5 setup

2004-01-16 Thread Rama, Shreekanth (K.)
Hi All, 

I recently moved my application to  WSAD 5 from WSAD 4..  The application runs 
fine on 4 but on 5 
I get the following error.

Virtual Host/WebGroup Not Found : The web group /styles/style.css has not been 
defined

I doubt about the context root not setting properly.
Is there any place where I can find exactly how to setup these on wsad 5..

> Warm Regards
> Shreekanth
> 

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



RE: WSAD 5 setup

2004-01-16 Thread PREETAM Balijepalli
right click on projectWeb go to properties to change context...this is not wsad group

-Original Message-
From: Rama, Shreekanth (K.) [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 8:51 PM
To: [EMAIL PROTECTED]
Subject: WSAD 5 setup 


Hi All, 

I recently moved my application to  WSAD 5 from WSAD 4..  The application runs 
fine on 4 but on 5 
I get the following error.

Virtual Host/WebGroup Not Found : The web group /styles/style.css has not been 
defined

I doubt about the context root not setting properly.
Is there any place where I can find exactly how to setup these on wsad 5..

> Warm Regards
> Shreekanth
> 

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



dynamic form

2004-01-16 Thread Otávio Augusto
Hi all

I have a form which has as many fields as are informed in a previous form. For 
instance: form 1 asks the number of fields i want in form 2. After inputting that 
number, i go to form 2, and there I must find the number of fields (same fields, they 
are going to be indexed="true"). What should I implement in the ActionForm class to 
handle such fields? How to catch such fields in the ActionForm class and in the Action 
class?

Thanks a lot

Otávio Augusto

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



html:form accept-charset attribute

2004-01-16 Thread Akos Maroy
Hi,

I wonder why one can not specify the accept-charset attribute for the 
html:form tag?

Akos

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


RE: dynamic form

2004-01-16 Thread Trieu, Danny
Use indices properties...

Danny Trieu 
Internet Business Group 
Downey Savings and Loan Association, F.A. 
[EMAIL PROTECTED]
(949) 509-4564

"The beginning of knowledge is the discovery of something we do not
understand."
- Frank Herbert (1920-1986)
"The essence of knowledge is, having it, to apply it; not having it, to
confess your ignorance."
- Confucius (551-479 BC)




-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 7:29 AM
To: [EMAIL PROTECTED]
Subject: dynamic form


Hi all

I have a form which has as many fields as are informed in a previous form.
For instance: form 1 asks the number of fields i want in form 2. After
inputting that number, i go to form 2, and there I must find the number of
fields (same fields, they are going to be indexed="true"). What should I
implement in the ActionForm class to handle such fields? How to catch such
fields in the ActionForm class and in the Action class?

Thanks a lot

Otávio Augusto

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


This message and any attachments are for the intended recipient(s) only and may 
contain privileged, confidential and/or proprietary information about Downey Savings 
or its customers, which Downey Savings does not intend to disclose to the public. If 
you received this message by mistake, please notify the sender by reply e-mail and 
delete the message and attachments.

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



AW: AW: Tomcat --> IBM WebSphere Application Server 4.x

2004-01-16 Thread Oliver Thiel
THANKS MIKE! I`ll try that on monday. Hopefully this'll
solve the problem! 



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 16:20
An: Struts Users Mailing List
Betreff: Re: AW: Tomcat --> IBM WebSphere Application Server 4.x

aka :

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

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

Mike 





"Oliver Thiel" <[EMAIL PROTECTED]> 
16/01/04 14:18
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
<[EMAIL PROTECTED]>
cc

Subject
AW: Tomcat --> IBM WebSphere Application Server 4.x






Thanks for your replay!


But that was not exactly what I was looking for ;)
Maybe my description wasn't clear enough!
So I'll try again:

1. I can create a WAR file using ANT (see Appendix: ANT)
2. I can deploy it in Tomcat
3. I can not deploy it in WebSphere!
   Error message: missing DTD ~ deployment descriptor
   Although I defined my web.xml correct (I think - see Appendix:
web.xml)

I searched the IBM website for a document which describes the process of
migrating a tomcat app 2 WebSphere, but I could not find any.

Again:
Has anyone done that before?
Or/And has anyone a HowTo which explains the process?



Thanks
Oliver 



Appendix: web.xml
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
 

Appendix: ANT



  
  






   




   
   
   
 

-Ursprüngliche Nachricht-
Von: Srivastava, Ravi Prakash [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 12:05
An: 'Struts Users Mailing List'
Betreff: RE: Tomcat --> IBM WebSphere Application Server 4.x

Hi,

U can make war file through the the java command jar -cvf xyz.war *.*,
it will take all the files from the current root and make a war.
Now u can deploy this war file to ur WAS.

exam :

c:\app\*.jsp
c:\app\imapp\*

Note : imapp is the java package name.

go to c:\app\jar -cvf app.war *.*

Thanx

-Original Message-
From: Jaap van der Molen [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:24 PM
To: Struts Users Mailing List
Subject: RE: Tomcat --> IBM WebSphere Application Server 4.x




Out of the box, WAS wants an EAR file (Enterprise Application aRchive)
and
not a WAR file. You could create a new 'default' EAR project and add the
web
project to that ear. Then deolpy the EAR on WAS. Unfortunately, this
sounds
simplerer than it really is. Are you deploying on WAS from WSAD or do
you
use a standalone WAS server. The Admin tool should help you in the
latter
case.

I have heard people deploying WAR directly on WAD, but I don't know this
myself. Perhaps the IBM website can help you out.

re Jaap

-Original Message-
From: Oliver Thiel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Tomcat --> IBM WebSphere Application Server 4.x


Hi all,


I use the StrutsStudio (based on eclipse) to develop my Struts app.
The StrutsStudio uses Ant to build the WAR file. If I deploy my app
in Tomcat anything works fine, but I am not able to use my WAR file
within the WAServer from IBM. There I always get a massage that
this is not an enterprise WAR file ... ?!

Has anyone done that befor and can guide me with that?
Does any know a good how to or resource on the net?


Thanks
Oliver


--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



-
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]
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to
this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may
be
unlawful.  Please immediately contact the sender if you have received
this
message in error. 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]




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



struts-user@jakarta.apache.org

2004-01-16 Thread Zsolt
Hi,

it seems that 

I use jstl from struts-1.1 contrib.

Do I miss something?

Zsolt

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


how to disable a html:option tag?

2004-01-16 Thread Dirk Manske (Service Respond)
Hi,
 
I have in a form a html:select tag and inside some html:option tags. I want
to disable some options and declared it like this
 

 
optionText
 

 
But this seems not to work because this option is still selectable. How to
solve it?
 
thx,
Dirk


Issues when reusing a DynaValidatorForm

2004-01-16 Thread Janice
I have a simple DynaValidatorForm (just 3 items: name, description, action)
that is reused
for several forms.

The issue that I'm having is that the names of the form elements might be
different from one form to the next.  For example, on one page the 'name'
might be called 'Project Code' and on another page it might be 'widget Short
Name' and so on.  So far I'm writing out distinct .jsp pages for each form,
because I can't seem to get around having to do:  and .

Is there a way to pass in some variable to the bean tag so that I can define
the variable once such as:
?  So far I haven't found anything
that works.

Also, when I am using validation on my form, is there anything I can do to
get the page-specific text to appear in my error messages?  I bet someone's
going to complain if I use a really generic description of name and
description.

Thanks in advance,
Janice


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



RE: html:form accept-charset attribute

2004-01-16 Thread Richard Hightower
I am not familiar with that attribute. I think I can guess what it is
for
But if it is something you need, submit a request to bugzilla (after you
search the mailling list).

Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-Original Message-
From: Akos Maroy [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 9:08 AM
To: [EMAIL PROTECTED]
Subject: html:form accept-charset attribute


Hi,

I wonder why one can not specify the accept-charset attribute for the
html:form tag?


Akos


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



Struts plugin question

2004-01-16 Thread Marco Mistroni
Hi all,
In my application I have to connect to MBean server and
registers some
MBeans, that will be then available (thru an interface) to my
application.
For doing that, I was thinking of writing a plugin that contains my
JMXAgent  (plugin1) to abstract the connection to MBean server
(different implementation may have different way to connect to it) and
one plugin for each MBean that I need to register (let's say, plugIn2 ..
n)

Plugin2...n will retrieve plugIn1 in order to register themselves with
MBean server.

Assuming that I adopt this solution, plugin1 must be loaded before any
other plugIn.. and I was wondering if struts was loading plugIn in the
same order that I declare them or randomly..

Anyone can answer?

Thanx in advance and regards
marco


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



RE: Issues when reusing a DynaValidatorForm

2004-01-16 Thread Richard Hightower
I think you want a mapped backed property.

Here is an example:

 
 
 
 
 
 
 
 
 
 
 
 
 
<---SEE THIS

  
See dynamicProps above.

You can access the dynamic field like so:

  

  Dyna Prop Bar


  

  
  

  Dyna Prop Foo


  

  



Here is the full JSP form for the above:



  

  *


  

  

  *


  

  

  *


  

  
  

  *


  

  
  

  


  

  
  

  


  

  
  

  *


  

  
  

  *


  

  

  

  *


  

  
  

  *


  

  
  

  Dyna Prop Bar


  

  
  

  Dyna Prop Foo


  

  

  

  

  


  

  




Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-Original Message-
From: Janice [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 10:03 AM
To: [EMAIL PROTECTED]
Subject: Issues when reusing a DynaValidatorForm


I have a simple DynaValidatorForm (just 3 items: name, description, action)
that is reused
for several forms.

The issue that I'm having is that the names of the form elements might be
different from one form to the next.  For example, on one page the 'name'
might be called 'Project Code' and on another page it might be 'widget Short
Name' and so on.  So far I'm writing out distinct .jsp pages for each form,
because I can't seem to get around having to do:  and .

Is there a way to pass in some variable to the bean tag so that I can define
the variable once such as:
?  So far I haven't found anything
that works.

Also, when I am using validation on my form, is there anything I can do to
get the page-specific text to appear in my error messages?  I bet someone's
going to complain if I use a really generic description of name and
description.

Thanks in advance,
Janice


-
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: Disable validator framework

2004-01-16 Thread Richard Hightower
There are a 1/2 dozen ways to do this at least.

Here are four of them.

1) Create an additional action-mapping with validate=false, submit to that
mapping. (someone else stated this one)

2) Override the validate method of the form look for an attribute and
selective call super class validate method. (you stated this one)

3) Use a cancel button. The request dispatcher checks to see if the cancel
button is checked and wont validate the form or populate the form if the
cancel button is checked. This might be a problem if you want the form
populated. (someone else stated this... this could be a problem if you want
the form populated as the cancel button is checked before form population)

4) Subclass the request processor check for a special atrribute being set by
your form (name of the button).
The override the following method (my suggestion):

protected boolean processValidate(HttpServletRequest request,
  HttpServletResponse response,
  ActionForm form,
  ActionMapping mapping)
  ...





-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 11:34 PM
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
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: Struts plugin question

2004-01-16 Thread Larry Meadors
That seems like a questionable design (dependancies between plug-ins),
but one possible solution might be to make plug-ins #2..n not really
plugins, but components that plug-in #1 uses. Then use the configuration
for plug-in #1 to specify which components to make available. 

That would also eliminate a Struts dependancy from your 2..n components.

Larry

>>> [EMAIL PROTECTED] 01/16/04 10:12 AM >>>
Hi all,
In my application I have to connect to MBean server and
registers some
MBeans, that will be then available (thru an interface) to my
application.
For doing that, I was thinking of writing a plugin that contains my
JMXAgent  (plugin1) to abstract the connection to MBean server
(different implementation may have different way to connect to it) and
one plugin for each MBean that I need to register (let's say, plugIn2 ..
n)

Plugin2...n will retrieve plugIn1 in order to register themselves with
MBean server.

Assuming that I adopt this solution, plugin1 must be loaded before any
other plugIn.. and I was wondering if struts was loading plugIn in the
same order that I declare them or randomly..

Anyone can answer?

Thanx in advance and regards
marco


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



sql statements

2004-01-16 Thread Kelly Goedert
I read somewhere that it's possible to have your sql statements on a 
.properties file, instead of a class.

Could anyone give me an idea on how to do that?

Thanks

Kelly.

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


(resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread Brad Plies
Hi folks,

I am having a problem with Mozilla, Netscape, and FireBird browsers on 
pages that use
the validator JavaScript.  It seems that the browsers "choke" on all that
script and end up displaying the script instead of the page content (
even though the script is guarded by the HTML comments) about 80% of the 
time.

Please see:
http://www.bulliondirect.com/catalog/showProducts.do?category=1
When I have a garbled page, I look at the page source, and the source looks 
fine.
The page validates as HTML 4.01 Transitional compliant via:
http://validator.w3.org/file-upload.html
http://validator.w3.org/detailed.html

The only way I can get it to display correctly, is to keep hitting reload
until it renders correctly, but the page source is always the same by file 
comparison.
If you File->Save a garbled page, and load it from file, it renders correctly.

IE does not have this problem, and I cannot find any evidence that any one else
has ever experienced this either.  What makes our pages a special case?
I know all the affected browsers are related in some way, do they share 
some sort
of common bug (In Gecko I presume)?

Can anyone confirm they see what I see?  Anyone have a similar experience?

BugZilla (http://bugzilla.mozilla.org/) is rather difficult for me to use, 
so I
haven't been able to use it well enough to find reports of this.

Tested Browsers:
Mozilla 1.5 Gecko/20030916
FireBird 0.7 Gecko/20031007
Netscape 7.1 Gecko/20030624


RE: sql statements

2004-01-16 Thread Lawrence Williams
give your class a properties member:
 
private Properties p;
 
then have a method like this (parameter props is name of properties file):
 
protected boolean loadSQL(String props){  

log.debug("Loading properties ("+props+")"); 
java.io.InputStream i = null;
try{
p = null;
i = this.getClass().getClassLoader().getResourceAsStream(props);
p = new Properties();
p.load(i);
i.close();
}catch (IOException ioe){
//catch
}
finally {
//finally
} 
   return true;
}
 
 
dont know if that helps

-Original Message- 
From: Kelly Goedert [mailto:[EMAIL PROTECTED] 
Sent: Fri 16/01/2004 17:51 
To: Struts Users Mailing List 
Cc: 
Subject: sql statements



I read somewhere that it's possible to have your sql statements on a
.properties file, instead of a class.

Could anyone give me an idea on how to do that?

Thanks

Kelly.


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

[REPOST] Struts throws exception during load testing

2004-01-16 Thread Abhishek Srivastava
Hello All,

I had posted this yesterday, but didn't receive any response so far. This
error is coming more and more frequently when we increase the load on
struts. Worst thing is that the stack trace shows that this error is not
originated from any of my source. It seems to be an error being thrown by
struts.

The error is coming only during load testing. It doesn't come during a
single user testing.

I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.

Can anyone who is an expert on struts internals have a look at this and tell
me what is going wrong?

Thanks for your help in advance.[Sorry for reposting this... But since using
struts was my idea, now I am being questioned... And I have no clue about
why this error comes]

Here is the stack trace :

   
<[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
Servlet failed with Exception java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:320)
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:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Regards,
Abhishek.

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



Re: sql statements

2004-01-16 Thread Larry Meadors
Go to www.ibatis.com and look at the sqlmap stuff. It lets you put all
the SQL in xml files and then call them by name.

If you need help getting started, look at http://reumann.net

Rick's tutorials are great.

Larry

>>> [EMAIL PROTECTED] 01/16/04 10:51 AM >>>
I read somewhere that it's possible to have your sql statements on a 
.properties file, instead of a class.


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



Need help forming Response object

2004-01-16 Thread Dan Payne
I would like to be able to construct a HTTP POST
response and send it to a specific server. This would
be outside of a typical client request/response chain.


What is happening (perhaps there is a better way to do
this?) is a new user signs up for a member account on
our website. The form is processed and the user data
is saved to the database. If at registration time the
user indicates they would like to sign up for our
mailing list (as most do) then I need to send an HTTP
POST response to our third-party email list provider
with the user's information. The email list provider
has a sign-up form on their site customized for my
list but we don't want the user to have to basicaly
input the data twice, once on my site and once on the
email list provider site. So this response i'd like to
construct will be sent to the URL shown in the form's
ACTION parameter. 

Can anyone point me in the right direction here?

I really appreciate it guys.

-Dan


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



Re: (resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread russo
Doesn't look like the script is commented properly.
 I changed:

Re: (resend) Validator JavaScript displaying? Mozilla bug?

2004-01-16 Thread russo
Ok, I lied. I neglected to check the local copy of your page prior to
making the edit. Bad on me.

In sum, visiting the page in Firebird 0.7 displays the script as stated.
Saving the page as a local file then opening and the page seems to behave
as expected. ??

-Ryan

> Doesn't look like the script is commented properly.
>  I changed:
> 
> and it rendered properly in Firebird .7
>
> Did you add "Begin" or did Validator?
>
> Curious, because I'm a Struts newbie and plan on using Validator soon.
>
> Regards,
> -Ryan
>
> > Hi folks,
> >
> > I am having a problem with Mozilla, Netscape, and FireBird browsers on
> > pages that use
> > the validator JavaScript.  It seems that the browsers "choke" on all that
> > script and end up displaying the script instead of the page content (
> > even though the script is guarded by the HTML comments) about 80% of the
> > time.
> >
> > Please see:
> > http://www.bulliondirect.com/catalog/showProducts.do?category=1
> >
> >
> > When I have a garbled page, I look at the page source, and the source looks
> > fine.
> > The page validates as HTML 4.01 Transitional compliant via:
> > http://validator.w3.org/file-upload.html
> > http://validator.w3.org/detailed.html
> >
> > The only way I can get it to display correctly, is to keep hitting reload
> > until it renders correctly, but the page source is always the same by file
> > comparison.
> > If you File->Save a garbled page, and load it from file, it renders correctly.
> >
> > IE does not have this problem, and I cannot find any evidence that any one else
> > has ever experienced this either.  What makes our pages a special case?
> > I know all the affected browsers are related in some way, do they share
> > some sort
> > of common bug (In Gecko I presume)?
> >
> > Can anyone confirm they see what I see?  Anyone have a similar experience?
> >
> > BugZilla (http://bugzilla.mozilla.org/) is rather difficult for me to use,
> > so I
> > haven't been able to use it well enough to find reports of this.
> >
> > Tested Browsers:
> > Mozilla 1.5 Gecko/20030916
> > FireBird 0.7 Gecko/20031007
> > Netscape 7.1 Gecko/20030624
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

|--|
| Ryan Russo   |
| [EMAIL PROTECTED]|
| University at Albany--Computing  |
| <>|
| Technical Services Web Team  |
|__|

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



[REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Mark Nichols
Good Afternoon Everyone,

I am trying to complete the following code:


" />	

	




The substitution at arg0 isn't working. How do I do delimit the 
bean:write inside my bean:message tag?

Thanks

Mark

--
Black holes are where God divided by zero.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Issues when reusing a DynaValidatorForm

2004-01-16 Thread Janice
Thanks Richard, but I think mayhaps I didn't explain myself very well the
first time, because I'm not sure that a mapped backed property will do it
for me.  That or I just don't understand what a mapped backed property is :)

I want a "name" property on all of the forms that are using my
DynaValidatorForm, but I want the text next to the field to read something
different.  So its the  that I want to
change from page to page.  So far simply having distinct .jsps is working,
but I'd like to reduce the duplicated code.

The validator is the other part of the problem... so far its looking like
this:

  

  
  .
But I want the key to be page specific.

Thanks,
Janice


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



RE: [REPOST] Struts throws exception during load testing

2004-01-16 Thread Karr, David
Actually, the NPE is being thrown from a class/method internal to
WebLogic.  You need to address this with BEA support, not struts-user.

-Original Message-
From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] 

Hello All,

I had posted this yesterday, but didn't receive any response so far.
This error is coming more and more frequently when we increase the load
on struts. Worst thing is that the stack trace shows that this error is
not originated from any of my source. It seems to be an error being
thrown by struts.

The error is coming only during load testing. It doesn't come during a
single user testing.

I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.

Can anyone who is an expert on struts internals have a look at this and
tell me what is going wrong?

Thanks for your help in advance.[Sorry for reposting this... But since
using struts was my idea, now I am being questioned... And I have no
clue about why this error comes]

Here is the stack trace :

   
<[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
Servlet failed with Exception java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
tDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
rImp
l.java:286)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
esso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
oces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
Requ
estProcessor.java:320)
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:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Regards,
Abhishek.

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



[OT] Deploying a commercial product (including db and server)

2004-01-16 Thread Brad Balmer
I am hoping someone on this list has some experience to share regarding 
deploying a commercial web application which includes deploying a 
database as well as an application server.

We were thinking of using mysql as the db and either JBoss or Tomcat as 
the application server.  We would need to include the db and app server 
because our customers are not technical at all and most of them don't 
currently have servers in their stores.

Is there anyone out there that has accomplished something similar?

If so, could you email me directly since this doesn't really pertain to 
struts, except for the fact that the application uses the framework.

Thanks

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


RE: [OT] Deploying a commercial product (including db and server)

2004-01-16 Thread Barett McGavock
Take a look at the Scarab web application - it builds a Tomcat sandbox as
part of the install process. You might be able to steal some of their ideas
when deploying your app. I think the install process is pretty simple once
you find the right document. With Scarab, you do need to edit a
build.properties file before installing but you could even wrap a GUI around
that if you wanted to.

Just a heads up - I'm fairly certain you're going to run into licensing
issues distributing mysql. Maybe it's as simple as including their license,
but I thought Scarab left mysql out of the distribution for licensing
reasons.

Scarab is set up to work with several different databases, the reason might
have been as simple as that.

Sorry I couldn't be more specific.

B

-Original Message-
From: Brad Balmer [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 11:51 AM
To: Struts Users Mailing List
Subject: [OT] Deploying a commercial product (including db and server)


I am hoping someone on this list has some experience to share regarding 
deploying a commercial web application which includes deploying a 
database as well as an application server.

We were thinking of using mysql as the db and either JBoss or Tomcat as 
the application server.  We would need to include the db and app server 
because our customers are not technical at all and most of them don't 
currently have servers in their stores.

Is there anyone out there that has accomplished something similar?

If so, could you email me directly since this doesn't really pertain to 
struts, except for the fact that the application uses the framework.

Thanks


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

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



Re: dynamic form

2004-01-16 Thread Otávio Augusto
I don't understand what you mean. I know how to index the properties inside the 
iterator tag.but how to declare those properties dynamically in the ActionForm class?

Thanks
Otávio Augusto

On Fri, 16 Jan 2004 08:56:16 -0800
"Trieu, Danny" <[EMAIL PROTECTED]> wrote:

> Use indices properties...
> 
> Danny Trieu 
> Internet Business Group 
> Downey Savings and Loan Association, F.A. 
> [EMAIL PROTECTED]
> (949) 509-4564
> 
> "The beginning of knowledge is the discovery of something we do not
> understand."
> - Frank Herbert (1920-1986)
> "The essence of knowledge is, having it, to apply it; not having it, to
> confess your ignorance."
> - Confucius (551-479 BC)
> 
> 
> 
> 
> -Original Message-
> From: Otávio Augusto [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 16, 2004 7:29 AM
> To: [EMAIL PROTECTED]
> Subject: dynamic form
> 
> 
> Hi all
> 
> I have a form which has as many fields as are informed in a previous form.
> For instance: form 1 asks the number of fields i want in form 2. After
> inputting that number, i go to form 2, and there I must find the number of
> fields (same fields, they are going to be indexed="true"). What should I
> implement in the ActionForm class to handle such fields? How to catch such
> fields in the ActionForm class and in the Action class?
> 
> Thanks a lot
> 
> Otávio Augusto
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> This message and any attachments are for the intended recipient(s) only and may 
> contain privileged, confidential and/or proprietary information about Downey Savings 
> or its customers, which Downey Savings does not intend to disclose to the public. If 
> you received this message by mistake, please notify the sender by reply e-mail and 
> delete the message and attachments.
> 
> -
> 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]



[General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Konrad
Hello.

In my custom taglib's doStartTag() method, I stored a
value in the session, as follows:

CustomTag
=
public void doStartTag() {
   
  
this.pageContext.getSession().setAttribute("endIdx",new
Integer(9));
}


I am trying to reference that value in JSTL's
 tag, as in the following .jsp snippet:


test.jsp


  


   



Basically, above, I am trying to dynamically set the
ending index of the forEach tag, based on the value
calculated in CustomTag.

However, forEach's "end" attribute is resolving to 0
instead of 9, which was set in the CustomTag's
doStartTag() method.

Is there a way to ensure that CustomTag executes "in
advance" such that forEach's "end" tag can correctly
reference the value set in the session?

Thank you.


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Martin Cooper

"Konrad" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello.
>
> In my custom taglib's doStartTag() method, I stored a
> value in the session, as follows:
>
> CustomTag
> =
> public void doStartTag() {
>
>
> this.pageContext.getSession().setAttribute("endIdx",new
> Integer(9));

Try this instead:

pageContext.setAttribute("endIdx", new Integer(9),
PageContext.SESSION_SCOPE);

--
Martin Cooper


> }
>
>
> I am trying to reference that value in JSTL's
>  tag, as in the following .jsp snippet:
>
>
> test.jsp
> 
>
>   
>
>  end="${endIdx}">
>
> 
>
>
> Basically, above, I am trying to dynamically set the
> ending index of the forEach tag, based on the value
> calculated in CustomTag.
>
> However, forEach's "end" attribute is resolving to 0
> instead of 9, which was set in the CustomTag's
> doStartTag() method.
>
> Is there a way to ensure that CustomTag executes "in
> advance" such that forEach's "end" tag can correctly
> reference the value set in the session?
>
> Thank you.
>
>
> __
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/




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



RE: Issues when reusing a DynaValidatorForm

2004-01-16 Thread Richard Hightower
about your earlier message ok i did misunderstand


okay



did you know bean:message not only takes a key but the trinity of
attributes...

i define the trininty of attributes as name, property, scope


thus,




the above would call simpleForm.getWidgetDescription(), which would return a
key into the resouce bundle. just prep the form before you got to the page
by going to an action that loads the form page.


As far as validation goes.

Hm.

Did you know that validation is not keyed off of the form name
(name="fooForm"), but off of the attribute (attribute="fooForm")? (I found
out the hard way).

You could use two action mappings, one for one type of message, one for the
other type of message by messages I mean form labels. Then you would need to
entries for the form in the validation.xml file as well.




-Original Message-
From: Janice [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:40 AM
To: [EMAIL PROTECTED]
Subject: Issues when reusing a DynaValidatorForm


Thanks Richard, but I think mayhaps I didn't explain myself very well the
first time, because I'm not sure that a mapped backed property will do it
for me.  That or I just don't understand what a mapped backed property is :)

I want a "name" property on all of the forms that are using my
DynaValidatorForm, but I want the text next to the field to read something
different.  So its the  that I want to
change from page to page.  So far simply having distinct .jsps is working,
but I'd like to reduce the duplicated code.

The validator is the other part of the problem... so far its looking like
this:

  

  
  .
But I want the key to be page specific.

Thanks,
Janice


-
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: [REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Richard Hightower
i don't think you need bean:write.

did you know bean:message not only takes a key but the trinity of
attributes...

i define the trininty of attributes as name, property, scope


thus,




the above would call simpleForm.getWidgetDescription(), which would return a
key into the resouce bundle. just prep the form before you got to the page
by going to an action that loads the form page.

Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring



-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:38 AM
To: [EMAIL PROTECTED]
Subject: [REPOST] Bean:message arg0 substitution problem


Good Afternoon Everyone,

I am trying to complete the following code:


" />






The substitution at arg0 isn't working. How do I do delimit the
bean:write inside my bean:message tag?

Thanks

Mark

--
Black holes are where God divided by zero.


-
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: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Konrad
Thank you Martin!  :)

Also, do you happen to know if this is possible:









When I use  outside of the 
tag, it correctly displays the value.  However, when I
try using  in the "end" attribute of
, it keeps saying:

"An exception occurred when trying to convert String
'' into 'java.lang.Integer'." (null)

 is trying to output an Integer value
using the JspWriter, but it appears that it is always
converted into text/String.

Is there any way to accomplish the syntax/logic listed
in the JSP code above?

Thank you, and have a nice weekend!  :)



--- Martin Cooper <[EMAIL PROTECTED]> wrote:
> 
> "Konrad" <[EMAIL PROTECTED]> wrote in message
>
news:[EMAIL PROTECTED]
> > Hello.
> >
> > In my custom taglib's doStartTag() method, I
> stored a
> > value in the session, as follows:
> >
> > CustomTag
> > =
> > public void doStartTag() {
> >
> >
> >
>
this.pageContext.getSession().setAttribute("endIdx",new
> > Integer(9));
> 
> Try this instead:
> 
> pageContext.setAttribute("endIdx", new
> Integer(9),
> PageContext.SESSION_SCOPE);
> 
> --
> Martin Cooper
> 
> 
> > }
> >
> >
> > I am trying to reference that value in JSTL's
> >  tag, as in the following .jsp snippet:
> >
> >
> > test.jsp
> > 
> >
> >   
> >
> >  > end="${endIdx}">
> >
> > 
> >
> >
> > Basically, above, I am trying to dynamically set
> the
> > ending index of the forEach tag, based on the
> value
> > calculated in CustomTag.
> >
> > However, forEach's "end" attribute is resolving to
> 0
> > instead of 9, which was set in the CustomTag's
> > doStartTag() method.
> >
> > Is there a way to ensure that CustomTag executes
> "in
> > advance" such that forEach's "end" tag can
> correctly
> > reference the value set in the session?
> >
> > Thank you.
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



HttpClient RE: Need help forming Response object

2004-01-16 Thread Richard Hightower
I have done the same type of thing before You want HttpClient.

http://jakarta.apache.org/commons/httpclient/

Rick Hightower
Developer


Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring

-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:24 AM
To: [EMAIL PROTECTED]
Subject: Need help forming Response object


I would like to be able to construct a HTTP POST
response and send it to a specific server. This would
be outside of a typical client request/response chain.


What is happening (perhaps there is a better way to do
this?) is a new user signs up for a member account on
our website. The form is processed and the user data
is saved to the database. If at registration time the
user indicates they would like to sign up for our
mailing list (as most do) then I need to send an HTTP
POST response to our third-party email list provider
with the user's information. The email list provider
has a sign-up form on their site customized for my
list but we don't want the user to have to basicaly
input the data twice, once on my site and once on the
email list provider site. So this response i'd like to
construct will be sent to the URL shown in the form's
ACTION parameter.

Can anyone point me in the right direction here?

I really appreciate it guys.

-Dan


-
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: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Richard Hightower
weird

i wonder if page index is putting white space in?


"9 "

instead of "0"

do this



and see if you get ##9## or ##9 ##

-Original Message-
From: Konrad [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 3:39 PM
To: Struts Users Mailing List
Subject: Re: [General TagLib question] Custom TagLib storing value in
PageContext/session and reference by Standard JSTL?


Thank you Martin!  :)

Also, do you happen to know if this is possible:









When I use  outside of the 
tag, it correctly displays the value.  However, when I
try using  in the "end" attribute of
, it keeps saying:

"An exception occurred when trying to convert String
'' into 'java.lang.Integer'." (null)

 is trying to output an Integer value
using the JspWriter, but it appears that it is always
converted into text/String.

Is there any way to accomplish the syntax/logic listed
in the JSP code above?

Thank you, and have a nice weekend!  :)



--- Martin Cooper <[EMAIL PROTECTED]> wrote:
> 
> "Konrad" <[EMAIL PROTECTED]> wrote in message
>
news:[EMAIL PROTECTED]
> > Hello.
> >
> > In my custom taglib's doStartTag() method, I
> stored a
> > value in the session, as follows:
> >
> > CustomTag
> > =
> > public void doStartTag() {
> >
> >
> >
>
this.pageContext.getSession().setAttribute("endIdx",new
> > Integer(9));
> 
> Try this instead:
> 
> pageContext.setAttribute("endIdx", new
> Integer(9),
> PageContext.SESSION_SCOPE);
> 
> --
> Martin Cooper
> 
> 
> > }
> >
> >
> > I am trying to reference that value in JSTL's
> >  tag, as in the following .jsp snippet:
> >
> >
> > test.jsp
> > 
> >
> >   
> >
> >  > end="${endIdx}">
> >
> > 
> >
> >
> > Basically, above, I am trying to dynamically set
> the
> > ending index of the forEach tag, based on the
> value
> > calculated in CustomTag.
> >
> > However, forEach's "end" attribute is resolving to
> 0
> > instead of 9, which was set in the CustomTag's
> > doStartTag() method.
> >
> > Is there a way to ensure that CustomTag executes
> "in
> > advance" such that forEach's "end" tag can
> correctly
> > reference the value set in the session?
> >
> > Thank you.
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
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: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Martin Cooper

"Konrad" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thank you Martin!  :)
>
> Also, do you happen to know if this is possible:
>
>
>  end="">

This is not legal JSP (or XML) syntax. You cannot use a tag in the value of
an attribute of another tag.

You could, however, do something like this instead:




--
Martin Cooper


>
> 
>
> 
>
>
> When I use  outside of the 
> tag, it correctly displays the value.  However, when I
> try using  in the "end" attribute of
> , it keeps saying:
>
> "An exception occurred when trying to convert String
> '' into 'java.lang.Integer'." (null)
>
>  is trying to output an Integer value
> using the JspWriter, but it appears that it is always
> converted into text/String.
>
> Is there any way to accomplish the syntax/logic listed
> in the JSP code above?
>
> Thank you, and have a nice weekend!  :)
>
>
>
> --- Martin Cooper <[EMAIL PROTECTED]> wrote:
> >
> > "Konrad" <[EMAIL PROTECTED]> wrote in message
> >
> news:[EMAIL PROTECTED]
> > > Hello.
> > >
> > > In my custom taglib's doStartTag() method, I
> > stored a
> > > value in the session, as follows:
> > >
> > > CustomTag
> > > =
> > > public void doStartTag() {
> > >
> > >
> > >
> >
> this.pageContext.getSession().setAttribute("endIdx",new
> > > Integer(9));
> >
> > Try this instead:
> >
> > pageContext.setAttribute("endIdx", new
> > Integer(9),
> > PageContext.SESSION_SCOPE);
> >
> > --
> > Martin Cooper
> >
> >
> > > }
> > >
> > >
> > > I am trying to reference that value in JSTL's
> > >  tag, as in the following .jsp snippet:
> > >
> > >
> > > test.jsp
> > > 
> > >
> > >   
> > >
> > >  > > end="${endIdx}">
> > >
> > > 
> > >
> > >
> > > Basically, above, I am trying to dynamically set
> > the
> > > ending index of the forEach tag, based on the
> > value
> > > calculated in CustomTag.
> > >
> > > However, forEach's "end" attribute is resolving to
> > 0
> > > instead of 9, which was set in the CustomTag's
> > > doStartTag() method.
> > >
> > > Is there a way to ensure that CustomTag executes
> > "in
> > > advance" such that forEach's "end" tag can
> > correctly
> > > reference the value set in the session?
> > >
> > > Thank you.
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/




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



RE: [General TagLib question] Custom TagLib storing value in PageContext/session and reference by Standard JSTL?

2004-01-16 Thread Richard Hightower
Doh! I should have caught that.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Friday, January 16, 2004 5:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [General TagLib question] Custom TagLib storing value in
PageContext/session and reference by Standard JSTL?



"Konrad" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thank you Martin!  :)
>
> Also, do you happen to know if this is possible:
>
>
>  end="">

This is not legal JSP (or XML) syntax. You cannot use a tag in the value of
an attribute of another tag.

You could, however, do something like this instead:




--
Martin Cooper


>
> 
>
> 
>
>
> When I use  outside of the 
> tag, it correctly displays the value.  However, when I
> try using  in the "end" attribute of
> , it keeps saying:
>
> "An exception occurred when trying to convert String
> '' into 'java.lang.Integer'." (null)
>
>  is trying to output an Integer value
> using the JspWriter, but it appears that it is always
> converted into text/String.
>
> Is there any way to accomplish the syntax/logic listed
> in the JSP code above?
>
> Thank you, and have a nice weekend!  :)
>
>
>
> --- Martin Cooper <[EMAIL PROTECTED]> wrote:
> >
> > "Konrad" <[EMAIL PROTECTED]> wrote in message
> >
> news:[EMAIL PROTECTED]
> > > Hello.
> > >
> > > In my custom taglib's doStartTag() method, I
> > stored a
> > > value in the session, as follows:
> > >
> > > CustomTag
> > > =
> > > public void doStartTag() {
> > >
> > >
> > >
> >
> this.pageContext.getSession().setAttribute("endIdx",new
> > > Integer(9));
> >
> > Try this instead:
> >
> > pageContext.setAttribute("endIdx", new
> > Integer(9),
> > PageContext.SESSION_SCOPE);
> >
> > --
> > Martin Cooper
> >
> >
> > > }
> > >
> > >
> > > I am trying to reference that value in JSTL's
> > >  tag, as in the following .jsp snippet:
> > >
> > >
> > > test.jsp
> > > 
> > >
> > >   
> > >
> > >  > > end="${endIdx}">
> > >
> > > 
> > >
> > >
> > > Basically, above, I am trying to dynamically set
> > the
> > > ending index of the forEach tag, based on the
> > value
> > > calculated in CustomTag.
> > >
> > > However, forEach's "end" attribute is resolving to
> > 0
> > > instead of 9, which was set in the CustomTag's
> > > doStartTag() method.
> > >
> > > Is there a way to ensure that CustomTag executes
> > "in
> > > advance" such that forEach's "end" tag can
> > correctly
> > > reference the value set in the session?
> > >
> > > Thank you.
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/




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



JSTL: equivalent for errors and javascript

2004-01-16 Thread Pedro Salgado

  Does anyone know the JSTL equivalent for:


   
   
   
  
   
   
   


  And

  

  ?

  What I need is to know where the errors are stored... ?
  The equivalent must be something like:


   
   
   
  
   
   
   


  For the javascript version... I think it would be something like:

  

Pedro Salgado


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



  1   2   >