Re: Extract autocompleter value from javascript, when autocompleter is in a
Worked like a charm. Thanks musachy -- View this message in context: http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11021197 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How Can I Upgrade My Dev Environment
Hi Struts Community, Currently we are using struts 1.2, jdk1.4, JBoss 4, eclipse 3.1 as our development environment. Now we need some listeners for our application. How I can upgrade my development environment to support listeners (which are in servlet specification 2.4) Already 10% of our development is over. So based on this suggest me good choice Regards, Sreenivasula Reddy A DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
Re: [s2] How to get the value of dojo datetimepicker object
Thanks Musachy, it works. The javascript error I had is caused by wrong element id. But it's wierd that when I used the wrong id, the alert(obj) give me a dojo object name. When I call obj.gatValue(), I got a javascript error. On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The setter methods are specific to 2.1, but the getter ones are available on 2.0.x: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-DateandTimepicker musachy On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > I posted this not long ago on this list. Basically you have to use > "getDate()" to get a JavaScript date object and getValue() to get the text > entered in the datepicker. > > musachy > > On 6/7/07, Vincent Lin <[EMAIL PROTECTED]> wrote: > > > > I am trying to get the value inputed by the user from datetimepicker > > object. > > I have the following javascript in my JSP: > > > > var obj = dojo.widget.byId("createTimeTm"); > > alert(obj); > > alert( obj.getValue()); > > > > But "alert(obj.getValue())" encounter a javsacript error. > > > > Can anyone tell me the correct syntax of the javascript to retrieve the > > value of datetimepicker object? > > > > Thanks! > > > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: Source to struts2 tutorial editPerson.action ?
On Jun 7, 2007, at 8:49 PM, Dave Newton wrote: --- String Larson <[EMAIL PROTECTED]> wrote: Does anyone have access to the source for this: http://www.planetstruts.org/struts2-showcase/person/editPerson.action You could either download the source or browse the source repository. http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_8/apps/ showcase/src/main/java/org/apache/struts2/showcase/person/ EditPersonAction.java?view=markup So to answer the question, yes, we all do! Thanks... yeah, I'm a mensa. d'oh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Source to struts2 tutorial editPerson.action ?
--- String Larson <[EMAIL PROTECTED]> wrote: > Does anyone have access to the source for this: > http://www.planetstruts.org/struts2-showcase/person/editPerson.action You could either download the source or browse the source repository. http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_8/apps/showcase/src/main/java/org/apache/struts2/showcase/person/EditPersonAction.java?view=markup So to answer the question, yes, we all do! d. Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Source to struts2 tutorial editPerson.action ?
Does anyone have access to the source for this: http://www.planetstruts.org/struts2-showcase/person/editPerson.action or any other example of editing a collection of objects. The view sources link is busted. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: result type Jasper [Struts 2]
hello again.. i got this error..when i try to include struts-plugin.xml Message ID: WebModule[/myeis]Exception starting filter struts2 The package name 'jasperreports-default' at location package - jar Complete Message file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 is already been used by another package at location package - file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/classes/struts-plugin.xml:8:43 - package - jar:file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 here is my struts-plugin.xml and my action mapping please help me..thank you so much RobinCamus <[EMAIL PROTECTED]> wrote: I saw your others post so if i understand correctly, you want to use jasperreports so here is what i ve done: in struts.xml: - - - - class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> - - -... -... -... -... - class="maintenanceHistoryQueryAction" method="search"> - -WEB-INF/pages/reports.jasper/maintenance_report.jasper -maintenanceHistoryQueryList -PDF - - -... -... - actually if you re using jasperreports, org.apache.struts2.views.jasperreports.JasperReportsResult is the good class for the result class. WEB-INF/pages/reports.jasper/maintenance_report.jasper is your precompiled rapport (i ve build them with ireports) maintenanceHistoryQueryList is the list with the data you need for your report you can find all those information on jasperreports forum... Robin honey0303 wrote: > > still i got the error even if i include that in my default package.. > > e.g. > > > > > > > > class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> > > ... > > > still have same error.. > > what you mean by this.. > > You ll have to find the result class you need to point at.. > > i am really new at Struts..please help me..thanks again. > > > > > RobinCamus wrote: >> >> I had to implement a jasper type for jasper report: >> I think you need to define a result type in struts.xml like >> >> >> >> >> class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> >> >> >> >> >> You ll have to find the result class you need to point at. >> I hope it helps >> >> Robin >> >> >> honey0303 wrote: >>> >>> Hi i'm trying to integrate jasper with struts 2..but i got an error >>> because of my result type jasper >>> >>> i've followed this tutorial.. >>> >>> >>> class="com.mevipro.test.action.JasperAction"> >>> >>> >>> >>> my question is how can i defined a jasper result type? >>> i need answers ASAP..Thanks in advance >>> >> >> > > -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11006929 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
Re: ParameterInterceptor
--- [EMAIL PROTECTED] wrote: > For example, in the MailReader demo, the web page names > are not prefixed with the bean name in the Action > class, yet it seems to be working! What specifically are you referring to? I don't recall there being anything unusual about how MailReader is set up, except maybe the catch-all base class. d. TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ParameterInterceptor
Try name=foo.bar rather than name=Foo.bar in your jsp. The how and why is out of my scope. Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 3:35 PM To: Struts Users Mailing List Subject: ParameterInterceptor I think I just encountered a "feature" in the way S2 handles parameters. My Action contains a bean private Foo foo and contains getters/setters. Foo has a property bar. My web page is passing the parameter Foo.bar and the Action is finding getFoo using Foo rather than foo! Is this designed to work this way? Also, is there a document that describes how the parameters are applied to bean(s)? The way to name things still seems a bit of a mystery to me. For example, in the MailReader demo, the web page names are not prefixed with the bean name in the Action class, yet it seems to be working! What is this magic that finds and populates bean properties? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ParameterInterceptor
I think I just encountered a "feature" in the way S2 handles parameters. My Action contains a bean private Foo foo and contains getters/setters. Foo has a property bar. My web page is passing the parameter Foo.bar and the Action is finding getFoo using Foo rather than foo! Is this designed to work this way? Also, is there a document that describes how the parameters are applied to bean(s)? The way to name things still seems a bit of a mystery to me. For example, in the MailReader demo, the web page names are not prefixed with the bean name in the Action class, yet it seems to be working! What is this magic that finds and populates bean properties? -- Scott [EMAIL PROTECTED]
[S2] File Upload Errors
I am confused in regards to how one would customize the errors for file upload. The documentation on the page File Upload Interceptor (http://struts.apache.org/2.x/docs/file-upload-interceptor.html) indicates that the error messages are currently set to defaults in the struts-messages.properties file. However, when I look at the file the messages I am getting are different than those specified. The page goes on to indicate that these properties can be overridden by setting them in your properties file for the following keys: - struts.messages.error.uploading - a general error that occurs when the file could not be uploaded - struts.messages.error.file.too.large - occurs when the uploaded file is too large - struts.messages.error.content.type.not.allowed - occurs when the uploaded file does not match the expected content types specified However, doing this does not seem to work either. For example for a fille too large error I am getting the errors message: "the request was rejected because its size (3769264) exceeds the configured maximum (2097152)" Can someone please point me in the correct direction to allow me to customize the messages? Thanks in advance! - ***Note:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the Sender immediately by replying to the message and deleting it from your computer. Thank you. Premier Inc.
[S2]Field Validators, conditional
So things are working much much better which means, of course, I have to break something. I am attempting to add some conditional validation to one of my forms... If a flag field is not true, then I need to have several other fields be required. Right now (before Conditional): 4 4 Works great. I am looking at short circuits and expressions, in order to get this conditional going, but I am still not there. Any one have any ideas as to the best approach? Skip Hollowell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 exception-mappings with messages?
Hi, I wonder if I can attach an error message to the exceptions specified in the struts.xml file, using exception-mapping and global-exception-mapping. I tried to achieve this by adding inside the exception-mapping tag without success (it seems to me that they do nothing). How can I achieve this? Regards, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Elements in collection = null in Struts 2 view
Hi everyone! Description: The problem is that when i debug this webapp, inside the servlet i can see the elements inside de modelo.Telefonos collection, but the jsp can't. In the jsp, the collection only have null's, but the correct number of them. (if the collection has 3 elements, there are 3 nulls inside it) :S The database also contains those elements. Thanks in advance Nicolás Pace Struts version: 2.0.6 Hibernate version: 3.1.3 or 3.2 Mapping documents: -Modelo.hbm.xml--- http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> --- ---Telefono.hbm.xml http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> Code between sessionFactory.openSession() and session.close(): Using OpenSessionInView pattern with ServletFilter suggested here ModeloAction.java public class ModeloAction extends ActionSupport { private Modelo modelo; ... execute() { modelo = (Modelo) s.get(Modelo.class, id); modelo.getTelefonos().size(); modelo.getDomicilios().size(); modelo.getCaracteristicas().size(); modelo.getGrupoFamiliar().size(); modelo.getHabilidades().size(); modelo.getHorariosDisponibles().size(); modelo.getObservaciones().size(); modelo.getRestricciones().size(); } } Modelo.jsp: ... ... Full stack trace of any exception that occurs: Name and version of the database you are using:mysql The generated SQL (show_sql=true): Hibernate: select modelo0_.id as id16_1_, modelo0_.apellido as apellido16_1_, modelo0_.nombre as nombre16_1_, modelo0_.fechaNacimiento as fechaNac4_16_1_, modelo0_.foto as foto16_1_, modelo0_.turno as turno16_1_, modelo0_.escuela as escuela16_1_, telefonos1_.model_id as model1_3_, telefono2_.id as telefono2_3_, telefono2_.id as id9_0_, telefono2_.numero as numero9_0_ from Modelo modelo0_ left outer join modelo_telefono telefonos1_ on modelo0_.id=telefonos1_.model_id left outer join Telefono telefono2_ on telefonos1_.telefono_id=telefono2_.id where modelo0_.id=? Hibernate: select domicilios0_.model_id as model1_1_, domicilios0_.dom_id as dom2_1_, domicilio1_.dom_id as dom1_3_0_, domicilio1_.calle as calle3_0_, domicilio1_.numero as numero3_0_, domicilio1_.departamento as departam4_3_0_, domicilio1_.ciudad as ciudad3_0_ from modelo_domicilio domicilios0_ left outer join Domicilio domicilio1_ on domicilios0_.dom_id=domicilio1_.dom_id where domicilios0_.model_id=? Hibernate: select caracteris0_.model_id as model1_1_, caracteris0_.carac_id as carac2_1_, caracteris1_.carac_id as carac1_4_0_, caracteris1_.nombre as nombre4_0_ from modelo_caracteristica caracteris0_ left outer join CaracteristicaFisica caracteris1_ on caracteris0_.carac_id=caracteris1_.carac_id where caracteris0_.model_id=? Hibernate: select grupofamil0_.grupoFamiliar_id as grupoFam1_1_, grupofamil0_.model_id as model2_1_, modelo1_.id as id16_0_, modelo1_.apellido as apellido16_0_, modelo1_.nombre as nombre16_0_, modelo1_.fechaNacimiento as fechaNac4_16_0_, modelo1_.foto as foto16_0_, modelo1_.turno as turno16_0_, modelo1_.escuela as escuela16_0_ from modelo_grupoFamiliar grupofamil0_ left outer join Modelo modelo1_ on grupofamil0_.model_id=modelo1_.id where grupofamil0_.grupoFamiliar_id=? Hibernate: select habilidade0_.model_id as model1_1_, habilidade0_.habilidad_id as habilidad2_1_, habilidad1_.id as id7_0_, habilidad1_.nombre as nombre7_0_ from modelo_habilidad habilidade0_ left outer join Habilidad habilidad1_ on habilidade0_.habilidad_id=habilidad1_.id where habilidade0_.model_id=? Hibernate: select horariosdi0_.model_id as model1_1_, horariosdi0_.franja_id as franja2_1_, franjahora1_.id as id6_0_, franjahora1_.dia as dia6_0_, franjahora1_.horaInicio as horaInicio6_0_, franjahora1_.horaFin as horaFin6_0_ from modelo_horarioDisponible horariosdi0_ left outer join FranjaHoraria franjahora1_ on horariosdi0_.franja_id=franjahora1_.id where horariosdi0_.model_id=? Hibernate: select observacio0_.model_id as model1_1_, observacio0_.observacion_id as observac2_1_, observacio1_.id as id8_0_, observacio1_.nombre as nombre8_0_ from modelo_observacion observacio0_ left outer join Observacion observacio1_ on observacio0_.observacion_id=observacio1_.id where observacio0_.model_id=? Hibernate: select restriccio0_.model_id as model1_1_, restriccio0_.restricciones_id as restricc2_1_, restriccio1_.id as id5_0_, restriccio1_.nombre as nombre5_0_ from modelo_restriccion restriccio0_ left outer join Restriccion restriccio1_ on restriccio0_.restricciones_id=restriccio1_.id where restriccio0_.model_id=?
Re: [S2] Using
Those JavaScript files are inside the struts-core.jar file. But you don't need to set theme="ajax" unless you are planning to use the ajax theme. musachy On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: For example, it generates: There's no such file as /console/struts/dojo/dojo.js Sorry for the long wait. I was struggling with String (name) vs Object (value). I had to do this: <%=paramValue%> to access the JSP variable. I couldn't figure out how to use it with a value="". On 6/7/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- yitzle <[EMAIL PROTECTED]> wrote: > > Is it true, or does work with other themes? > > includes a bunch of .js files > > that aren't there. Where do I get the js files from, > > > and do I really need them? > > What do you mean, "not there"? Not where? > > d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [S2] Question on inherited Actions and Results
Upon closer look, it appears that somebody had checked in a namespace="/" on the s:form tag, which was causing this behavior. Struts inheritance is working as expected; the problem was on our end. Thanks, Greg Ludington On 6/7/07, Greg Ludington <[EMAIL PROTECTED]> wrote: If I have two namespaces, a parent and a child, on an Action not defined in the child, should a the Result direct the user to the parent namespace, or the child one? The wiki page on redirect-action states that, for namespace, "If namespace is null, this defaults to the current namespace" Does that refer to the currently active namespace, or the namespace in which the Action is defined? In other words (using xml configs): ... ... /inputForm.jsp otherAction If a user goes to /child/sample.action and successfully submits the form, the redirect-action will send them to /otherAction.action, not to /child/otherAction. (For that matter, since I am using the namespace to establish paths to css and other static resources, it appears that the input result also points back to the default namespace, not the child.) Would this be a bug, or is this the designed behavior, and Results are not intended to inherit in such a way as I am trying? Thank you, Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Using
For example, it generates: There's no such file as /console/struts/dojo/dojo.js Sorry for the long wait. I was struggling with String (name) vs Object (value). I had to do this: <%=paramValue%> to access the JSP variable. I couldn't figure out how to use it with a value="". On 6/7/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > Is it true, or does work with other themes? > includes a bunch of .js files > that aren't there. Where do I get the js files from, > and do I really need them? What do you mean, "not there"? Not where? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Question on inherited Actions and Results
If I have two namespaces, a parent and a child, on an Action not defined in the child, should a the Result direct the user to the parent namespace, or the child one? The wiki page on redirect-action states that, for namespace, "If namespace is null, this defaults to the current namespace" Does that refer to the currently active namespace, or the namespace in which the Action is defined? In other words (using xml configs): ... ... /inputForm.jsp otherAction If a user goes to /child/sample.action and successfully submits the form, the redirect-action will send them to /otherAction.action, not to /child/otherAction. (For that matter, since I am using the namespace to establish paths to css and other static resources, it appears that the input result also points back to the default namespace, not the child.) Would this be a bug, or is this the designed behavior, and Results are not intended to inherit in such a way as I am trying? Thank you, Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Using
--- yitzle <[EMAIL PROTECTED]> wrote: > Is it true, or does work with other themes? > includes a bunch of .js files > that aren't there. Where do I get the js files from, > and do I really need them? What do you mean, "not there"? Not where? d. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Using
You don't need the ajax theme for that., docs need to be fixed. As for the value, use "%{'pVal'}" instead of "pVal" musachy On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: Thanks for your reply! I now have: where <%=action%> is passed into the tag file with: <%@ attribute name="action" %> This generates the desired , except that the param values don't show up in the URL (ie ?pName=pVal). Also, the documentation on mentions I need . Is it true, or does work with other themes? includes a bunch of .js files that aren't there. Where do I get the js files from, and do I really need them? On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > s:url just builds a url string an pushes it into the stack, to generate an > anchor, use the s:a tag: > > > Goolgle > > musachy > > On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: > > > > The URL tag isn't working right for me. I have: > > http://www.site.com"; /> > > The generated HTML is: > > http://www.site.com > > No 's. What am I doing wrong? > > > > P.S. This code is being ran via a tagfile , but I doubt > > that affects anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [S2] Using
Thanks for your reply! I now have: where <%=action%> is passed into the tag file with: <%@ attribute name="action" %> This generates the desired , except that the param values don't show up in the URL (ie ?pName=pVal). Also, the documentation on mentions I need . Is it true, or does work with other themes? includes a bunch of .js files that aren't there. Where do I get the js files from, and do I really need them? On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: s:url just builds a url string an pushes it into the stack, to generate an anchor, use the s:a tag: Goolgle musachy On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: > > The URL tag isn't working right for me. I have: > http://www.site.com"; /> > The generated HTML is: > http://www.site.com > No 's. What am I doing wrong? > > P.S. This code is being ran via a tagfile , but I doubt > that affects anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating report using struts2 and pentaho
hi, sorry for sending this message again-since i didnt get nay reply and its urgent on my project i have to creat a Report using Pentaho and struts2. Without using struts i am able to creat the report and disply it .but i wanted to customize the application and wanted to use struts in it. So for that i wanted to call the ViewAction class(used in pentaho to disply the data . this class basically take the input parameter from another XAction class and put the data through URL). i wanted to create my own struts generateReportAction class and Jsp pages to disply the report. Now how will i call the View Action class from struts action class and how will i pass these parameters. How should i specify the action mapper? i will really appriciate ,If some one could send me some sample program or document .and any sample example where Pentaho and Struts2 are combined to create report. thanks in advance -- View this message in context: http://www.nabble.com/Creating-report-using-struts2-and-pentaho-tf3884637.html#a11010588 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s2 transferring data from form to list backed property
Hello. I'm trying to find something that tells how to properly implement list, map, collection backed properties and how to properly name the form fields that should collect the data that will be transferred onto those properties. I've found information on OGNL and kind of know how to write the expression that should map to the list -- im working on the list right now. But the discussions focus on tags reaching back into the valuestack; should be the same syntax though. I think the real problem is my property implementation. So, does anyone know where some docs are that explain how to implement the list and map backed propeties? bob ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Menu
If you download the example WAR - there's lot of examples in there. You could also look at AppFuse (http://appfuse.org), which has Struts Menu pre-integrated. Matt Antonio Petrelli-3 wrote: > > 2007/6/5, Archer <[EMAIL PROTECTED]>: >> Hi All, >> >> I am new to struts menu. Can anybody please help where I can find a good >> tutorial or suggest me a good place to start work with struts menu. >> Thanks >> in advance. > > Probably at Struts Menu website > > http://struts-menu.sourceforge.net/ > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts-Menu-tf3873449.html#a11009836 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2: Localization doesn't work
I add ActionSupport.properties in the classpath. Inside the ActionSuppport.properties I have one entry: no_email="blah blah blah" I have a NewAction class which extends from ActionSupport. public class NewActoin extends ActionSupport { public String sendPassword() throws Exception { ... String message = getText("no_email"); ... } } I harcoded the message and it's working. After I replace with getText(), what I saw is "no_email" not "blah blah blah". Please advise me what I did wrong. Thanks a lot for any helps. -- View this message in context: http://www.nabble.com/S2%3A-Localization-doesn%27t-work-tf3884155.html#a11008956 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Using
s:url just builds a url string an pushes it into the stack, to generate an anchor, use the s:a tag: Goolgle musachy On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: The URL tag isn't working right for me. I have: http://www.site.com"; /> The generated HTML is: http://www.site.com No 's. What am I doing wrong? P.S. This code is being ran via a tagfile , but I doubt that affects anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
[S2] Using
The URL tag isn't working right for me. I have: http://www.site.com"; /> The generated HTML is: http://www.site.com No 's. What am I doing wrong? P.S. This code is being ran via a tagfile , but I doubt that affects anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Failed while destroying filter during shutdown
I've deployed a webapp with struts2 on weblogic 8.1/java 1.4.1_02. It works fine, but when I make a redeploy it throws an exception with the following two stack traces. The NoClassDefFoundError seems strange to me, because the two jars struts2-core.jar and backpost-util-concurrent.jar (for retrotranslation of struts2) contain the classes correctly. Maybe something related with weblogic? Thanks. (CopyOnWriteArrayList.java:35) at com.opensymphony.xwork2.config.ConfigurationManager.setConfigurationProviders(ConfigurationManager.java:100) at com.opensymphony.xwork2.config.ConfigurationManager.destroyConfiguration(ConfigurationManager.java:141) at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:283) at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:221) at weblogic.servlet.internal.WebAppServletContext$FilterDestroyAction.run(WebAppServletContext.java:6394) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.destroyFilters(WebAppServletContext.java:5786) at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:5682) at weblogic.servlet.internal.ServletContextManager.removeContext(ServletContextManager.java:188) at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:740) at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:767) at weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:745) at weblogic.j2ee.J2EEApplicationContainer.rollbackModule(J2EEApplicationContainer.java:3057) at weblogic.j2ee.J2EEApplicationContainer.rectifyClassLoaders(J2EEApplicationContainer.java:1429) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1176) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > -- View this message in context: http://www.nabble.com/Failed-while-destroying-filter-during-shutdown-tf3884020.html#a11008451 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: datetimepicker & S2 validation
So is one of the bugs a disconnect from S2 validation? On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: It is getting to the action! Can you tell me if a new version is available? On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > Datetimepicker is buggy on 2.0.6, I would first make sure that the value > is > getting to the action, without any validation at all. > > musachy > > On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I have a datetimepicker on a screen with the key=" > > payrollUpdate.effectiveDate". I have a > > PayrollUpdateAction-validation.xmlfile that corresponds to the Action > > associated with this web page. Inside > > the validation file I have the following field validation: > > > > > > > > > > > > > > > > After entering a date or selecting one from the calendar, I get the > > validation error that Effective Date is required! It is as though I > have > > not entered anything! Any ideas? > > > > -- > > Scott > > [EMAIL PROTECTED] > > > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- Scott [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
Re: Extract autocompleter value from javascript, when autocompleter is in a
Soon we will be providing nice javascript functions to get the values, for now: var auto = dojo.widget.byId("auto"); //selected key var key = auto.comboBoxSelectionValue.value; //selected value var value = auto.comboBoxValue.value; //text entered by user var text = auto.textInputNode.value musachy On 6/7/07, GEDA <[EMAIL PROTECTED]> wrote: Please tell me how can I extract the selected value of an autocompleter (theme=simple) which rezides in a http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [S2][Tiles] Ressource access from tiles.xml ?
Thanks a lot Antonio for this trick. I'm going to test it :) Regards, PPDL. On 6/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/6/7, Petit Pas De Lune <[EMAIL PROTECTED]>: > Hello. > Is-it possible to internationalize some string definitions in > Tiles.xmlconfiguration file > with resources.properties ? > > If yes, how can I do it ? Not directly, but it's not impossible. First of all, put in string attributes the keys: In JSP template page, use: This way, the key is stored as a page-scoped bean with the same name. At this point, you can use this bean as a key for the message to display. HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] How to get the value of dojo datetimepicker object
The setter methods are specific to 2.1, but the getter ones are available on 2.0.x: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-DateandTimepicker musachy On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I posted this not long ago on this list. Basically you have to use "getDate()" to get a JavaScript date object and getValue() to get the text entered in the datepicker. musachy On 6/7/07, Vincent Lin <[EMAIL PROTECTED]> wrote: > > I am trying to get the value inputed by the user from datetimepicker > object. > I have the following javascript in my JSP: > > var obj = dojo.widget.byId("createTimeTm"); > alert(obj); > alert( obj.getValue()); > > But "alert(obj.getValue())" encounter a javsacript error. > > Can anyone tell me the correct syntax of the javascript to retrieve the > value of datetimepicker object? > > Thanks! > -- "Hey you! Would you help me to carry the stone?" Pink Floyd -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [s2] How to get the value of dojo datetimepicker object
I posted this not long ago on this list. Basically you have to use "getDate()" to get a JavaScript date object and getValue() to get the text entered in the datepicker. musachy On 6/7/07, Vincent Lin <[EMAIL PROTECTED]> wrote: I am trying to get the value inputed by the user from datetimepicker object. I have the following javascript in my JSP: var obj = dojo.widget.byId("createTimeTm"); alert(obj); alert(obj.getValue()); But "alert(obj.getValue())" encounter a javsacript error. Can anyone tell me the correct syntax of the javascript to retrieve the value of datetimepicker object? Thanks! -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: datetimepicker & S2 validation
No. Must of them have been fixed on 2.1. Some of the fixes would require changes by the users, that's why thy are not on 2.0.x. musachy On 6/7/07, David Harland <[EMAIL PROTECTED]> wrote: Hi Musachy , Have you fixed the bugs for the datetimepicker tag for 2.0.8? Thanks Dave. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 06 June 2007 21:37 To: Struts Users Mailing List Subject: Re: datetimepicker & S2 validation sorry. 2.1 is the one. musachy On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It is getting to the action! Can you tell me if a new version is > available? > > On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > > > Datetimepicker is buggy on 2.0.6, I would first make sure that the > > value is getting to the action, without any validation at all. > > > > musachy > > > > On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > I have a datetimepicker on a screen with the key=" > > > payrollUpdate.effectiveDate". I have a > > > PayrollUpdateAction-validation.xmlfile that corresponds to the > > > Action associated with this web page. Inside the validation file > > > I have the following field validation: > > > > > > > > > > > > > > > > > > > > > > > > After entering a date or selecting one from the calendar, I get > > > the validation error that Effective Date is required! It is as > > > though I > > have > > > not entered anything! Any ideas? > > > > > > -- > > > Scott > > > [EMAIL PROTECTED] > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > > > -- > Scott > [EMAIL PROTECTED] > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - -- ML {UFI} __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- "Hey you! Would you help me to carry the stone?" Pink Floyd
Re: [S2][Tiles] Ressource access from tiles.xml ?
2007/6/7, Petit Pas De Lune <[EMAIL PROTECTED]>: Hello. Is-it possible to internationalize some string definitions in Tiles.xmlconfiguration file with resources.properties ? If yes, how can I do it ? Not directly, but it's not impossible. First of all, put in string attributes the keys: In JSP template page, use: This way, the key is stored as a page-scoped bean with the same name. At this point, you can use this bean as a key for the message to display. HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2][Tiles] Ressource access from tiles.xml ?
Hello. Is-it possible to internationalize some string definitions in Tiles.xmlconfiguration file with resources.properties ? If yes, how can I do it ? Thanks. PPDL.
Extract autocompleter value from javascript, when autocompleter is in a
Please tell me how can I extract the selected value of an autocompleter (theme=simple) which rezides in a http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: result type Jasper [Struts 2]
I saw your others post so if i understand correctly, you want to use jasperreports so here is what i ve done: in struts.xml: - - - - - - -... -... -... -... - - - WEB-INF/pages/reports.jasper/maintenance_report.jasper - maintenanceHistoryQueryList - PDF - - -... -... - actually if you re using jasperreports, org.apache.struts2.views.jasperreports.JasperReportsResult is the good class for the result class. WEB-INF/pages/reports.jasper/maintenance_report.jasper is your precompiled rapport (i ve build them with ireports) maintenanceHistoryQueryList is the list with the data you need for your report you can find all those information on jasperreports forum... Robin honey0303 wrote: > > still i got the error even if i include that in my default package.. > > e.g. > > > > > > > class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> > > ... > > > still have same error.. > > what you mean by this.. > > You ll have to find the result class you need to point at.. > > i am really new at Struts..please help me..thanks again. > > > > > RobinCamus wrote: >> >> I had to implement a jasper type for jasper report: >> I think you need to define a result type in struts.xml like >> >> >> >> > class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> >> >> >> >> >> You ll have to find the result class you need to point at. >> I hope it helps >> >> Robin >> >> >> honey0303 wrote: >>> >>> Hi i'm trying to integrate jasper with struts 2..but i got an error >>> because of my result type jasper >>> >>> i've followed this tutorial.. >>> >>> >> class="com.mevipro.test.action.JasperAction"> >>> >>> >>> >>> my question is how can i defined a jasper result type? >>> i need answers ASAP..Thanks in advance >>> >> >> > > -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11006929 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in JasperReports and Struts 2.0 integration
I got this error in integrating JasperReports and Struts 2.0 Message ID: WebModule[/myeis]Exception starting filter struts2 The package name 'jasperreports-default' at location package - jar Complete Message file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 is already been used by another package at location package - file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/classes/struts-plugin.xml:8:43 - package - jar:file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 here is my struts-plugin.xml and my action mapping please help me..thanks in advance -- View this message in context: http://www.nabble.com/error-in-JasperReports-and-Struts-2.0-integration-tf3883426.html#a11006564 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exchange data between two actions
I would like to exchange data between two actions, say A and B. Currently I just store the String in the session, but is there probably a nicer way? When A returns SUCCESS the client is redirected to the action B (see struts.xml below). Now I would like A to pass a String to B. I don't like storing it in the session since it's just a big Map and no one knows where the data comes from, who modifies it and who removes it. Thanks and best regards, Anton struts.xml: B /result.jsp signature.asc Description: OpenPGP digital signature
Re: [s2 on J4] Error Message: Filter [struts2]: could not be initialized
I looked after, but I did not find a solution. I tried to run only 'blank' application on java 1.4. - websphere 6.0 server, winxp os, struts J4 distribution. After deploy, I got almost the same error (for another constant) when calling the action: E SRVE0026E: [Servlet Error]-[Filter [struts2]: could not be initialized]: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.i18n.encoding'] in public static void org.apache.struts2.dispatcher.Dispatcher.setDefaultEncoding(java.lang.String). at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:157) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:126) at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:111) at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:328) .. Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.i18n.encoding'] in public static void org.apache.struts2.dispatcher.Dispatcher.setDefaultEncoding(java.lang.String). at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:239) at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:229) at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.(ContainerImpl.java:282) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:130) at com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:128) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:154) at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:126) at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:111) ... Thank you very much ? - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, June 6, 2007 3:59:36 PM Subject: Re: [s2 on J4] Error Message: Filter [struts2]: could not be initialized It looks like this issue has been around awhile; google for struts + "No mapping found for dependency" and you may find something that will help. d. --- johana pin <[EMAIL PROTECTED]> wrote: > First I put the initial plugin in the lib dir. and I > got version error. After that, I compiled the > sources with 1.4 and it passed over that error. The > only jars that I used from struts2 distribution are: > - those provided in J4 download > - struts-spring plugin (one class compiled with > eclipse - java 1.4) > - ognl-2.6.11.jar (I just retrotranslated this one > and I have same error) > > I found a simmilary issue in this context: > http://mail-archives.apache.org/mod_mbox/struts-user/200701.mbox/[EMAIL PROTECTED] > > > - Original Message > From: Dave Newton <[EMAIL PROTECTED]> > To: Struts Users Mailing List > > Sent: Wednesday, June 6, 2007 2:06:39 PM > Subject: Re: [s2 on J4] Error Message: Filter > [struts2]: could not be initialized > > > --- johana pin <[EMAIL PROTECTED]> wrote: > > I used the J4 download from struts site. I only > > recompiled (not with retrotranslator but with > > eclipse) the struts-spring plugin from 'all' > > distribution. > > You're building from source? Make sure it's > compiling > with a 1.4 JDK. > > Anyway, try J4-ing any of the struts2-* jars and > tiles > if you're using them. That was enough for Weblogic, > anyway, but the error you're getting isn't like > anything I saw. > > d. > > > > > > Take the Internet to Go: Yahoo!Go puts the Internet > in your pocket: mail, news, photos & more. > http://mobile.yahoo.com/go?refer=1GNXIC > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > Looking
Re: How to access static content in struts2
It can be used by changing expression to [EMAIL PROTECTED]@propertyValue } Strut_developer wrote: > > I, > In case of webworks to access static properly in jsp page we used to do as > below > > http://www.nabble.com/How-to-access-static-content-in-struts2-tf3881676.html#a11006284 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: result type Jasper [Struts 2]
still i got the error even if i include that in my default package.. e.g. ... still have same error.. what you mean by this.. You ll have to find the result class you need to point at.. i am really new at Struts..please help me..thanks again. RobinCamus wrote: > > I had to implement a jasper type for jasper report: > I think you need to define a result type in struts.xml like > > > > class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> > > > > > You ll have to find the result class you need to point at. > I hope it helps > > Robin > > > honey0303 wrote: >> >> Hi i'm trying to integrate jasper with struts 2..but i got an error >> because of my result type jasper >> >> i've followed this tutorial.. >> >> >> >> >> >> my question is how can i defined a jasper result type? >> i need answers ASAP..Thanks in advance >> > > -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11006254 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie: How can I get the param values from an url ?
You can just make getters and setters with parameters names in the action class. GEDA wrote: > > Actually I am quite sorry for not digging the answer in the forum archive. > Anyway here is a quote of the correct answer: > > So I've finally found out how it can be done. Through action context I can > get > value stack and find any possible value being already there. > > ActionContext.getContext().getValueStack().findValue("valuename"); > > Not exactly nice as the parameter is not pushed to the action by the > caller > but the action must dig on the value stack for it, but at least it > works... > -- View this message in context: http://www.nabble.com/Newbie%3A-How-can-I-get-the-param-values-from-an-url---tf3882218.html#a11005996 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: result type Jasper [Struts 2]
I had to implement a jasper type for jasper report: I think you need to define a result type in struts.xml like You ll have to find the result class you need to point at. I hope it helps Robin honey0303 wrote: > > Hi i'm trying to integrate jasper with struts 2..but i got an error > because of my result type jasper > > i've followed this tutorial.. > > > > > > my question is how can i defined a jasper result type? > i need answers ASAP..Thanks in advance > -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11005852 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrating Struts 2 and JasperReports
I get this error when i try to integrate jasper reports in my struts..I already have the struts2jasperreportsplugin in my lib folder.. but i got this error Caused by: There is no result type defined for type 'jasper' mapped with name 'success' and here is my action defined in my struts.xml where and how should i define my result type jasper? thanks in advance.. -- View this message in context: http://www.nabble.com/Integrating-Struts-2-and-JasperReports-tf3883155.html#a11005765 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?
On 6/6/07, Craig McClanahan <[EMAIL PROTECTED]> wrote: * The symptoms you describe are the classic scenario where a previously existing application level thread safety issue has already existed, but didn't surface until the usage pattern of the app itself changed. Thanks muchwill continue to investigate. I really appreciate the information and will post back if I get any concrete results - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] How to get the value of dojo datetimepicker object
I am trying to get the value inputed by the user from datetimepicker object. I have the following javascript in my JSP: var obj = dojo.widget.byId("createTimeTm"); alert(obj); alert(obj.getValue()); But "alert(obj.getValue())" encounter a javsacript error. Can anyone tell me the correct syntax of the javascript to retrieve the value of datetimepicker object? Thanks!
result type Jasper [Struts 2]
Hi i'm trying to integrate jasper with struts 2..but i got an error because of my result type jasper i've followed this tutorial.. my question is how can i defined a jasper result type? i need answers ASAP..Thanks in advance -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11004749 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie: How can I get the param values from an url ?
Actually I am quite sorry for not digging the answer in the forum archive. Anyway here is a quote of the correct answer: So I've finally found out how it can be done. Through action context I can get value stack and find any possible value being already there. ActionContext.getContext().getValueStack().findValue("valuename"); Not exactly nice as the parameter is not pushed to the action by the caller but the action must dig on the value stack for it, but at least it works... -- View this message in context: http://www.nabble.com/Newbie%3A-How-can-I-get-the-param-values-from-an-url---tf3882218.html#a11004562 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: not working
--- Ambaris Mohanty wrote: > Everything is working nicely except for the reset > buttons in the forms. What isn't working? d. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: datetimepicker & S2 validation
--- [EMAIL PROTECTED] wrote: > > > > > Is payrollUpdate.effectiveDate a String? d. Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: datetimepicker & S2 validation
Hi Musachy , Have you fixed the bugs for the datetimepicker tag for 2.0.8? Thanks Dave. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 06 June 2007 21:37 To: Struts Users Mailing List Subject: Re: datetimepicker & S2 validation sorry. 2.1 is the one. musachy On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It is getting to the action! Can you tell me if a new version is > available? > > On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > > > Datetimepicker is buggy on 2.0.6, I would first make sure that the > > value is getting to the action, without any validation at all. > > > > musachy > > > > On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > I have a datetimepicker on a screen with the key=" > > > payrollUpdate.effectiveDate". I have a > > > PayrollUpdateAction-validation.xmlfile that corresponds to the > > > Action associated with this web page. Inside the validation file > > > I have the following field validation: > > > > > > > > > > > > > > > > > > > > > > > > After entering a date or selecting one from the calendar, I get > > > the validation error that Effective Date is required! It is as > > > though I > > have > > > not entered anything! Any ideas? > > > > > > -- > > > Scott > > > [EMAIL PROTECTED] > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > > > -- > Scott > [EMAIL PROTECTED] > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - -- ML {UFI} __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?
I know this may be a bit of a slog, but look for places where catch blocks just drop or wrap exceptions. I've seen a few apps that return null instead of propagating up things like SQLException. Also check how your library handles contention and data locking. If Threads A & B ask for the same data and your app/library/datastore implements exlusive locking what happens to last thread to issue the request? Also put a check in to see if null is being returned to whichever font end isn't showing the data, as I understand it when you access either one it works reliably, so if you're only getting no data when the two are used together it's pretty much certain it's a contention issue. -Original Message- From: Jeff Amiel [mailto:[EMAIL PROTECTED] Sent: 06 June 2007 16:15 To: Struts Users Mailing List Subject: Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...? On 6/6/07, Al Sutton <[EMAIL PROTECTED]> wrote: > Are the soap methods and the actions your calling accessing the same > data and/or service classes? sure...under the hoodthey all utilize the same service 'layer' (factory method pattern to acquire newly created serviceimpl classes) and use the same domain objects (uniquely instantiated per servlet request) The only thing the individual requests should be 'sharing' is session information... - 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]
Newbie: How can I get the param values from an url ?
Hi. I am a struts newbie and I would really like to know how can I get the parameters values from an action url sent to a div tag. To be more explicit here is the jsp code: I want to get the value of the param "cauta" from the action class that's being loaded by the div tag. Thanks in advance. -- View this message in context: http://www.nabble.com/Newbie%3A-How-can-I-get-the-param-values-from-an-url---tf3882218.html#a11003073 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]