Re: How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Jeromy Evans
.x/docs/building-the-framework-from-source.html,http://struts.apache.org/2.x/docs/building-with-maven.html -Andre- Jeromy Evans wrote: Andre Prasetya wrote: Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it very much, feature that i need most is the ajax validation which

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Jeromy Evans
solved in struts 2.1 already. If you let me know where the instructions fall-short maybe I can help a little better? regards, Jeromy Evans Jeromy Evans - Blue Sky Minds wrote: As suggested, I've added these instructions to the community wiki. http://cwiki.apache.org/confluence/display

Re: datetimepicker tag

2007-10-16 Thread Jeromy Evans
Dipti, if you're using Struts 2.0.x, follow the example at : http://struts.apache.org/2.0.9/docs/datetimepicker.html It's likely you're just missing the essential %@ taglib prefix=s uri=/struts-tags % and/or s:head theme=ajax/ tags mentioned at the top of that page. Note there are several

Re: OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Jeromy Evans
Are you using Struts 2.0.7 or below? That warning's present in those versions when you pass a literal string as a parameter. https://issues.apache.org/struts/browse/WW-1714 It will go away if you upgrade to 2.0.9. If you can't upgrade, you can turn off warn logging to hide it. Tuyen Dinh

Re: Exception Logging

2007-10-13 Thread Jeromy Evans
if the exception page is ever displayed. Hope that helps, Jeromy Evans Richard Sayre wrote: I am trying to log the exception that get cought by the struts exception handler. So far I have .jsp page that shows the exception: An Exception Has occured! br/br/ s:property value=%{exception}/ br/br

Re: How to improve dojo performance in Struts 2.0.9

2007-10-10 Thread Jeromy Evans
As suggested, I've added these instructions to the community wiki. http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9 Wes Wannemacher wrote: This was my original suggestion to post it into the community wiki because any changes that would be made

Re: How to improve dojo performance in Struts 2.0.9

2007-10-09 Thread Jeromy Evans
struts.ui.templateDir=template. Again, I see no reason to change it. You can modify or add templates by adding a /template directory to your application classpath (this however is not an optimisation) Hope that helps, Jeromy Evans Musachy Barroso wrote: Everything ends up inside a jar, in this case

How to improve dojo performance in Struts 2.0.9

2007-10-06 Thread Jeromy Evans
heavy-weight resource. Hope that helps someone else. Improvements comments welcome. See reference [3] below for detailed instructions and rationale. regards, Jeromy Evans Resources [1] http://struts.apache.org/2.x/docs/performance-tuning.html [2] http://www.nabble.com/-s2--Struts-head-tag

Re: dojo form submission not working in IE

2007-09-03 Thread Jeromy Evans
In IE6 the s:a can't have a target equal to a div that contains the itself unless you set showLoadingText=false The problem is that in IE6 the form nodes are overwritten by the loading text before its actually read and posted. Disable the loading text and it will be okay. regards, Jeromy

Re: Struts 2 !!!OK!!! cannot we live without Spring?

2007-09-01 Thread Jeromy Evans
considering distributed transactions). Hope that's helpful. I won't ever get into an argument about the benefit of b). vs. c). vs. d). because they're all useful under certain circumstances and most Java forums already contain a useless thread on the topic. cheers, Jeromy Evans Hayrol Reyes

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-30 Thread Jeromy Evans
. James -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 1:34 AM To: Struts Users Mailing List Subject: Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files It's not as easy as that. Each struts2 tag

Re: [S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Jeromy Evans
. The exception you quoted is unrelated and caused because you're writing to the output stream within a JSP that's already doing so. That code is better suited to its own servlet. Hope that helps, regards, Jeromy Evans Joe Lam wrote: try to make a file download action without opening the file

Re: Loading.. message while ajax request.

2007-08-29 Thread Jeromy Evans
Set the attribute showLoadingText=false on the div/submit/a tag. If you're using an IDE you should be able to list the attributes available for each tag (as looks like this attribute not documented on the wiki) Hari Prasad wrote: I'm using Dojo for ajax. and when i send ajax request to the

Re: Unsolved datepicker problem

2007-08-29 Thread Jeromy Evans
Suggestions: Confirm that the dojo javascipt is actually included in the html output Use FireBug to examine if the requests to get the javascript files and images are working (and if not, why not) Create a minimal test application and get it working first. vamsi wrote: Thanks for response, I

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread Jeromy Evans
and modify the template for FieldError to get it. hope that helps, Jeromy Evans afp wrote: Guys any ideas on how to do the below?? afp wrote: Reposting as last post was not very clear Hi, I am trying to add some custom parameters/attributes to the struts2 tags like s:fielderrors / etc

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread Jeromy Evans
the validation filenames ActionClassName-alias-validation.xml: MyAction-abc_methodA-validation.xml MyAction-abc_methodB-validation.xml References: http://struts.apache.org/2.0.9/docs/wildcard-mappings.html Hope that helps, Jeromy Evans j alex wrote: Hi, Just checking one more time

Re: the icons of datatimepicker cannot be displayed

2007-08-21 Thread Jeromy Evans
,then it works again. But that may hurt the performace if you have many pictures contained in static pages. I think the Apache Foundation should pay some attention to banlance the conflict. Speical thanks to *Jeromy Evans.* ** 2007/8/21, Andvar Woo [EMAIL PROTECTED]: *in the struts

Re: Struts2: should we use Tiles or Sitemesh?

2007-08-20 Thread Jeromy Evans
Sol, I think they're both great and your should try both out You need to decide which is more suitable for each application you're building. If you use a lot of similar pages you'll appreciate the decorator approach used by sitemesh. If you reuse a lot of components within a page (and ajax)

Re: the icons of datatimepicker cannot be displayed

2007-08-20 Thread Jeromy Evans
The resources are in the 2.0.9 jar under /org/apache/struts2/static They are served from the /struts path by the struts FilterDispatcher if struts.serve.static is true (default) If it successfully served the javascript from that path it should have served the images. Perhaps have a look with

Re: s:div ajax problem

2007-08-19 Thread Jeromy Evans
/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] How to use https on form submissions?

2007-08-17 Thread Jeromy Evans
(a CONFIDENTIAL transport guarantee). You'll find examples of this everywhere. If you need automatic HTTP-HTTPS redirection you'll need a redirect interceptor. Another user contributed their version in a prior discussion but I can't find the link. regards, Jeromy Evans Srinivas.N. wrote: I dont

Re: Doubled requests in TabbedPane

2007-08-14 Thread Jeromy Evans
In response to your second question: Sebastian Kolbe wrote: Another question: Is there an easy way to catch the event (something like 'onclick') when a different tab is selected? Yes : a. at page init time, lookup the id of each tab widget b. connect a handler before the show event

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Jeromy Evans
in each action (eg. execute()) then the annotation validation works well as shown on the wiki. Hope that helps you make a decision. Jeromy Evans j alex wrote: Hi, I am about to migrate a S1 app to S2 and need to decide which route to take regarding validations - XML or annotations? . Our app

Re: IoC and Guice 1.0 Struts 2.0.8

2007-07-29 Thread Jeromy Evans
constant name=guice.module value=packagename.ExampleModule/ Extract from struts.properties: struts.objectFactory = guice ie. No need to use the Guice filter in web.xml. hope that helps, Jeromy Evans Łukasz Łapiński wrote: On Fri, 27 Jul 2007 13:13:15 +0200, Oleg Mikheev [EMAIL PROTECTED] wrote

Re: struts buttons to invoke actions

2007-07-29 Thread Jeromy Evans
Your approach seems fine. See if you can access CategoryEditor.action directly using the browser. If not, the action name is incorrect. Have you confirmed that its actually posting a request? Also the logging and debugging interceptor for more insight. Session A Mwamufiya wrote: Hi, I use

Re: Displaytag help in Struts 2

2007-07-17 Thread Jeromy Evans
this working for Struts2? Any help is appreciated. Thank you. - Kishan Jeromy Evans - Blue Sky Minds wrote: Within the displaytag 'display:table' tag, a 'row' object is set into the page context. How is this accessible from Struts 2? #attr is the OGNL to access the page context

Re: Preventing OGNL evaluations of user input (was Re: Struts 2 performance)

2007-07-16 Thread Jeromy Evans
Is there a policy or person in the struts2, webwork or apache team with a PR role that's going to announce the vulnerability? I'm obliged to keep my clients informed and I'd rather point them to a factual article announced by the community than to a misinformed post that will undoubtedly soon

Re: submit of a loaded form via ajax won't work in IE

2007-07-07 Thread Jeromy Evans
In IE, the form that does the ajax submit can't be contained in the target div, unless you set the attribute showLoadingText=false. There's an issue in JIRA about this and it's already been resolved in a future S2 release. Basically in IE when the loading text is inserted into the DOM it

Re: optionstransferselect tag

2007-07-06 Thread Jeromy Evans
on whether the problem was fixed in 2.0.8, or if the exact cause of the intermittent problem was ever identified as a bug. More details in this thread: http://www.nabble.com/-S2--Optiontransfertselect-tag-t3827911.html regards, Jeromy Evans [EMAIL PROTECTED] wrote: There is bug

Re: Displaytag help in Struts 2

2007-07-05 Thread Jeromy Evans
Within the displaytag 'display:table' tag, a 'row' object is set into the page context. How is this accessible from Struts 2? #attr is the OGNL to access the page context.#attr.row will access your display tag id object named row eg. #1 s:url action=/MyAction.action

Re: Displaytag help in Struts 2

2007-07-05 Thread Jeromy Evans
Within the displaytag 'display:table' tag, a 'row' object is set into the page context. How is this accessible from Struts 2? #attr is the OGNL to access the page context.#attr.row will access your display tag id object named row eg. #1 s:url action=/MyAction.action

[OT] Re: Problem in JSP. help me pls

2007-07-02 Thread Jeromy Evans
Guys, please read a classpath tutorial. There's a decent one here: http://www.kevinboone.com/classpath.html The following section is especially relevant that I've copied from that page for you: quote JARs on the classpath The java compiler and run-time can search for classes not only

Re: [S2] Do AJAX features work?

2007-07-02 Thread Jeromy Evans
s:submit type=button theme=ajax targets=div1 label=Submit Button/ The submit won't work because div1 doesn't exist. The s:a should work though. I don't recognise the error messages you're getting. If you're installed an copy of Dojo, remove it and use the version shipped within struts.

Re: [S2] Validation alias

2007-07-02 Thread Jeromy Evans
Crocker, Patrick wrote: Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml) to work. The validation never fires. Am I missing something, or just barking up the wrong tree all-together? The last time I checked you had to use the wildcard approach to call methods in

Re: My struts1 app with sslext used. How to upgrade it to struts2?

2007-07-02 Thread Jeromy Evans
, however Shahak Nageil contributed his version on this mailing list in early June with the subject SSL Interceptor. regards, Jeromy Evans peter lee wrote: Hello, Does anyone use http switch in struts2? It seems nobody answers my question. please help. Thanks, peter c. peter

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
We use: s:datetimepicker name=incomingAnswer displayFormat=h:mm a type=time value=%{defaultAnswerTime} required=true/ where incomingAnswer and defaultAnswerTime are Strings in the hh:mm format. The string's components can then be applied to

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
Kishen Simbhoedatpanday wrote: Thank you Jeromy! When using the 'displayFormat=h:mm a' in the datetimepicker tag... So we set the following in our Action method: this.setCurrentTimePart(16:15); The exception is in the DateFormat.parse() method called by the DateTimePicker. 16:15 is an

Re: DateTimePicker (type time) problem

2007-06-28 Thread Jeromy Evans
Kishen Simbhoedatpanday wrote: I thought the displayFormat was for display purposes only. But HH:mm does not work when giving the currentTimePart 16:15. It still gives the 00:00 My only remaining suggestion is that you create a page full of time pickers and try all the possible

Re: [s2] how to access page-scoped variables using s:property

2007-06-27 Thread Jeromy Evans
You can access variables in the page context using the OGNL expression #attr.propertyname, although I also prefer JSP EL. I'm unsure why this was deliberately left out of the duplicate pages of the S2 wiki, but it's still described at WW: See #attr at the bottom of this page:

Re: [s2] how to access page-scoped variables using s:property

2007-06-27 Thread Jeromy Evans
It's not left out (of the wiki, but I left it out of my head, I guess :/ I know the feeling! This page omits attr from the context map diagram: http://struts.apache.org/2.x/docs/ognl.html but the equivalent WW page includes it: http://wiki.opensymphony.com/display/WW/OGNL

Re: DateTimePicker doesn't work with siteMesh

2007-06-22 Thread Jeromy Evans
, among other files, it asynchronously requests an html template for its popup. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Alternative Template Ajax + web Standards for business solutions

2007-06-22 Thread Jeromy Evans
into S2 is because I can achieve higher levels of productivity with it compared to other web frameworks. Hope that was helpful and in some way addresses your questions and comments. regards, Jeromy Evans - To unsubscribe, e-mail

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
Let me re-articulate my interpretation of what you've done: You load an entity E with say 4 properties (a, b, c, and d) from persistence and render a view based on it. The persistence session is closed. In a new thread, the user submits an update that affects only two properties of the entity

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
though, that's a lot more effort and the additional cost is not appropriate in most web applications. Glad I could help, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: integration of hibernate3 in struts2

2007-06-21 Thread Jeromy Evans
I'm using a filter for hibernate in web.xml.. should I instead use a S2 interceptor? I use an S2 interceptor as per the open-session in view pattern. Pass the SessionFactory or EntityManagerFactory (in stand-alone mode) to your interceptor through the ServletContext.

Re: [S2]Paging through a large list of things

2007-06-21 Thread Jeromy Evans
Skip Hollowell wrote: So now my question is ... how? I have a list of 5000 records. I want to initially show them a 100 of these records, with a nice Prev / Next feature. 1. Where / how do I safely store this list for this user? Obviously it needs to be saved somewhere so it is not lost

Re: Ajax form submission doesn't work after the DIV is updated

2007-06-20 Thread Jeromy Evans
Musachy, is this the https://issues.apache.org/struts/browse/WW-1766 issue. I recall you made a partial fix in 2.0.8/2.0.9 but in 2.0.6 I used a work-around. FanCo wrote: Hi musachy, Thanks for your reply. It doesn’t work even I set the executeScripts to true. One thing I didn’t

Re: Automatic trimming

2007-06-19 Thread Jeromy Evans
Is there any way to automatically trim data from textfields etc? I don't believe so, but in S2 you could write a converter or an interceptor to do it for you. In both cases you'll have to come up with a convention that determines when trimming is applied.

Re: linking struts2 action to pre-existing pure Java servlet

2007-06-19 Thread Jeromy Evans
you the result you seek for a fixed set of parameters. - Jeromy Evans soum wrote: Hi, I have a servlet which implements some logic based on some URL parameters passed to it. I can invoke this servlet directly from my browser, by simply supplying the parameters thru the URL. http://localhost

Re: [s2] Case-insensitive request parameter binding

2007-06-19 Thread Jeromy Evans
Bruyn, Bill-p6141c wrote: Or maybe I could replace the ParametersInterceptor with one that used reflection to figure out which property to set, ignoring case. Do either of those options seem right to anyone else? Something like //for each request parameter //for each getter method on

Re: [s2] Case-insensitive request parameter binding

2007-06-19 Thread Jeromy Evans
Bruyn, Bill-p6141c wrote: Yeah, that's about what I'd come up with too (unless I'm misunderstanding you, this sounds like my option 1.) That'll work I guess, but I was hoping not to have to muck up all my method names (e.g., getWhatwouldordinarilybeacamelcasename(),

Re: why cant I have String[] with select tag

2007-06-17 Thread Jeromy Evans
tom tom wrote: I have the following in the jsp s:select name=testForm.inputAnswer list=#session.question.answers listKey=answer listValue=answer / You're trying to assign a

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-15 Thread Jeromy Evans
Mark P Ashworth wrote: Good Day, Thank you for your help. I created properties that return string representations of the date time values and I use the jscalendar component to select the date times. Seems to work just grand. I have only one issue that if the date string could parsed then it

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Jeromy Evans
(type=date) - sure it looks nice, but for reasons I don't understand the popup's design seems to confuse non-technical people. I'll be replacing that with the one Torsten emailed about earlier at the first opportunity I get: http://www.mattkruse.com/javascript/calendarpopup/ - Jeromy Evans

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-14 Thread Jeromy Evans
Torsten Römer wrote: I'll be replacing that with the one Torsten emailed about earlier at the first opportunity I get: http://www.mattkruse.com/javascript/calendarpopup/ I just gave that a try myself and I ran into a few issues: Thanks for this. You've saved me a lot of time!

Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-13 Thread Jeromy Evans
Tomcat w/o the default servlet, though? Ahh... you're right. It's a standard install with the default and jsp servlets enabled. Sorry, I didn't look there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread Jeromy Evans
GEDA wrote: Please help me. I don't really understand this debug message: ReferenceError: validateForm_createuser is not defined. Here is the code: s:form action=createuser.do validate=true s:textfield label=Name name=name / s:password label=Password name=password /

Re: How to validate field in type of a model class by annotations.

2007-06-13 Thread Jeromy Evans
public User getUser() {return user;} @EmailValidator(type = ValidatorType.FIELD, fieldName = user.email, key = email.invalid, message = Invalid mail addrss) public void setUser(User user) {this.user = user;} I noticed that using @Validations, I can

Re: ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread Jeromy Evans
GEDA wrote: I still get the same error. :-| I discovered that this is happening when the jsp page where the form is located, is loaded into a div tag. Is it normal the validation not working from a div tag? In 2.0.6 the javascript in your ajax-loaded section is automatically removed by dojo.

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Jeromy Evans
Hi Al, Are you saying the problem is new to 2.0.8? I can confirm that formatLength and dayWidth have never worked for me in 2.0.6 but displayFormat was fine provided the date values are RFC3339 strings. ie. I convert the Date to and from RFC3339 strings in the action, and use displayFormat=dd

Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-12 Thread Jeromy Evans
I have plenty of S2 webapps that don't include a servlet in web.xml and haven't encountered this problem. Have you included a filter mapping instead? web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;

Re: [S2] Design patterns

2007-06-11 Thread Jeromy Evans
and know nothing of persistence. Their role is fetch and manipulate data to/from the business/service layer for the view. Hope that helps. Jeromy Evans Raghupathy, Gurumoorthy wrote: It all Depends If the business logic for each operation (CRUD) is complex then better use 1 jsp

Re: Please sugest how to do the macro validation in velocity

2007-06-11 Thread Jeromy Evans
that your action contains getUsername(), getPassword() and getPassword1() exactly (and their setters) because it's case sensitive. The velocity macro itself is not the problem (provided you're calling it correctly). - Jeromy Evans tallurisuresh wrote: Hi, I am using the velocity for UI

Re: servlet.getServletContext().getAttribute(userList) is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Jeromy Evans
I am getting NullPointerException in this line Hashtable userList = (Hashtable) servlet.getServletContext().getAttribute(userList); As suggested by others the last time you asked this question, first try to determine whether it's the the servlet, servletContext or HashTable that's null.

Re: Ending session

2007-06-05 Thread Jeromy Evans
Mansour wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? 1. provide a logout action. In this action, get the ServletRequest and invalidate the session immediately; but 2. if the user simply closes the

Re: [S2] s:textfield questions

2007-06-04 Thread Jeromy Evans
meeboo wrote: Hey all Is there a way to set a default value for a s:textfield? s:textfield name=somefield value=%{'literal text value'}/ s:textfield name=somefield value=%{otherPropertyName}/ See http://struts.apache.org/2.x/docs/tag-syntax.html I am trying something like this: s:textfield

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-04 Thread Jeromy Evans
in an interceptor or filter - the same as you do for stand-alone mode except using a lookup. I haven't tried yet, but its described at [1]. Hope that helps, Jeromy Evans References: 1. http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html 2. http://www.nabble.com/Re:--s2--Struts

Re: [S2] Freemarker vs struts taglibs

2007-06-04 Thread Jeromy Evans
to provide an FTL result. Repeating the tests yielded consistent relative results on this server. I can't explain why these are not consistent with your test results. regards, Jeromy Evans More details from JMeter: Case1: Samples: 5000 Average: 247 Median: 251 90% line: 319 Min: 0 Max: 721

Re: email field validation in struts-2

2007-06-04 Thread Jeromy Evans
Property names are case sensitive. Your property name is userEmail not useremail public void setUserEmail(String userEmail) s:textfield key=useremail / (wrong) The params interceptor will try to call setUseremail(String). As this doesn't exist userEmail is null. validators field

Re: [S2] File Upload Question

2007-06-04 Thread Jeromy Evans
Ken, Yes, the interface to your action is a File. The default implementation uses the ServletFileUpload servlet from apache-commons-fileupload which does create a temporary file. You can switch to other implementations or configurations by changing some struts2 properties but the fileupload

Re: DateTimePicket takes the whole page

2007-06-04 Thread Jeromy Evans
I can't even begin to image what you're describing. However, install the firefox web developer plugin [1] and have a look at the DOM to see what's really being created. The dojo datepicker uses an html template in struts/dojo/src/widget/templates/DatePicker.html and a css file at the sample

Re: DateTimePicket takes the whole page

2007-06-04 Thread Jeromy Evans
decorator:body / /td tr td colspan=2 align=center height=20 bgcolor=#777d6a %@ includefile=/pages/layout/footer.jsp% /td /tr /table /body /html Jeromy Evans wrote: I can't even begin to image what you're describing. However, install the firefox web

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-02 Thread Jeromy Evans
qualify as CPM though which is what you asked for. I haven't tried using S2 with an EJB container yet. There's no need to use spring. cheers, Jeromy Evans Caine Lai wrote: No one? This seems like a major design flaw in Struts 2, if there is no way to use lazy loading in Struts 2 using JPA

Re: Turning JSPs into Excel files

2007-06-01 Thread Jeromy Evans
Pierre Goupil wrote: Do you mean that the only way is to generate a file by hand ? No help from Struts ? Jasper reports [1] may suit you. The S2 jasper reports plugin gives you a little bit of help, but not really. There's no 'automatically make this JSP an XLS file' solution. If you're

Re: [s2] OGNL and javascript

2007-05-31 Thread Jeromy Evans
Interesting problem... Using textfield as an example, the template (eg. text.ftl) takes the literal name attribute from s:textfield and writes it straight to the html. You could create your own theme that replaces the '.' with a different character in the html. You could then write your own

Re: [s2] If Test Conditions

2007-05-30 Thread Jeromy Evans
The problem is that displaytag places the current row in the pageContext but none of your expressions are addressing it. I tend to just use JSTL within displaytag tables as its much easier to access the current row. I also tend to add getters to my bean to simplify the expressions instead of

Re: [S2] Optiontransfertselect tag

2007-05-29 Thread Jeromy Evans
When I submit my form nothing in the optiontransfertselect is selected. How can I solve the problem? I work-around this bug but adding the following onsubmit attribute to the s:form: onsubmit=var selectObj = document.getElementById('leftId');selectAllOptionsExceptSome(selectObj, 'key',

Re: Problem in Implementation of Struts2 Validation framework

2007-05-29 Thread Jeromy Evans
Struts2 uses xwork validation. The best description of how it finds your xml files is here: http://www.opensymphony.com/xwork/wikidocs/Validation%20Framework.html Pay particular attention to the alias description in the Defining Validation Rules section because that's what's not working for

Re: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jeromy Evans
/tr /#list Is JSP taglib an slow and not recommended solution for production portals? Thanks a lot for your patience :) Best regards! Jordi Rubio Moreno -Mensaje original- De: Jeromy Evans [mailto:[EMAIL PROTECTED] Enviado el: sábado, 19 de mayo de 2007 6:13 Para: Struts

Re: [s2] how to get onclick working with ajax themed submit button

2007-05-28 Thread Jeromy Evans
Either use the 'handler' attribute of submit to specify the javascript function to call to submit your form, or add a listener with notifytopics/listentopics. http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-dojoTopics Jason Wyatt wrote: Hi, We're using an ajax-themed submit

Re: Optiontransferselect button customization.

2007-05-25 Thread Jeromy Evans
/css_syntax.asp If you don't understand what WW-1752 means, this is a reference to the issue number reported on JIRA at https://issues.apache.org/struts/browse/WW-1752 Good luck, Jeromy Evans Vijay Prajapati wrote: Jeromy, This can not worked according to your suggestion. There are bug in Struts 2.0.6

Re: calling particular method in the interceptor

2007-05-24 Thread Jeromy Evans
public String intercept(ActionInvocation actionInvocation) throws Exception { I wouldn't do it, but actionInvocation provides information about the action and method being invoked. Your interceptor could change its behaviour based on the action name/class or method. The preferred approach

Re: %{x}

2007-05-24 Thread Jeromy Evans
An introduction is provided at http://struts.apache.org/2.x/docs/ognl.html. The difference between %{} and #{} is described there. How it's applied within tags is here http://struts.apache.org/2.x/docs/tag-syntax.html For a deeper understanding flick through some of

Re: Best practice - Wizard flow

2007-05-24 Thread Jeromy Evans
In S2 your JSP is accessing the value stack. Lets say you only need one bean for all the information your wizard collects (I'll use person as an example) eg. s:textfield name=person.firstName It's your action's responsibility to ensure the same person instance is being updated if you're

Re: Is this a BUG in S2

2007-05-23 Thread Jeromy Evans
I haven't tried to use a dynamic action name like that so can't comment on whether its a bug or feature, but one of these options should work: 1. Try using the ${} notation without the c:out s:url id=url action=${actionName} (I can't find the reference for this approach but it's somewhere on

Re: Is this a BUG in S2

2007-05-23 Thread Jeromy Evans
In the simple case, this: s:url id=url action=${courseName} and this: s:url id=url value=${courseName}.action would be identical. You can also use the param tag to include request parameters. You can create any URL you need using the value attribute and params. You referenced portal in

Re: Optiontransferselect button customization.

2007-05-23 Thread Jeromy Evans
attribute and how could you generate given below code in your JSP. #userCompaniesAssigned { width: 300px; } #userCompaniesNotAssigned { width: 300px; } On 5/22/07, Jeromy Evans [EMAIL PROTECTED] wrote: Hmm... I use 2.0.6. The wiki at http://struts.apache.org/2.x/docs

Re: Optiontransferselect button customization.

2007-05-22 Thread Jeromy Evans
optiontransferselect includes the doubleId attribute for the second select. Your CSS can reference that ID. To change the order of the buttons you'll need to create your own optiontransferselect.ftl template based on the existing one. Vijay Prajapati wrote: Hi, This is Vijay and

Re: Optiontransferselect button customization.

2007-05-22 Thread Jeromy Evans
it shows Bug in Optiontransferselect in version 2.0.6. please send me code for it. Vijay On 5/22/07, Jeromy Evans [EMAIL PROTECTED] wrote: optiontransferselect includes the doubleId attribute for the second select. Your CSS can reference that ID. To change the order of the buttons you'll need

Re: Access to MessageResource from action.

2007-05-22 Thread Jeromy Evans
, the ServletContext will be injected into your action by the ServletConfigInterceptor. That's a nice alternative to your call to the static method ServletActionContext.getServletContext(); cheers, Jeromy Evans Michał Letyński wrote: Michał Letyński napisał(a): How to do this in struts 2 ? In struts 1 i

Re: [S2] form population problem

2007-05-22 Thread Jeromy Evans
### to evaluate expressions for String attributes for tags struts.tag.altSyntax=true regards, Jeromy Evans shadman wrote: So, if the action properties are pushed onto the stack via OGNL, then what from below would be preventing me from seeing the values that should be there? Displaying a list worked just find

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Jeromy Evans
Assuming you're using an s:div theme=ajax for the tab that contains your form, the scripts are 'stripped out' due to this bug: https://issues.apache.org/struts/browse/WW-1766 Your work-round to include the scripts manually should work if you include ALL the missing embedded javascript. jdemic

Re: Disable label re-select tab

2007-05-22 Thread Jeromy Evans
Either: - create your own theme for the radio button. Use simple/radiomap.ftl tyo create mytheme/radiomap.ftl to exclude the label that's always included (recommended); or - do a hack: you can use html inputs in your form directly in your JSP. These are also included as parameters for your

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Jeromy Evans
the validation errors not to render... Jeromy Evans - Blue Sky Minds wrote: Assuming you're using an s:div theme=ajax for the tab that contains your form, the scripts are 'stripped out' due to this bug: https://issues.apache.org/struts/browse/WW-1766 Your work-round to include the scripts

Re: [S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Jeromy Evans
accessible through the ActionInvocation parameter. Writing custom interceptors is described at http://struts.apache.org/2.x/docs/writing-interceptors.html. Hope that helps. Jeromy Evans Will Smith wrote: Hi, I'm sure this has probably been beaten to death, but I can't seem to find a viable

Re: ajax - Submit a form

2007-05-20 Thread Jeromy Evans
Ensure you've included s:head theme=ajax to include the required javascript and try turning on ajax debugging (s:head theme=ajax debug=true). Ensure the javascript exists in your html. See the top of http://struts.apache.org/2.x/docs/ajax-tags.html Mansour wrote: I am populating some fields

Re: ajax - Submit a form

2007-05-20 Thread Jeromy Evans
, but may be I am missing something here. Jeromy Evans wrote: Ensure you've included s:head theme=ajax to include the required javascript and try turning on ajax debugging (s:head theme=ajax debug=true). Ensure the javascript exists in your html. See the top of http://struts.apache.org/2.x

Re: Handling requests through servlets vs struts action class ?

2007-05-19 Thread Jeromy Evans
There should be no additional concurrency limitations for struts actions as for any request handled by other servlet implementations. It's the container that determines how each request is handled. In the simplest case it will use a thread per request drawn from an available thread pool.

Re: S2 - for a StreamResult parameters dynamics

2007-05-19 Thread Jeromy Evans
I'm not sure if you're proposed change is an improvement or not, but in 2.06 dynamic parameters do work for contentType, contentLength, contentDisposition and the input stream name. ie. I use this: result name=download type=stream param name=inputNamemyStream/param param

Re: URL question

2007-05-18 Thread Jeromy Evans - Blue Sky Minds
If you mean you want a request to http://www.myapp.com/ to execute input.action, you can: - create an index.html with an http redirect header to index.action; or - setup your webserver or container so that index.action is the default welcome file (rather than index.html, index.jsp etc); or -

<    2   3   4   5   6   7   8   >