Re: calling DispatchAction when clicked Refresh on Browser

2006-02-09 Thread Ext . Ilitia2

Hi,

  A few days ago, someone put in this list a message with a URL from
where you could donwload a pdf about Struts. I don't remember the url, but
the title of the book is "Struts survival guide" and the author is Srikanth
Shenoy. Maybe someone can remenber it and reply.

  In the chapter 4 dot 8 you can found the answer.

  Maybe reading you can learn something and in this way, you haven't to
ask it :P

  I hope help you.

P.D.
  Sorry for my English.





   
  "fea jabi"
   
  <[EMAIL PROTECTED]To:   
user@struts.apache.org
  m>   cc:  
   
   bcc: 
   
  09/02/2006 16:59 Subject:  calling DispatchAction 
when clicked Refresh on Browser
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




I my JSP I am having a button "Add", which adds a row to the table when
clicked and this code is in DispatchAction. i.e adding one more object to
my
table List.

Everything works fine.

When I click on the Refresh on the toolbar of the browser, I am seeing that

it tries to execute this Add method, and adding one more row.

why is that? How to prevent the same?

Thanks.

_
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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







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



Re: html:file OutOfMemoryError

2006-02-03 Thread Ext . Ilitia2

Hi Joscar,

  In this occasion I can't help you, but as now I know that you are in
this list, I will try pay attention in all mails that I will receive.

  Saludos tío.







   
  "Moreno Herranz,  
   
  Jose Luis"   To:   Struts Users Mailing 
List 
  <[EMAIL PROTECTED]cc: 

  om>  bcc: 
   
   Subject:  html:file 
OutOfMemoryError
  03/02/2006 09:12  
   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Hi everybody.
I've got something like that

<[EMAIL PROTECTED] import="es.mcs.datos.colectivos.SalidaDesCod"%>
<[EMAIL PROTECTED] import="java.util.*"%>

function refresh(){
 document.forms[0].action = "refrescaPersonasColectivo.do";
//this is
the same action that loads this jsp in order

//to refresh the page with the data of the html:file
}





 
 Load
File




The problem is that i can load an external file, call the same action that
loads this page and reload this page with the data of the external file (an
Excel file in this case).
But if i do this once again, i get an OutOfMemoryError exception.

I dont know what is the cause, because i've got a FormFile in the
ActionForm
and i include a statement setting the corresponding FormFile property to
null in the reset() method.
Everythig seems to be ok.

Can anybody help me?
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: What to do...what to do...

2006-01-13 Thread Ext . Ilitia2

Hi Mark,

  I'm not sure, but I think that the problem is the access to
database When you set the user in MySql, you have to put the machine's
ip (or dns)  from it connects If this users was configurate only with
your machine's ip, it could be the reason

  bye.




 
  Murray Collingwood
 
  cc:
 
 bcc:   
 
  12/01/2006 13:47   Subject:  What to do...what to 
do...
  Please respond to 
 
  "Struts Users 
 
  Mailing List" 
 

 

 

 

 

 




 Hi folks

I have a problem with one of my new sites not connecting to the MySQL
database.  I believe the problem is  definitely in the context.xml, however
different things happen when I move the app between two servers.  You can
see the site at http://www.pancakemanor.com.au and although it looks like
there is data coming up I can assure this is the hardcoded sample text I
display if there are no records from the database.




When running on my ISP hosts machine the app fails to connect to the
database.  Not sure of the message, my ISP wouldn't send them.  If I run
the
app locally on my Tomcat server and connect to my database at the ISP it
works fine.

What makes it worse is the email I received today.  They're pulling support
for Tomcat and leaving me in the lurch.  Check out the email below.  Does
anybody have any ideas what I should try and do?

Kind regards
Murray


Hi Murray,
We have closely examined the server configuration and operation, we have
experimented with modifing various parts of the configuration.

We can see the logs on the database server, and we know that the website
is not even attempting to make a connection when the website is browsed.
We can see regular entries for the other sites in the database logs, and
can safely assume that the associated websites are functioning correctly.
e.g. *http://www.backpackers-express.com/* and
*http://www.focus-computing.com.au/*
**
**The most we will do is deploy the war file as supplied, if it doesn't
work, we can not assume responsibility.

As Bill is no longer with Actrix, Actrix is no longer able to support JSP
in the form provided by Bill as he had a unique skill set around this
product.

Management has made the decision to halt further development on JSP
under Windows. We are hoping to offer the service again in 3-6 months on
a unix platform where we can support it with our current skill set.
---
Regards,
Mark Munro.
<[EMAIL PROTECTED]>






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



Re: Plz help if anyone has any idea about this: Portlet Connecting to JNDI source

2005-12-28 Thread Ext . Ilitia2

Hi,

  You can try with "java:comp/env/jdbc/waps" instead of "jdbc/waps"




  
  "Meenakshi Singh" 
  
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List \(E-mail\)"
  fotech.com> cc:   
  
  bcc:  
  
  28/12/2005 11:00Subject:  Plz help if 
anyone has any idea about this:  Portlet Connecting to JNDI   
  Please respond tosource   
  
  "Struts Users Mailing 
  
  List" 
  

  

  

  

  

  






Hello Everyone,

I am new to portlet development & facing a problem for quite some time now.
I am using Websphere portal server 5.0.2.3. I have developed a portlet
which
uses a JNDI data source. I have made the JNDI source in Websphere
application server & have also tested the connection. It returns
successful.
I have the following code in my portlet to connect to the database(which is
a SQLServer Database).

ctx  = new InitialContext();
dataSource = (DataSource)ctx.lookup("jdbc/waps");
conn=ds.getConnection();

However, when I deploy the portlet on portal server & try to run it, it
gives a null pointer exception as it is not able to get the data source.
It's not able to lookup the jndi source.
Is there any configuration that needs to be done on the portal server.
If yes, then would anybody please help & list out the steps to me.

Please help, it's urgent,
Thanks & Regards,
Meenakshi.


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







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



Problem with resources file

2005-12-28 Thread Ext . Ilitia2

Hi,

  I'm trying run an application but I'm geting an error because it
don't found the resources file. I have put it into classes folder, but it
don't work. I remember I had to put a property into web.xml to indicate
where is this file, which I don't remember.

  Anybody help me?

  Thankx



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



Re: Specify a file name when using DownloadAction

2005-12-15 Thread Ext . Ilitia2

Hi,

  You can try with this, for me work fine

// Set the headers.
res.setContentType("application/x-download");
res.setHeader("Content-Disposition", "attachment; filename=" + filename);

// Send the file.
OutputStream out = res.getOutputStream(  );
returnFile(filename, out);  // Shown earlier in the chapter







 
  "Vu, Thai"
 
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List" 
  com> cc:  
 
   bcc: 
 
  15/12/2005 19:56 Subject:  Specify a file name 
when using DownloadAction   
  Please respond to 
 
  "Struts Users 
 
  Mailing List" 
 

 

 

 

 

 




Does anybody know how to specify a file name when we use DownloadAction
to send a file to users?

Sincerely,

Thai


-
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: Donwload files

2005-11-17 Thread Ext . Ilitia2

Thanks... it works

Verdad.





   
  "Martin Gainty"   
   
  <[EMAIL PROTECTED]To:   <[EMAIL PROTECTED]>   
   
  com> cc:   
  
   bcc: 
   
  17/11/2005 15:17 Subject:  Re: Donwload files 
   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




you have to setContentType to application/x-download
then set the Content Dispostion to attachment
// Set the headers.
res.setContentType("application/x-download");
res.setHeader("Content-Disposition", "attachment; filename=" + filename);

// Send the file.
OutputStream out = res.getOutputStream(  );
returnFile(filename, out);  // Shown earlier in the chapter

Verdad?
M-
- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Thursday, November 17, 2005 6:44 AM
Subject: Donwload files


> Hi,
>
> I have a appli lets download a file. My problem is what dialog box show
as
> file name 'anything.do' instead real file name.
> I remenber to read something about this, but I don't now know where
>
> Anyboy can remenber it?
>
>
>
> -
> 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]



Donwload files

2005-11-17 Thread Ext . Ilitia2
Hi,

I have a appli lets download a file. My problem is what dialog box show as
file name 'anything.do' instead real file name.
I remenber to read something about this, but I don't now know where

Anyboy can remenber it?



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



Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Ext . Ilitia2

Hi,

  I'm not sure, but I think you have several mistakes...

  First, You have put "CustForm" in the property name of the form, but
in the property name of the action you have put "SetupForm" and in the
class you have put "CustForm" again

  In the jsp you have put "" I think the correct  would be
"   cc:  
   
   bcc: 
   
  16/11/2005 15:52 Subject:  No getter method 
servlet Exception. using DynaActionForm  
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




I am trying to use the DynaActionForm.






 

 

 



public class PrepareCustAction extends Action {

public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws ServletException, IOException{
DynaActionForm setupForm = (DynaActionForm) form;

ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request,
getServlet().getServletContext());
FormBeanConfig formConfig =
moduleConfig.findFormBeanConfig("CustForm");
DynaActionFormClass dynaClass =
DynaActionFormClass.createDynaActionFormClass(formConfig);

try {
setupForm = (DynaActionForm)dynaClass.newInstance();
}
catch (Exception e) {
//logger.error(e);
}


return mapping.findForward("success");
}



..
...













 





















 






.
...
   

I am just trying to launch the jsp. Later would like to prepopulate the
formbean too.

But when when trying to lauch the jsp getting the below error


javax.servlet.ServletException: No getter method for property custName of
bean org.apache.struts.taglib.html.BEAN

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)


org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)


what am I missing?

Thanks.

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


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







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



Problem with a property

2005-10-26 Thread Ext . Ilitia2
Hi,

I have an object ('A') in session that I recover form a jsp whit the tag
.

This object ('A') contains another object ('B'). And is form this ('B') I
want to recover a property
that use it like value into text's field. In this case, a 

How can I do? thanks





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



Re: Problems with script in JSP

2005-10-24 Thread Ext . Ilitia2

Hi,

  I think the problem is to use a scriptlet like this "<%= %>" into a
tag.

  I don't know if exist a way to do this, but this is not the way.





   
  Eider Iturbe  
   
  <[EMAIL PROTECTED]To:   Struts Users Mailing 
List 
  es>  cc:  
   
   bcc: 
   
  24/10/2005 09:18 Subject:  Problems with script 
in JSP   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Hi all!

I have a problem: Tomcat can't compile next code of a JSP:




The problem is the script part: "<%=fechabaja%>".

Can anyone help me, please? Thanks!

Eider

-
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: Please post this message on the users list

2005-10-21 Thread Ext . Ilitia2

Did you try to put "ActionMessages.GLOBAL_MESSAGE" in





I don't know, but I think that could work.




   
  Sonali Kulkarni   
   
  <[EMAIL PROTECTED]To:   
user@struts.apache.org
  >cc:  
   
   bcc: 
   
  21/10/2005 17:14 Subject:  Please post this 
message on the users list
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Subject: Problem using ActionMessages. Please Help!
  I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I
am trying to change the error handling bit. However, I get the
following error with the code changes I have made. Please let me know
if any of you can figure out what can fix it.

MY CODE: In the Action Class
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
("error.warning", "Some Error String"));
saveMessages(request, messages);
return (mapping.findForward("error")); //redirects to error.jsp

MY CODE: error.jsp




MY CODE: in ApplicationResources.properties
error.error =Error: {0}
error.warning =Warning: {0}

MY CODE: in struts-config.xml (reference to properties file)


ERROR I GET >>
javax.servlet.jsp.JspException: Cannot find bean msss in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:934)
at org.apache.struts.taglib.bean.WriteTag.doStartTag
WriteTag.java:225) at _web_2d_inf._error._jspService(_error.java:116)
[SRC:/WEB-INF/error.jsp:45]

 --- Line # 45 in error.jsp

NOTE: If I dont use the Application Resources when creating the
ActionMessage, and use a string instead .. It works!
ActionMessage ae1 = new ActionMessage("This is a ERROR", false); works






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



Re: Struts in Tomcat

2005-10-21 Thread Ext . Ilitia2
Hi,

  I guess that your problem is because in your page inicio.jsp you have
put a key that not exist in the resources file that you have declared in
the strut's configuration file.

  I hope help you.


Juan José Cuadrado Salomón
Software Developer
Mobile Phone: +34 654 37 38 59 ::: Email: [EMAIL PROTECTED]


  
  ilitia Technologies SRL 
  Cerro del Águila, 9 - 28700 S. Sebastián de los 
  Reyes - Madrid  
  Teléfono: +34 91 652 58 08 ::: Fax: +34 91 623  
  84 68 ::: Web: www.ilitia.com   
  






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



Re: request attribute in jsp - please advice

2005-09-06 Thread Ext . Ilitia2

Hi,

  I don't know but... Can you put a hidden field into form with the
value of attribute? Maybe solve your problem...







   
  "Rivka Shisman"   
   
  <[EMAIL PROTECTED]To:   "Struts Users Mailing 
List"   
  l>   cc:  
   
   bcc: 
   
  06/09/2005 18:27 Subject:  request attribute in 
jsp - please advice  
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Hello friends

I have an EditStudent.jsp page in which I have a form. Before the form
tag I get a request attribute called 'listIndex'. But, when my
validate() method fails on field validation it returns back to the above
mentioned jsp page with an appropriate message. That is o.k. - the
problem is that this causes the removal of the request attribute that
was originally set by the EditStudentAction.

So what I do now in the jsp page is something like this:

<% int listIndex = 0;

  If (request.getAttribute("index") != null){

listIndex = request.getAttribute("index");

  }else{

 If (request.getParameter("myIndex") != null){

listIndex = request.getParameter("myIndex");

}

%>

And then under the  I have an hidden input like:



When the validate{} fails the - getParameter("myIndex") - enables me to
restore my request attribute via the hidden parameter.

Do you know a nicer way to do it?



Thanks

Rivka




-
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: TagHandlerPool, Struts 1.2.7 and Tomcat 5.5

2005-08-25 Thread Ext . Ilitia2

I don't know exactly what means, but is likely that you haven't include the
call appropriate to tld into head of jsp or the file (tld) into correct
directory. Besides maybe that don't are finding the resouces file or that
this haven't the key searched.

I hope help you.




   
  javendo   
   
  <[EMAIL PROTECTED]To:   Struts Users Mailing 
List 
  m.br>cc:  
   
   bcc: 
   
  25/08/2005 07:31 Subject:  Re: TagHandlerPool, 
Struts 1.2.7 and Tomcat 5.5   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Thanks  but .
?
org.apache.struts.taglib.bean.MessageTag _jspx_th_bean_message_0 = new
org.apache.struts.taglib.bean.MessageTag();
?
What does it mean

[EMAIL PROTECTED] wrote:

>hi,
>  Have you tried to look into login_jsp.java file (in the line 135)
>that is in the directory "work"?
>
>  Is likely that in this line you will find the motive of the error.
>
>
>
>
>

>  javendo

>  <[EMAIL PROTECTED]To:
user@struts.apache.org

>  m.br>cc:

>   bcc:

>  25/08/2005 07:00 Subject:  TagHandlerPool,
Struts 1.2.7 and Tomcat 5.5
>  Please respond to

>  "Struts Users

>  Mailing List"

>

>

>

>

>

>
>
>
>
>Hi,
>I am trying to port a web-application originally written with Tomcat 4.1
>to Tomcat 5.5. The application uses struts and throws the following
>exception when launched:
>
>23:34:22,953 ERROR [login_jsp]] Servlet.service() for servlet
>login.login_jsp threw exception
>java.lang.NullPointerException
>   at
>org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:131)
>   at login.login_jsp._jspx_meth_bean_message_0(login_jsp.java:135)
>   at login.login_jsp._jspx_meth_html_html_0(login_jsp.java:96)
>   at login.login_jsp._jspService(login_jsp.java:70)
>   at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

>
>
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

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

>
>
>   at
>org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

>
>
>   at
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

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

>
>
>   at
>org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

>
>
>   at
>org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

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

>
>
>   at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>   at
>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
>   at javax.servlet.http.HttpServlet.service(Htt

Re: TagHandlerPool, Struts 1.2.7 and Tomcat 5.5

2005-08-25 Thread Ext . Ilitia2

hi,
  Have you tried to look into login_jsp.java file (in the line 135)
that is in the directory "work"?

  Is likely that in this line you will find the motive of the error.





   
  javendo   
   
  <[EMAIL PROTECTED]To:   
user@struts.apache.org
  m.br>cc:  
   
   bcc: 
   
  25/08/2005 07:00 Subject:  TagHandlerPool, Struts 
1.2.7 and Tomcat 5.5   
  Please respond to 
   
  "Struts Users 
   
  Mailing List" 
   

   

   

   

   

   




Hi,
I am trying to port a web-application originally written with Tomcat 4.1
to Tomcat 5.5. The application uses struts and throws the following
exception when launched:

23:34:22,953 ERROR [login_jsp]] Servlet.service() for servlet
login.login_jsp threw exception
java.lang.NullPointerException
   at
org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:131)
   at login.login_jsp._jspx_meth_bean_message_0(login_jsp.java:135)
   at login.login_jsp._jspx_meth_html_html_0(login_jsp.java:96)
   at login.login_jsp._jspService(login_jsp.java:70)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)


   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)


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


   at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)


   at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)


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


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


   at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)


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


   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
   at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)


   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)


   at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)


   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)


   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)


   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)


   at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)


   at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)


   at
org.jboss.web.tomcat.security.Jac

Re: another mutliple file uploading question

2005-07-15 Thread Ext . Ilitia2

I didn't  know... I always have used it in alone mode... and work fine for
my



|-+>
| |   "dumbQuestionsAsk|
| |   er _"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   15/07/2005 16:14 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   user@struts.apache.org  
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Re: another mutliple file uploading question
 |
  
>--|




Struts uses FileUploads(it's include in struts)

>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" 
>To: "Struts Users Mailing List" 
>Subject: Re: another mutliple file uploading question
>Date: Fri, 15 Jul 2005 16:03:25 +0200
>
>
>have you tried with Jakarta's proyect "commons-fileupload"?. Is really
>powerfull... but I don't know if is compatible with Struts...
>
>
>
>
>|-+>
>| |   "dumbQuestionsAsk|
>| |   er _"|
>| |   <[EMAIL PROTECTED]|
>| |   .com>|
>| ||
>| |   15/07/2005 13:54 |
>| |   Please respond to|
>| |   "Struts Users|
>| |   Mailing List"|
>| ||
>| ||
>| ||
>| ||
>|-+>
>
> >
|

>   |

> |
>   |   To:   user@struts.apache.org

> |
>   |   cc:

> |
>   |   bcc:

> |
>   |   Subject:  another mutliple file uploading question

> |
>
> >
|

>
>
>
>
>Hi,
>Im new to Struts, and I want to upload multiple files using only one
> tag.
>I made some googleling but I did not find anything working, only "that's
>not
>possible"-like answers.
>So my question is simple, is it really impossible to upload multiple files
>usng only one  ?
>
>Thanks in advance.
>
>regards, Dumbo:)
>
>_
>MSN Hotmail : choisissez votre adresse @hotmail.fr
>http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
>
>
>-
>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]
>

_
MSN Hotmail : antivirus et antispam gratuits
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


-
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: another mutliple file uploading question

2005-07-15 Thread Ext . Ilitia2

have you tried with Jakarta's proyect "commons-fileupload"?. Is really
powerfull... but I don't know if is compatible with Struts...




|-+>
| |   "dumbQuestionsAsk|
| |   er _"|
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   15/07/2005 13:54 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  | 
   |
  |   To:   user@struts.apache.org  
   |
  |   cc:   
   |
  |   bcc:  
   |
  |   Subject:  another mutliple file uploading question
   |
  
>|




Hi,
Im new to Struts, and I want to upload multiple files using only one
 tag.
I made some googleling but I did not find anything working, only "that's
not
possible"-like answers.
So my question is simple, is it really impossible to upload multiple files
usng only one  ?

Thanks in advance.

regards, Dumbo:)

_
MSN Hotmail : choisissez votre adresse @hotmail.fr
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


-
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: Some advice

2005-07-15 Thread Ext . Ilitia2

Ok... mayby that an example

This is a posible ActionForm. the variable "flag" indicates the type of
validation that needs

public class CosaForm extends ActionForm {

  private String nombre = "";
  private String apellidos = "";
  private String telefono = "";
  private String direccion = "";
  private String flag = ""; //The hidden field

  public void reset(ActionMapping arg0, HttpServletRequest arg1) {
nombre = "";
apellidos = "";
telefono = "";
 direccion = "";
  }

  public ActionErrors validate(ActionMapping arg0, HttpServletRequest
arg1) {
ActionErrors errors = new ActionErrors();

if(flag.equals("onlyName")){
  if(nombre.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.name.void"));

else if(flag.equals("onlyAddresTelephone")){
  if(direccion.trim().length() == 0)
errors.add("validaForm", new ActionError
("error.addres.void"));

  else if(telefono.trim().length() == 0 || telefono.trim
().length() > 9)
errors.add("validaForm", new ActionError
("error.thelepone"));
  }

return errors;
  }



  /**
   *
   */
  public AnadirForm() {
  }

  public String getApellidos() {return apellidos;}
  public void setApellidos(String apellidos) {this.apellidos =
apellidos;}
  public String getNombre() {return nombre;}
  public void setNombre(String nombre) {this.nombre = nombre;}
  public String getTelefono() {return telefono;}
  public void setTelefono(String telefono) {this.telefono = telefono;}
  public String getDireccion() {return direccion;}
  public void setDireccion(String direccion) {this.direccion =
direccion;}

}



|-+>
| |   Rafael Taboada   |
| |  |
| ||
| |   15/07/2005 14:20 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  | 
   |
  |   To:   Struts Users Mailing List   
   |
  |   cc:   
   |
  |   bcc:  
   |
  |   Subject:  Re: Some advice 
   |
  
>|




Hi Basudeb Acharya for ur help... It's really that I want =)
 Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
 ActionErrors errors = ventaForm.validate(mapping,request);

if (errors==null || errors.isEmpty()) {
 //Do something because all is OK
}
else
saveErrors(request,errors);


--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"






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



Re: Some advice

2005-07-15 Thread Ext . Ilitia2

Hi,


  For the dot 1, you can put a hidden field in the form to indicate
waht type of validation you have to use. In the method validate of the
ActionForm, you will choice the fields you need validate depending hidden
field's value.

  I hope help you





|-+>
| |   Rafael Taboada   |
| |  |
| ||
| |   15/07/2005 10:14 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   Struts List 
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Some advice 
 |
  
>--|




Hi folks. I'm refining my project. I need to solve some inconveniences.
 1)In my validation, all work fine. But I have an action class for an
actionform. This action class extends dispatchaction because in my jsp i
have several buttons in order to submit something. My doubt is if there is
some way to validate only some fields. Because I want that 'search method'
validate only username and date fields, and 'drope method' validate only
chkBills field... How can I do that? I tried to use ValidatorActionForm
instead of ValidatorForm but it's the same because I have only one Action
and inside all my methods.
 2)When I want to fill some fields in a 'mother jsp' I use a 'child jsp',
this child search data from database and when I submit 'select button', it
closes itself and fill some fields of the mother jsp. But of course I don't

want the user modify those fields because it's only information. Those
fields are specified as:
 
 How can I disable this field in order to the user can't modify it?. I
tried
with 'disabled' option but I need this field in order to save this
information and when I use 'disabled="true"' there is an error because it
can't find that field. I tried to use html:hidden with write option but it
doesn't show the data...
 Thanks in advance for ur help.

--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"






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



Re: Alternate color in html:iterate

2005-07-13 Thread Ext . Ilitia2

another way:



" >




|-+>
| |   Marc Walter  |
| |   <[EMAIL PROTECTED]|
| |   ch.com>  |
| ||
| |   13/07/2005 17:13 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   "Struts Users Mailing List" 
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Re: Alternate color in html:iterate 
 |
  
>--|




Hi!

Try this:


class="odd"<% } else { %>class="even"<% } %>>

It works fine. Define the colours in your local css file for the classes
"odd" and "even".

Kind regards,
Marc Walter


-
Hi All,

I'm using html:iterate to display the set of records in the table. Is there
any way to put the alternate color using CSS classes in tag libraries


Thanks & Regards,
SenthilRajan VS



-
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: How to display a Java format string 'as is' in a Struts web app page?

2005-07-12 Thread Ext . Ilitia2

I think that you want to use the escape character... you have to use '\'
like this:

This is a Java\\tformat string\\nthat will be used by {0} to {1}




|-+>
| |   "Ian Hayes"  |
| |   <[EMAIL PROTECTED]|
| |   .com>|
| ||
| |   12/07/2005 09:08 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>|
  | 
   |
  |   To:   "Struts User"   
   |
  |   cc:   
   |
  |   bcc:  
   |
  |   Subject:  How to display a Java format string 'as is' in a Struts web 
app page?  |
  
>|




In one part of my Struts web app I want to display and then edit a Java
format string, like...

This is a Java\tformat string\nthat will be used by {0} to {1}

In my web app page I want to see all the '\' format text entries, but when
I
display this type of string in a Struts text area control the display
process translates the '\' chars and does not display them.

Is there a way to get around this and display the format string in its
original state?








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



Dinamic forms

2005-04-08 Thread Ext . Ilitia2
Hi,

  can your helpmy with a dinamic form with struts? I need an example of
a dinamic form, please

  thanks.



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



Re: Sorting of array lists

2005-03-10 Thread Ext . Ilitia2

sort it in the private method readPlanObjectFromDB... in the query DB
select * from my_table ORDER BY .



|-+>
| |   "Krishna Mohan   |
| |   Radhakrishnan"   |
| |   <[EMAIL PROTECTED]|
| |   nfosys.com>  |
| ||
| |   10/03/2005 09:35 |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
| ||
| ||
| ||
|-+>
  
>--|
  | 
 |
  |   To:   "Struts Users Mailing List" 
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Sorting of array lists  
 |
  
>--|





Hi all,

I have a doubt regarding sorting in array List.

I have an array List  which contains array list objects of type Plan.

The Plan object contains 3 variables : plantitle ,plandescription and
planname.

I have to sort the arraylist based on the plantitle first and then based
on the plandescription.


ArrayList list = new ArrayList();
Plan planobj = null;
For (i= 1, i<=100, i++){
planObj = readPlanObjectFromDB();
list.add(planObj);

}

//?? Now how to sort it


Private Plan readPlanObjectFromDB(){
//queries the database to return plan object

return plan;
}

I am totally confused. Even if use bubble sorting it will cause a lot of
performance issues.

Could any one please suggest me a good method?

Regards,
Krishna 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]