Re: JaspertReports Struts Problem
Anybody? 2007/10/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > > Hi all, > > I have a strange problem using JasperReports, actually I´m using > JDeveloper 10g and JasperReport 1.2.8. > > The problem start to appears without a reason, at least I don´t see a > reason for it. > > I use this for load my jasperReport from my application: > > //Parameters: > param.put("NAME", > String.valueOf(carne.getName())); > param.put("LASTNAME", > carne.getLastName().toString()); > > > > >ServletContext context = session.getServletContext(); > >File reportFile = new > File(context.getRealPath("/WEB-INF/reportes/carne.jasper")); > >InputStream report = new FileInputStream(reportFile); > >JasperPrint jp = JasperFillManager.fillReport (report, > param, new JREmptyDataSource()); > > > > I know that the reportFile its ok, because if I put a different direction > on it, it throws a not found exception. The problem is with the method > fillReport, now it dowsn´t works, the exception that I recivied is this one: > > > JRException with the message: Error loading object from InputStream, I > know that is not a version problem beacause I use IReports 1.2.8 , like I > said, all worked fine but suddenly not. > > Thanks for your help > > > > > >
JaspertReports Struts Problem
Hi all, I have a strange problem using JasperReports, actually I´m using JDeveloper 10g and JasperReport 1.2.8. The problem start to appears without a reason, at least I don´t see a reason for it. I use this for load my jasperReport from my application: //Parameters: param.put("NAME", String.valueOf(carne.getName())); param.put("LASTNAME", carne.getLastName().toString()); ServletContext context = session.getServletContext(); File reportFile = new File(context.getRealPath ("/WEB-INF/reportes/carne.jasper")); InputStream report = new FileInputStream(reportFile); JasperPrint jp = JasperFillManager.fillReport(report, param, new JREmptyDataSource()); I know that the reportFile its ok, because if I put a different direction on it, it throws a not found exception. The problem is with the method fillReport, now it dowsn´t works, the exception that I recivied is this one: JRException with the message: Error loading object from InputStream, I know that is not a version problem beacause I use IReports 1.2.8, like I said, all worked fine but suddenly not. Thanks for your help
Struts-DisplayTag(partial list)
Hello, I', using struts framework and displaytag 1.0, all works great. Now, I want to implement pagination using the the partial list (External Paging and Sorting) for displaying records (display tag 1.1 facility). I have this doubt: - For pagination we will be providing display tag only the records that required to be displayed from the full list i.e. if there are 500 records from backend populated in full list, we will be creating a partial list of desired records (say 50) from full list and then feeding this partial list to display tag ? - Or we will be querying backend only for the desired 50 records ? And if so how we take care for sorting, page number etc. ? Can someone share there experience for implementing partial list in display tags? Can someone give me some example code (what to put in the JSP, the action, dao, etc) Thanks!!!
Re: OutputStreamPath
Yes you are right, but what i have in the properties file is the database to which the user wants to connect, for example oracle or sql. Thanks 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set the path for the >> OutputStream like i get it for the InputStream with >> getResourceAsStream? > > I'm not sure you can do that, particularly since a > resource might be inside a JAR file or be located in a > place you do not have write acess to. Yup, there's no guarantee that the contents of a webapp can be written to in all deployment contexts. However, as long as you know you will be deploying it to a container that allows the file to be written to, you should be OK. > If you know that the properties file is in a specific > place and that it makes sense to write to it then I > would think you'd use typical file i/o and determine > the path via getRealPath. In your case, a simple change to the code you've already written should do the trick. Something like this (untested): URL res = Thread.currentThread() .getContextClassLoader() .getResource(pathToConfigurationFile); InputStream input = new FileInputStream(res); //Load the properties properties.load(input); input.close(); ... // Save the properties OutputStream out = new FileOutputStream(res); properties.store(out, ""); > It confuses me why you'd want to do this in a webapp, > though. Settings you are likely to modify from within > the app should be in a database, not a properties file > (IMO, anyway). Agreed. Or otherwise externalized, for example through JNDI or something. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutputStreamPath
I just see your answer, thanks!!! In fact is the same that the solution i Found, Thanls 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set the path for the >> OutputStream like i get it for the InputStream with >> getResourceAsStream? > > I'm not sure you can do that, particularly since a > resource might be inside a JAR file or be located in a > place you do not have write acess to. Yup, there's no guarantee that the contents of a webapp can be written to in all deployment contexts. However, as long as you know you will be deploying it to a container that allows the file to be written to, you should be OK. > If you know that the properties file is in a specific > place and that it makes sense to write to it then I > would think you'd use typical file i/o and determine > the path via getRealPath. In your case, a simple change to the code you've already written should do the trick. Something like this (untested): URL res = Thread.currentThread() .getContextClassLoader() .getResource(pathToConfigurationFile); InputStream input = new FileInputStream(res); //Load the properties properties.load(input); input.close(); ... // Save the properties OutputStream out = new FileOutputStream(res); properties.store(out, ""); > It confuses me why you'd want to do this in a webapp, > though. Settings you are likely to modify from within > the app should be in a database, not a properties file > (IMO, anyway). Agreed. Or otherwise externalized, for example through JNDI or something. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutputStreamPath
Got it: String path= Thread.currentThread().getContextClassLoader(). getResource(pathToConfigurationFile).getPath(); OutputStream out = new FileOutputStream(path); properties.store(out, ""); 2007/3/1, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Someone? Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion.properties"; InputStream input = Thread.currentThread().getContextClassLoader().getResourceAsStream( pathToConfigurationFile); //Load the properties properties.load(input); input.close (); //Set the property datasource properties.setProperty("datasource", datasource); //Now I want to save the changes to the properties file OutputStream out= new FileOutputStream( pathToConfigurationFile); properties.store(out, ""); //But an exception occurs and it tells me that the "common/properties/Configuracion.properties" was not found. How I can get the correct path for the outputStream like i did with the inputStream Thanks!!
OutputStreamPath
Someone? Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion.properties"; InputStream input = Thread.currentThread().getContextClassLoader().getResourceAsStream( pathToConfigurationFile); //Load the properties properties.load(input); input.close (); //Set the property datasource properties.setProperty("datasource", datasource); //Now I want to save the changes to the properties file OutputStream out= new FileOutputStream( pathToConfigurationFile); properties.store(out, ""); //But an exception occurs and it tells me that the "common/properties/Configuracion.properties" was not found. How I can get the correct path for the outputStream like i did with the inputStream Thanks!!
OutputStreamPath
Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion.properties"; InputStream input = Thread.currentThread ().getContextClassLoader().getResourceAsStream(pathToConfigurationFile); //Load the properties properties.load(input); input.close(); //Set the property datasource properties.setProperty("datasource", datasource); //Now I want to save the changes to the properties file OutputStream out= new FileOutputStream( pathToConfigurationFile); properties.store(out, ""); //But an exception occurs and it tells me that the "common/properties/Configuracion.properties" was not found. How I can get the correct path for the outputStream like i did with the inputStream Thanks!!
Quick Jdeveloper Question
Sorry for the question. 1- How can I see the Jdeveloper (10g) ram use window in the IDE?? 2- Some tips for reduce the ram use of JDeveloper?? Thanks, and again, sorry for this non struts question
Re: Performance issue
Thanks again Leon :) 2007/1/4, Leon Rosenberg <[EMAIL PROTECTED]>: there are 4 scopes or visibilities/lifecycles of attributes in the servlet/jsp world. page : the jsp page, same as local variable in a class. request: the duration of the request over multiple pages session: the duration of the user session, over multiple requests application scope: the whole webapp. However, talking about one of these scopes, you are always talking about _one_ server and _one_ webapp. So the application scope is something which belong to a) webapp and b) server in first line. As for multi-server environment - there are a lot of details here, and I don't really know whether yours handle application scope like a cluster-scope or not. I would assume that each server has its own copy created at the start of the server / deployment of the application. In my world, if I'd have to implement this requirement I would select one of two choices: In both: Create a service which manages the data and speaks to the db. Option 1. A thread in the application (or timer event, or scheduler) checks periodically (depending on the requirements it could be 1 minute or 15) with the service whether the local data is still up-to-date. This can be done by comparing version numbers or creation timestamps. If not the data in the application scope gets replaced. Option 2. Service distributes new versions of the data via some publisher/subscriber mechanism, like JMS, CORBA Event/NotificationService, or something you develop yourself. The subscriber resides in the webserver and puts updated data into the local application scope. Option 3. You may also use whatever capabilities your environment has, if any. But I'd be very careful with loadbalancing and scope distribution, 99.99% of what I saw sofar sucked badly. regards Leon On 1/4/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Thanks Leon!!! > > Ok I made it using the servletcontext like you have said :-), with this > > servlet.getServletContext().setAttribute("objHospital", objHospital); > > All works fine, even if the user made a mistake :) > > One question: > > 1- I dont understand something about the servletContext, which is the > problem of have multiple-server configuration? In both servers the data is > store in the servlet context right? I guess the problem is that in some > moment the objHospital in one server is diferent to the objHospital in other > server because it change in the database? Or that the actions of one war > don´t have the same servlet context that the actions on other war? I really > don´t understand this, can you explain me that, like i said all works fine > but i want to understand this. > > Thanks > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance issue
Thanks Leon!!! Ok I made it using the servletcontext like you have said :-), with this servlet.getServletContext().setAttribute("objHospital", objHospital); All works fine, even if the user made a mistake :) One question: 1- I dont understand something about the servletContext, which is the problem of have multiple-server configuration? In both servers the data is store in the servlet context right? I guess the problem is that in some moment the objHospital in one server is diferent to the objHospital in other server because it change in the database? Or that the actions of one war don´t have the same servlet context that the actions on other war? I really don´t understand this, can you explain me that, like i said all works fine but i want to understand this. Thanks
Re: Performance issue
Leon!!! something happen... I applied your solution putting the objects in the request in the preExecute method of the base action, and all works fine, but... when the user made a mistake, for example leave a required field in blank, and the ActionErrors validate method of the ActionForm return the errors, the jsp launch the following exception: javax.servlet.jsp.JspException: Cannot find bean under name objHospitals This only happen when the method validate of the actionErrors returns an error, why the request is lost or why the jsp don´t found the object? How can I solve this problem, thanks!!! Hope you can answer Leon 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: u welcome :-) L On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Thanks Leon!!!, I got it!!! > > 2007/1/2, Leon Rosenberg < [EMAIL PROTECTED]>: > > > > On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > > > Thanks > > > > > > Leon, about using the servlet context, I read that on a distributed > > > application the share information of the servlet context is not > > entererly > > > global right?: > > > > Right, but since the data is readonly its ok to have a copy per > > webserver, right? It doesn't harm you to put one data-object (even a > > complex one) in the application scope. If you need to check for > > updates periodically you could make use of the subject-observer > > pattern and notify the webservers from the business layer via > > rmi/corba/jms/whatever to renew their data or just check if the data > > is still valid and replace it if needed periodically in a separate > > daemon thread. > > > > > > > > *"...In the case of a web application marked "distributed" in its > > deployment > > > descriptor, there will be one context instance for each virtual machine. > > In > > > this situation, the context cannot be used as a location to share global > > > information (because the information won't be truly global). Use an > > external > > > resource like a database instead."* > > > > > > > > > About the second solution that you gave to me, I do not understand, you > > said > > > that for example in my BaseAction Class create a method to put the > > objects > > > in the request? The problem is that in every request the application > > will go > > > to the database to load the objects and then put them on the request! > > What I > > > do not understand is how to put the objects in the request without have > > to > > > go the database each time that a request is made and the method in the > > > BaseAction is call. > > > > BaseAction extends Action{ > > private static Data1Class data1; > > private static Data2Class data2; > > > > > > static{ > > data1 = createData1FromDB(); > > data2 = createData2FromDB(); > > } > > > > //now in my actions i have my own execute method, you may have > > something //similar: > > protected void preProcessExecute( > > ActionMapping mapping, > > ActionForm af, > > HttpServletRequest req, > > HttpServletResponse res) > > throws Exception{ > > > > req.setAttribute("data1", data1); > > req.setAttribute("data2", data2); > > . > > } > > > > protected void postProcessExecute( > > ActionMapping mapping, > > ActionForm af, > > HttpServletRequest req, > > HttpServletResponse res) > > throws Exception{ > > > > } > > > > public abstract ActionForward myExecute( > > ActionMapping mapping, > > ActionForm af, > > HttpServletRequest req, > > HttpServletResponse res) > > throws Exception; > > > > > > public final ActionForward execute( > > ActionMapping mapping, > > ActionForm bean, > > HttpServletRequest req, > > HttpServletResponse res) > > throws Exception { > > > > > > preProcessExecute(mapping, bean, req, res); > > ActionForward forward =
Re: Performance issue
Thanks Leon!!!, I got it!!! 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Thanks > > Leon, about using the servlet context, I read that on a distributed > application the share information of the servlet context is not entererly > global right?: Right, but since the data is readonly its ok to have a copy per webserver, right? It doesn't harm you to put one data-object (even a complex one) in the application scope. If you need to check for updates periodically you could make use of the subject-observer pattern and notify the webservers from the business layer via rmi/corba/jms/whatever to renew their data or just check if the data is still valid and replace it if needed periodically in a separate daemon thread. > > *"...In the case of a web application marked "distributed" in its deployment > descriptor, there will be one context instance for each virtual machine. In > this situation, the context cannot be used as a location to share global > information (because the information won't be truly global). Use an external > resource like a database instead."* > > > About the second solution that you gave to me, I do not understand, you said > that for example in my BaseAction Class create a method to put the objects > in the request? The problem is that in every request the application will go > to the database to load the objects and then put them on the request! What I > do not understand is how to put the objects in the request without have to > go the database each time that a request is made and the method in the > BaseAction is call. BaseAction extends Action{ private static Data1Class data1; private static Data2Class data2; static{ data1 = createData1FromDB(); data2 = createData2FromDB(); } //now in my actions i have my own execute method, you may have something //similar: protected void preProcessExecute( ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res) throws Exception{ req.setAttribute("data1", data1); req.setAttribute("data2", data2); . } protected void postProcessExecute( ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res) throws Exception{ } public abstract ActionForward myExecute( ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res) throws Exception; public final ActionForward execute( ActionMapping mapping, ActionForm bean, HttpServletRequest req, HttpServletResponse res) throws Exception { preProcessExecute(mapping, bean, req, res); ActionForward forward = myExecute(mapping, bean, req, res); postProcessExecute(mapping, bean, req, res); return forward; } } You just have to ensure, that when an Action overwrites preProcess it calls super.preProcess. The advantage of this method is, that actions at the end of the hierarchy have a chance to overwrite the data by the base action, which is quite useful for internationalization and such. Same rules for updates as for servletContext apply. regards Leon > > 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: > > > > The easiest way is to initialize the data once in the > > init(ServletConfig) method of the servlet and put them into the > > application scope (servletcontext). The struts tags will be able to > > access the data directly, so you don't need to change a bit. > > Of course the data structures theirself must be threadsafe to access, > > which shouldn't be a problem if you are only reading them. > > > > Alternatively you can perform this in a static initializer in a action > > and put them in the request scope of each request (if you have a > > common code block all actions are passing through, like authorization) > > or into the application scope on first request (which would need a bit > > of synchronization with double checked locking) > > > > regards > > leon > > > > On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > > > Hi all, I'm using struts framework on my application, but I have a > > > perfomance question. > > > > > > When my application starts I load objects
Re: Performance issue
Thanks Leon, about using the servlet context, I read that on a distributed application the share information of the servlet context is not entererly global right?: *"...In the case of a web application marked "distributed" in its deployment descriptor, there will be one context instance for each virtual machine. In this situation, the context cannot be used as a location to share global information (because the information won't be truly global). Use an external resource like a database instead."* About the second solution that you gave to me, I do not understand, you said that for example in my BaseAction Class create a method to put the objects in the request? The problem is that in every request the application will go to the database to load the objects and then put them on the request! What I do not understand is how to put the objects in the request without have to go the database each time that a request is made and the method in the BaseAction is call. 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: The easiest way is to initialize the data once in the init(ServletConfig) method of the servlet and put them into the application scope (servletcontext). The struts tags will be able to access the data directly, so you don't need to change a bit. Of course the data structures theirself must be threadsafe to access, which shouldn't be a problem if you are only reading them. Alternatively you can perform this in a static initializer in a action and put them in the request scope of each request (if you have a common code block all actions are passing through, like authorization) or into the application scope on first request (which would need a bit of synchronization with double checked locking) regards leon On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Hi all, I'm using struts framework on my application, but I have a > perfomance question. > > When my application starts I load objects in session that may or may not > will be used (depends on what the user does), for example I load the health > centers, hospitals, countries, etc, that will be available for the users in > html:selects, I know that to had many objects in session is not good, in > fact each time the user click on one application option (menu) all the > objects in session are erased, except the ones that I load on the start of > the application. Is there a way (maybe a pattern) to load this objects in > the moment that are needed, and not load all at the start of the > application. This object are use on differents modules so I load them on the > start of the aplication and put them in sesion for not to go to the database > each time I need to load them on a html:select. > > any solution, idea? or that is the only way? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Performance issue
-- Forwarded message -- From: Daniel Chacón Sánchez <[EMAIL PROTECTED]> Date: 02-ene-2007 11:52 Subject: Re: Performance issue To: Struts Users Mailing List Hi Mike, the list are not user-dependant, I load those list from the database, and are the same for all users, but how can I put then on the application context?? 2007/1/2, Mike Baroukh <[EMAIL PROTECTED]>: If those lists are not user-dependant, you can put them in application context. This way, they will be shared by all your users. If they are user-dependant, I think I would have done a bean that provides properties that get data from db on the fly. Of course, if an error occur, it will be in jsp rendering ... Maybe you can also put in request (not in session) frequently used values with an interceptor ? Mike Daniel Chacón Sánchez a écrit : > Hi all, I'm using struts framework on my application, but I have a > perfomance question. > > When my application starts I load objects in session that may or may not > will be used (depends on what the user does), for example I load the > health > centers, hospitals, countries, etc, that will be available for the > users in > html:selects, I know that to had many objects in session is not good, in > fact each time the user click on one application option (menu) all the > objects in session are erased, except the ones that I load on the > start of > the application. Is there a way (maybe a pattern) to load this objects in > the moment that are needed, and not load all at the start of the > application. This object are use on differents modules so I load them > on the > start of the aplication and put them in sesion for not to go to the > database > each time I need to load them on a html:select. > > any solution, idea? or that is the only way? > -- Mike Baroukh --- Cardiweb - 31 Rue de Mogador Paris IXeme 06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED] http://www.cardiweb.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance issue
Hi Mike, the list are not user-dependant, I load those list from the database, and are the same for all users, but how can I put then on the application context?? 2007/1/2, Mike Baroukh <[EMAIL PROTECTED]>: If those lists are not user-dependant, you can put them in application context. This way, they will be shared by all your users. If they are user-dependant, I think I would have done a bean that provides properties that get data from db on the fly. Of course, if an error occur, it will be in jsp rendering ... Maybe you can also put in request (not in session) frequently used values with an interceptor ? Mike Daniel Chacón Sánchez a écrit : > Hi all, I'm using struts framework on my application, but I have a > perfomance question. > > When my application starts I load objects in session that may or may not > will be used (depends on what the user does), for example I load the > health > centers, hospitals, countries, etc, that will be available for the > users in > html:selects, I know that to had many objects in session is not good, in > fact each time the user click on one application option (menu) all the > objects in session are erased, except the ones that I load on the > start of > the application. Is there a way (maybe a pattern) to load this objects in > the moment that are needed, and not load all at the start of the > application. This object are use on differents modules so I load them > on the > start of the aplication and put them in sesion for not to go to the > database > each time I need to load them on a html:select. > > any solution, idea? or that is the only way? > -- Mike Baroukh --- Cardiweb - 31 Rue de Mogador Paris IXeme 06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED] http://www.cardiweb.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance issue
Hi all, I'm using struts framework on my application, but I have a perfomance question. When my application starts I load objects in session that may or may not will be used (depends on what the user does), for example I load the health centers, hospitals, countries, etc, that will be available for the users in html:selects, I know that to had many objects in session is not good, in fact each time the user click on one application option (menu) all the objects in session are erased, except the ones that I load on the start of the application. Is there a way (maybe a pattern) to load this objects in the moment that are needed, and not load all at the start of the application. This object are use on differents modules so I load them on the start of the aplication and put them in sesion for not to go to the database each time I need to load them on a html:select. any solution, idea? or that is the only way?
Re: Select Multiples Check Box
Jajajajaajaja a coffee?, What you need is little of humility, I also had helped people answering their questions, the difference is that I´m not a prepotent person like you, this post was made by one partner because I was in a hurry and can´t answer her in the moment, but thank you for your 2 minutes jajajajaja people like you don´t have to be in this mailing list 2006/11/9, Christopher Goldman <[EMAIL PROTECTED]>: On Thu, 2006-11-09 at 15:33 -0600, Daniel Chacón Sánchez wrote: > anyone?? > > 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > > > > If someone explain how to do this with a multiple select and with > > checkboxs better for me :-) > > > > 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > > > > > > hi all! > > > > > > I have a question, I'm using struts. > > > > > > > > > > > > > I have an object of pacients, I show them on a JSP, then I need to > > > select some of them (by checkbox) and then submit the form. In the action i > > > need to know which patients where selected. The object of patients is an > > > arrayList of patients which contains the id, name, etc. > > > > > > In resume in the action I need to know which are the IDs selected from > > > the > > > > > P.D: something like the image Daniel, Have you tried searching for the answer online? Here's one possibility: http://www.husted.com/struts/tips/007.html That link was from: http://struts.apache.org/1.3.5/faqs/index.html Or Google: http://www.google.com/search?hl=en&q=struts%20checkboxes I think you weren't answered because the question is about basic Struts functionality. The answers are all over the place -- it took me less than 2 minutes to find dozens of likely sources. I'm sorry to get snarky, but these good people spend much time answering questions at no cost to the questioner. The least they (and I) expect in return is not to get asked FAQs, and then get desperate-sounding reposts when the replies are not quick enough for you. (Okay, maybe I need more coffee.) Chris -- Christopher D. Goldman [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Select Multiples Check Box
anyone?? 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: If someone explain how to do this with a multiple select and with checkboxs better for me :-) 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > > hi all! > > I have a question, I'm using struts. > > > I have an object of pacients, I show them on a JSP, then I need to > select some of them (by checkbox) and then submit the form. In the action i > need to know which patients where selected. The object of patients is an > arrayList of patients which contains the id, name, etc. > > In resume in the action I need to know which are the IDs selected from > the > P.D: something like the image > > >
Re: Select Multiples Check Box
If someone explain how to do this with a multiple select and with checkboxs better for me :-) 2006/11/9, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: hi all! I have a question, I'm using struts.
Select Multiples Check Box
hi all! I have a question, I'm using struts. I have an object of pacients, I show them on a JSP, then I need to select some of them (by checkbox) and then submit the form. In the action i need to know which patients where selected. The object of patients is an arrayList of patients which contains the id, name, etc. In resume in the action I need to know which are the IDs selected from the P.D: something like the image - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDeveloper-EJB Verifier
yes I did, but not answer, someone who knows how to validate that the bean class and the interface of an EJB has the same methods without errors in parameters or throws, etc 2006/10/27, Martin Gainty <[EMAIL PROTECTED]>: yep..was there in 9 but not in 10 as a consolation you can validate your ejb-jar.xml at http://www.w3.org/2001/03/webdata/xsv#hlp-check did you ask the folks at oracle ? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Daniel Chacón Sánchez" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, October 27, 2006 4:45 PM Subject: JDeveloper-EJB Verifier Someone can tell me how use the EJB Verifier in JDeveloper 10.1.3.0.4, I used that in previous versions but I didn´t found how to used that facility in this version. In previous versions you right click the EJB and then click on "Verify Bean", but now how can I do that??
JDeveloper-EJB Verifier
Someone can tell me how use the EJB Verifier in JDeveloper 10.1.3.0.4, I used that in previous versions but I didn´t found how to used that facility in this version. In previous versions you right click the EJB and then click on "Verify Bean", but now how can I do that??
Re: Performance of my code
If you don´t know the answer then don´t write :P Thanks Jerome, I just downloaded an extension for JDeveloper that check that, thanks!!! 2006/10/24, Ed Griebel <[EMAIL PROTECTED]>: On 10/24/06, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Hi all, this is not a question about struts, but is a question about java, Well then it probably shouldn't be asked here :-) > > Is there a tool that let me check performance issues in my code, like > example the variables that I declared but never used? Anyway, your example is more about static analysis than [speed or memory] performance; Eclipse will do some basic static analysis, also look at: http://findbugs.sourceforge.net/ http://pmd.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance of my code
Hi all, this is not a question about struts, but is a question about java, Is there a tool that let me check performance issues in my code, like example the variables that I declared but never used? Can you tell me where I can download that tool, THANKS
Re: Erase Only some Session Objests and variables
Yeap :-) I think the better is a properties file 2006/9/25, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hello Daniel, The preserve list could be upto your implementation. It could be a Delimited String which you read from a property file and you can store it in a ArrayList. Loop the arrayList, get the entires, and compare it with the Session Attributes session.getAttributeName (). If they match, dont remove. If they dont match, remove. This should be a simple logic. Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, Senior Software Engineer, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 "Daniel Chacón Sánchez" <[EMAIL PROTECTED]> 26/09/2006 08:41 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject:Re: Erase Only some Session Objests and variables What do you suggest me to use for keep that "preserve" names? A file, an arrayList, or what? An example code of the use of that with the code that Heidy gived?? 2006/9/25, Jason King <[EMAIL PROTECTED]>: > > Daniel Chacón Sánchez wrote: > > son = some :P > > > > 2006/9/25, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > >> > >> Hi all, > >> > >> How I can kill son objects and variables in session, without kill > >> everything in session like with session.invalidate(). > >> > >> I want that some objects always be in session and when I press a menu > >> option all other variables or object that are in session be erase. > >> > >> i can´t use removeAttribute(..); because I don´t know the name of all > >> objects and variables that be in session in a moment. I need to erase > >> everything from sesion except son object that always need in session, > >> how > >> can i do that? > >> > >> I'm using struts framework > >> > > > Since the session object is a map you could get a list of keys and for > each key compare it to your list of "preserve" names. If its not in the > name, remove it. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > _ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com * Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **
Re: Erase Only some Session Objests and variables
What do you suggest me to use for keep that "preserve" names? A file, an arrayList, or what? An example code of the use of that with the code that Heidy gived?? 2006/9/25, Jason King <[EMAIL PROTECTED]>: Daniel Chacón Sánchez wrote: > son = some :P > > 2006/9/25, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: >> >> Hi all, >> >> How I can kill son objects and variables in session, without kill >> everything in session like with session.invalidate(). >> >> I want that some objects always be in session and when I press a menu >> option all other variables or object that are in session be erase. >> >> i can´t use removeAttribute(..); because I don´t know the name of all >> objects and variables that be in session in a moment. I need to erase >> everything from sesion except son object that always need in session, >> how >> can i do that? >> >> I'm using struts framework >> > Since the session object is a map you could get a list of keys and for each key compare it to your list of "preserve" names. If its not in the name, remove it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Erase Only some Session Objests and variables
thaanks! I will use it 2006/9/25, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]>: You can use this code: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement(); session.removeAttribute(element); } If yo don't have delete any element, you can do this: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement(); if(!element.matches("notDeleteElement") ) session.removeAttribute(element); }
Re: Erase Only some Session Objests and variables
son = some :P 2006/9/25, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a menu option all other variables or object that are in session be erase. i can´t use removeAttribute(..); because I don´t know the name of all objects and variables that be in session in a moment. I need to erase everything from sesion except son object that always need in session, how can i do that? I'm using struts framework
Erase Only some Session Objests and variables
Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a menu option all other variables or object that are in session be erase. i can´t use removeAttribute(..); because I don´t know the name of all objects and variables that be in session in a moment. I need to erase everything from sesion except son object that always need in session, how can i do that? I'm using struts framework
Re: Get real path of an action
Thanks, Yeap, but how can i use it on the jsp: retrieveURL('*(realPath)*/mostrarRegistrarPersona.do', 'PersonaForm') Thanks
Re: Get real path of an action
Ok let me try to explain it better. From the *registrarPersona.jsp* I use ajax to call some actions, one action is found by the ajax call and theother don´t. This is the call to ajax: retrieveURL('*actualizarCamposForm.do*?paso=paso1', 'PersonaForm') --->* found* retrieveURL(*'mostrarRegistrarPersona.do*', 'PersonaForm') --> *don´t found* In the struts-config.xml: I guess that de mostrarRegistrarPersona action is not found because It make references to the jsp in where I already be, */JSP/registrarPersona.jsp* and the action is not found. So I need to obtain the real path (all the direction of the action) to find it not matter in which JSP i call it, not matter in which level of the context i be.
Re: Lost focus after Ajax Request
It only happen on IE, on firefox works well, the focus doesn´t lost on firefox, someone with an idea? 2006/9/22, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Hi all, I use Ajax on my application, but after the ajax is execute, the focus is lost, is there a way of keep the focus?
Re: Get real path of an action
Nobody?? 2006/9/23, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Hi all, can anyone tell me how I can get the real path of an action?? Thanks
Get real path of an action
Hi all, can anyone tell me how I can get the real path of an action?? Thanks
Lost focus after Ajax Request
Hi all, I use Ajax on my application, but after the ajax is execute, the focus is lost, is there a way of keep the focus?
Re: AJAX + Struts, IE Problem
Yeap, I try the two solutions, give the url a random number (don´t work for me, but for many people did) and use the 3 lines that I put on a previus mail for no caching, that works for me. Thanks 2006/9/22, Francesco Azzola <[EMAIL PROTECTED]>: It is possible to append ad the URL end a random number to avoid cache problems. I tried it and it works fine with IE and FireFox. Bye F. __ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it
Re: AJAX + Struts, IE Problem
I made it, in fact was a cache problem: <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %> With that my application ran on IExplorer, thanks all for the help
Re: AJAX + Struts, IE Problem
alredy do the url change, I'm reading this: http://www.enja.org/david/?p=25 Click Here function uncache(url,form){ var d = new Date(); var time = d.getTime(); url += '&time='+time; retrieveURL(url,form); } I will keep reading
Re: AJAX + Struts, IE Problem
Frank ist seams like it's a caching problem This is a note for myself but it could be useful for anybody writing some Ajax calls. If you use a GET method to send an asynchronous request to your server side code, if you don't do anything Internet Explorer will cache locally your request, so obviously you won't have the latest result in your response. So instead of scripting something like this in Javascript (unless you use a POST method): var url = 'GetCustomers.aspx?country=ireland' use this: var url = 'GetCustomers.aspx?country=ireland' + *"&dummy=" + new Date().getTime();* This will force IE to show a fresh version of your request all the time. Firefox doesn't seem to have this problem apparently. What I don´t know is how to put that parameter in the retrieveURL function Click Here I can obtain the getTime value like this: <% long time= new Date().getTime(); %> but how i can put in here that value: Click Here Thanks for all the help Frank
Re: AJAX + Struts, IE Problem
Frank?? 2006/9/21, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Thanks Frank, obviously I made test and used alerts and saw lines numbers and I didn´t found the error. Of that 100 implementions that I can quickly find in Google, can you give me two links (more if possible), to make that an application that was made in struts, and it's already finnished, in which I can´t change the architecture or logic, only can change de JSPs, was able to use Ajax?? Thanks p.d: i'm checking javawebparts
Re: AJAX + Struts, IE Problem
Thanks Frank, obviously I made test and used alerts and saw lines numbers and I didn´t found the error. Of that 100 implementions that I can quickly find in Google, can you give me two links (more if possible), to make that an application that was made in struts, and it's already finnished, in which I can´t change the architecture or logic, only can change de JSPs, was able to use Ajax?? Thanks p.d: i'm checking javawebparts
Re: AJAX + Struts, IE Problem
Sorry, the problem is the same on IE 7 and IE 6, so is not a version problem. And I don´t receive a javascript error, that was for something else that I alredy fix, someone, any help?? 2006/9/21, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: Hi all, I'm using struts with AJAX I introduced Ajax to my struts application based on the article: *"**Sprinkle Some AJAX Magic in Your Struts Web Application" http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html?page=1 * I use the ajax javascript and the function retrieveUrl, all works fine :-) bt when I ran the application on IE 7 the ajax does not work. I simple recibe a javascript error that say: "object spected", I used the firefox debug and didn´t found an error, do IE have something like that to get a better message with the problem, any suggestion?? When I ran my application with Firefox or netscape all works fine. The problem is with the IE
AJAX + Struts, IE Problem
Hi all, I'm using struts with AJAX I introduced Ajax to my struts application based on the article: *"**Sprinkle Some AJAX Magic in Your Struts Web Application" http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html?page=1 * I use the ajax javascript and the function retrieveUrl, all works fine :-) bt when I ran the application on IE 7 the ajax does not work. I simple recibe a javascript error that say: "object spected", I used the firefox debug and didn´t found an error, do IE have something like that to get a better message with the problem, any suggestion?? When I ran my application with Firefox or netscape all works fine. The problem is with the IE
Re: how to implement tokens
try this: boolean tokenValid = isTokenValid(request); if(tokenValid){ resetToken(request); return true; } else{ saveToken(request); return false; } i use it for control the user double click on bottons
Re: Out of topic, Oracle SEQUENCE
Well you where correct, this is the answer of a metalink user: user_seq.CURRVAL (with two R's) is the last number that was assigned in your session. Even if records are added in other sessions, your CURRVAL remains the same. Try it. Open two SQL*Plus windows (you can even use the same username) and see that CURRVAL in one remains the same even while CURRVAL in the other increases. Thanks all, and sorry for the out the topic question
Re: Out of topic, Oracle SEQUENCE
Not Albert, but thanks, you have give me more solutions than in the metalink foro of oracle, thanks!! Another solution, to do only one sentence, I do´nt want to obtain the userCode of an insert sentence that occur between the insert and the select user_seq.curval from dual, any other solution ?? 2006/9/15, Albert L. Sapp <[EMAIL PROTECTED]>: Daniel, If you are by chance using iBatis, look at their selectKey command. It is the one that seems to be referred to most for this type of need on the iBatis list. If not, sorry. Al Brett Connor wrote: > (In case my reply to completely the wrong post didn't get read!...) > > selecting max... isn't a viable solution, because of other sessions as you say. > Assuming you're at least using Java, you might want to look at > > java.sql.Statement.getGeneratedKeys() > > Oracle database returns generated keys in the 'C' i/f, my memory's rusty for > JDBC but I know there is a way somewhere to get the key values in the same > statement, rather than have to execute another statement for 'curval'. > getGeneratedKeys() may be it. > > HTH > Brett > > > > Quoting Daniel Chacón Sánchez <[EMAIL PROTECTED]>: > > >> Thanks >> >> so, first: >> >> insert into users_values (user_seq .nextval, 'userName'); >> >> and then: >> >> select user_seq.curval from dual >> >> There is not a way to make only one sentence to do that? Like in SQL 2000: >> >> >> >> SET NOCOUNT ON INSERT INTO >> >> USER_VALUES >> >> (USER_NAME) >> >> >> >> VALUES ('DANIEL') >> >> *SELECT @@IDENTITY* as userCode SET NOCOUNT OFF >> >> > > - > 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: Out of topic, Oracle SEQUENCE
Thanks so, first: insert into users_values (user_seq .nextval, 'userName'); and then: select user_seq.curval from dual There is not a way to make only one sentence to do that? Like in SQL 2000: SET NOCOUNT ON INSERT INTO USER_VALUES (USER_NAME) VALUES ('DANIEL') *SELECT @@IDENTITY* as userCode SET NOCOUNT OFF
Out of topic, Oracle SEQUENCE
Hi I know this the struts mail list, but I have a question and I hope that someone know the answer I'm using an oracle database, I have a sequence to obtain the nextval that will be the key of the row that I will insert, after the insert I need to know which is that value so I can tell the user with which value the row was inserted. Is there a sure fire way to do this, or am I stuck with "select max(id) from table" and hope nothing else has been inserted in that few milliseconds it takes to go from my insert statement to my select statement? Some code, for better explanation: CREATE SEQUENCE user_seq INCREMENT 1 MINVALUE 0 NOMAXVALUE START WITH 0 NOCACHE NOCYCLE insert into users values (user_seq .nextval, 'userName'); Then I need to know the value with which the row was inserted, how can I do that Thanks! Sorry fot the out of topic question
Re: Double Execution of Struts Actions
We should do a list of the possible reasons for that problem, beacause I think a lot of people have this type of error. 2006/9/11, Givler, Eric <[EMAIL PROTECTED]>: I've had this happen when I had a Struts Action which was written to return a PDF document. I found a note somewhere online that says that IE (in some versions) sends a second request for these. -Original Message- From: Daniel Chacón Sánchez [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 9:13 AM To: Struts Users Mailing List Subject: Re: Double Execution of Struts Actions Yeah I use CSS it don´t know why the td had that attribute, thanks Frank now I understand that was a common html error, jajaja you hate microsoft right?, thanks a lot Frank Ok the conclusion to this, when a double execution of an action occur, one probably reason of that is the bad use of a html atributte that have the caracter ' # '. :-) hope this help others - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts 2] setting spring bean from action
Find the discussion with this tittle "Double Execution of Struts Actions", this may help you. You have to verify that you don´t have html errors on the use of attributes that have the character ' # ' because that will cause the double execution of an action, for example ... The td don´t have an attribute background, so that's an error, and the double excecution of the actio is produce, in the discusion Frank mention others possible reasons.* * 2006/9/10, Ted Husted <[EMAIL PROTECTED]>: On 9/9/06, Garner Shawn <[EMAIL PROTECTED]> wrote: > I want to set the value of the spring bean defined in the spring xml file. > I have the value in the action but I want to set the spring bean's > value with it. Given a matching property, Struts 2 can automatically inject a Spring bean into the Action. Set the beans to autowire and autodect And then create a JavaBean property on your Action that matches the Spring bean ID. Be sure that the bean ID name starts with a lowercase letter. The framework will notice that the Action property name matches the Spring bean ID, and set the Spring bean to the property. For more, see http://cwiki.apache.org/WW/spring.html HTH, Ted. * http://husted.com/struts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Double Execution of Struts Actions
Yeah I use CSS it don´t know why the td had that attribute, thanks Frank now I understand that was a common html error, jajaja you hate microsoft right?, thanks a lot Frank Ok the conclusion to this, when a double execution of an action occur, one probably reason of that is the bad use of a html atributte that have the caracter ' # '. :-) hope this help others
Re: Double Execution of Struts Actions
I understand all that, but It not have to happen, fot me its a bug, because the action don´t have to be call twice, no matter that the property of the td was wrong 2006/9/9, Laurie Harper <[EMAIL PROTECTED]>: That's not a Struts bug, it's a common HTML coding error. IIRC, the 'background' property of a TD specifies the URL of an image to place as the background, not a colour; at least, that appears to be what's happening here. As with , the image URL is being interpreted as the current page, so when the browser sees that TD, it tries to use the current page URL to load the background image -- hence, hitting the action again. L. Daniel Chacón Sánchez wrote: > O MY GOD!! > > This was the mistake: and the td doe´s not have a > background!!! > > How can it be posible!!! The double submit problem is for html problems!!! > You will ask how I can discover this yes... I cut all the code and put > ir step by step again since I found the problem!!! > > When I read this on a mail list: > > > Santhi, > I have found the mistake. I had a # in a table-tag.** > ... > > I don't know, why struts execute an action twice, but I'm happy. ;o)) > Thanks for your help. > Frank > > In my mind I say to me that´s not possible but yes *The double submit > problem is product of HTML errors*, know I want to notify to the "struts > people" about this problem how can I talk to then, this is a big bug of the > great strtus framework. > > Thank you all for the help, hope this solution helps others! > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJAX + Struts problem on IE 7
Ok I will try with alerts, but is something strange, beacause it works perfectly with firefox and netscape, any other idea? Some time ago I send a mail to [EMAIL PROTECTED]<[EMAIL PROTECTED]> (author of the article), but doesn´t respond, someone else use this artilcle to use ajax?
AJAX + Struts problem on IE 7
Hi all, I'm using struts with AJAX I introduced Ajax to my struts application based on the article: *"**Sprinkle Some AJAX Magic in Your Struts Web Application" http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html?page=1 * I use the ajax javascript and the function retrieveUrl, all works fine :-) bt when I ran the application on IE 7 the ajax does not work. I simple recibe a javascript error that say: "object spected", I used the firefox debug and didn´t found an error, do IE have something like that to get a better message with the problem, any suggestion??
Re: Double Execution of Struts Actions
O MY GOD!! This was the mistake: and the td doe´s not have a background!!! How can it be posible!!! The double submit problem is for html problems!!! You will ask how I can discover this yes... I cut all the code and put ir step by step again since I found the problem!!! When I read this on a mail list: Santhi, I have found the mistake. I had a # in a table-tag.** ... I don't know, why struts execute an action twice, but I'm happy. ;o)) Thanks for your help. Frank In my mind I say to me that´s not possible but yes *The double submit problem is product of HTML errors*, know I want to notify to the "struts people" about this problem how can I talk to then, this is a big bug of the great strtus framework. Thank you all for the help, hope this solution helps others!
Re: Double Execution of Struts Actions
Ok let me see 2006/9/8, David Durham <[EMAIL PROTECTED]>: Daniel Chacón Sánchez wrote: > thanks Frank and Juan Pablo, > > Ok let me explain better (by the way, sorry for my english...) > > > Yes Juan Pablo i have this javascript: > > function *cambiarAction*(formulario, action){ > formulario.action = action; > formulario.submit(); > return false; > } > > But not i don´t call it on a onclick="cambiarAction(blablabla.", > > Instead of that, I call it on a link: > > .. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Double Execution of Struts Actions
thanks Frank and Juan Pablo, Ok let me explain better (by the way, sorry for my english...) Yes Juan Pablo i have this javascript: function *cambiarAction*(formulario, action){ formulario.action = action; formulario.submit(); return false; } But not i don´t call it on a
Double Execution of Struts Actions
*Double Execution of Struts Actions* -- I'm having trouble figuring out some strange behavior,some actions are executed *twice* on every submission. The app works fine, but my logs show that the first execution is the 'real' one. But there is also a log of another call through the code. I can't figure out where this one is coming from or going to. Someone who can help me, i saw anothers threads about this topic but none had solved the problem! (Spanish) *Doble llamado a una acción de struts* Extrañamente algunas veces cuado llamo a una acción se llama* 2 veces*, es extraño porque llevo trabajado bastante con struts y esto nunca había pasado