Re: [OT] RE: How do you refactor JSP, HTML, JavaScript, CSS, etc?

2009-09-18 Thread Mark McLaren
Hi Alex, For re-factoring HTML, JavaScript and CSS you can use numerous online tools (e.g. jslint, w3c validators). Also the Firefox browser is extremely useful with a selection of appropriate plugins, for example: Chris Pederick's Web Developer (validate CSS and *MUCH* more) HTML

Re: Please help me in Coding

2008-01-31 Thread Mark McLaren
You could try: http://sourceforge.net/projects/csv4j/ I'm sure there are many such CSV related utilities out there. Mark On Jan 31, 2008 9:32 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/1/31, ihaveareason [EMAIL PROTECTED]: Hi, Any one please help in coding i have to bring

Re: [Somewhat OT] RSS lib for Struts app?

2008-01-22 Thread Mark McLaren
Hi Manos, I can't speak for Informa but I wouldn't take the inactivity of the core ROME project in the last year as a sign of stagnation. ROME is quite a mature product that copes with all the major syndication formats (AFAIK no major new syndication formats surfaced last year and if they did

Re: Configuring Struts to use UTF-8 character encoding

2007-12-06 Thread Mark McLaren
To muddy the waters a little further! If for some reason (e.g. you are writing a JSR168 portlet) you cannot use a servlet filters to force UTF-8 encoding, you can alternatively use a ServletRequestListener. HTH Mark Adam Gordon wrote: So, for posterity, we finally got this working. After

Re: The breadcrumbs have been served!

2007-10-14 Thread Mark McLaren
Good stuff. Here is some feedback for you, free of charge. :) There is a slight issue with www.strutsschool.com (demo site for the breadcrumb plugin?). I think flipCoin should probably appear in your excludeMethods as accessing flipCoin through the breadcrumb link throws an exception. (the

Re: The breadcrumbs have been served!

2007-10-14 Thread Mark McLaren
times or however many times. But their point that breadcrumb history menus only having use in certain situations is very true. I always wish that javadocs had it built in. Mark McLaren on 14/10/07 16:05, wrote: Good stuff. Here is some feedback for you, free of charge. :) There is a slight

Re: Mapping a jsp to an action

2007-09-29 Thread Mark McLaren
url-pattern*.jsp/url-pattern /servlet-mapping Zarar On 9/28/07, Jennie Moeller [EMAIL PROTECTED] wrote: Thank much Mark, I talked with a colleague and we're going to give the urlrewrite a try. Thanks! -Original Message- From: Mark McLaren [mailto:[EMAIL PROTECTED] Sent: 28

Re: Mapping a jsp to an action

2007-09-28 Thread Mark McLaren
Hi Jennie, I am fairly new to Struts 2 but you can certainly do action wildcard mappings with it, such as: action name=* result/{1}.jsp/result /action where foo.action would map to foo.jsp. However, my guess is that what you are asking for is a little bit more advanced (and judging by the

[s2] Odd taglib behaviour with single character comparisons

2007-09-19 Thread Mark McLaren
I hope someone can explain the following behaviour to me. Using the S2 taglibs and OGNL is starting to confuse me somewhat. I have a test JSP that I am accessing via the default ActionSupport class: [EMAIL PROTECTED] uri=http://java.sun.com/jstl/core; prefix=c% [EMAIL PROTECTED] prefix=s

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Mark McLaren
Hi all, I think this is a generic problem rather than something Struts 2 specific. Ideally in this situation you would want to be able to access getRemoteUser() and isUserInRole() from the request. One approach is to use your application servers' container managed security, e.g. Tomcat

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread Mark McLaren
Hi Muhammad, With respect to JAAS integration. Do you mean something like this? http://struts.apache.org/2.x/docs/how-do-i-obtain-security-details-jaas.html I'm new to Struts 2 but I would imagine you probably want an interceptor of some kind (RolesInterceptor, PrincipalAware etc.) to pass

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread Mark McLaren
Muhammad, Starting out from scratch should you use JAAS? I'm not a JAAS expert (I tend to use JASIG CAS which uses JAAS internally and SecurityFilter) but I imagine it all depends on your circumstances. From what I can gather if you need to reuse the exact same login mechanism for desktop

Tiny error on Struts 2 download page

2007-09-05 Thread Mark McLaren
I'm not sure where the appropriate place to report this is and I'm not a pedant but the link to the Struts 2 Download Now says version 2.0.6. http://struts.apache.org/2.x/ and links to: http://struts.apache.org/download.cgi#struts206 When it should probably say 2.0.9 and link to #struts209.

Re: Tiny error on Struts 2 download page

2007-09-05 Thread Mark McLaren
I had not released this was the draft documentation. This was the first page returned resulting from a Google Search for Struts 2. Mark On 9/5/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/9/5, Mark McLaren [EMAIL PROTECTED]: I'm not sure where the appropriate place to report

[S2] XSL Result: passing XSLT parameters and XSLT 2.0 questions

2007-09-05 Thread Mark McLaren
I'm new to Struts 2 so please forgive me if I am asking something stupid. Is it possible to pass XSLT stylesheet parameters from the action prior to rendering the XSLT result? Is it possible to make of use of something like Saxon rather than Xalan to enable XSLT 2.0 stylesheets? If not, would

Re: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Mark McLaren
I recently upgraded an application Struts 1.2 to 1.3. The actual changes needed to upgrade are quite easy to implement if you have a decent search and replace tool (these changes being detailed on the previously mentioned wiki page). In addition, if your project makes use of numerous Jar

S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Mark McLaren
I am new to Struts 2 but have been a Struts bridge user for some time (and looking to migrate to Struts 2). I hope it is reasonable to expect that Struts2 portlets should work in standalone mode - i.e. not in a portlet container (a la Struts Bridge). I was having problems with ajaxExample.jsp

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Mark McLaren
Thanks Nils-H that makes sense. I'm not exactly sure how this would work but I was wondering if allowing JavaScript to dynamically create a random element id at runtime could solve the unique html id problem. For example, all AJAX divs with a given CSS className could have JS generated id at