Re: Advice needed: Offline Struts App

2012-03-15 Thread Brian Thompson
Another option that might work for you is an Adobe AIR app. There's a sample AIR web browser app [1]; install that demo and test your S2 app in it. If it works out properly, you can embed your Tomcat stack in the AIR app [2] and customize the browser from the sample to interact with your

Re: Map param in param tag

2012-02-22 Thread Brian Thompson
http://lmgtfy.com/?q=struts+mailing+list+unsubscribe On Wed, Feb 22, 2012 at 1:56 PM, Yadav Khanal yadav_kha...@yahoo.comwrote: Hi, I would like to unsubscribe from the list because it flooded my email box. Could anybody tell me how to unsubscribe? Thanks, YK

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Brian Thompson
My gmail filter for this mailing list is as follows: Matches: to:(user@struts.apache.org) Do this: Skip Inbox, Apply label struts Brian On Fri, Jan 13, 2012 at 12:40 PM, Wes Wannemacher w...@wantii.com wrote: On Fri, Jan 13, 2012 at 11:54 AM, Bogomil Shopov shopov.bogo...@gmail.com wrote:

Re: Struts 2 Webinar in Wednesday

2011-12-22 Thread Brian Thompson
A great seminar Thank you for informing us and providing a good opportunity Anirudh On Mon, Dec 19, 2011 at 10:01 PM, Bogomil Shopov shopov.bogo...@gmail.comwrote: On 19 December 2011 17:22, Brian Thompson elephant...@gmail.com wrote: What time (GMT

Re: Struts 2 Webinar in Wednesday

2011-12-19 Thread Brian Thompson
What time (GMT) on Wednesday? Brian On Mon, Dec 19, 2011 at 10:16 AM, Bogomil Shopov shopov.bogo...@gmail.comwrote: Hey guys, We will have free Struts 2 related webinar in Wednesday. I invite you to join if you are interested in making your life fun with Struts 2 and JRebel. I am

Re: Pulling up data in a pop up window

2011-11-04 Thread Brian Thompson
First, I'd say this isn't really a Struts question. Second, it looks like you're not submitting the data in the current page to the page you're calling in window.open. Third, ew. Using a popup is usually a pretty user-hostile design choice (people get confused about why the Back button is

Re: Pulling up data in a pop up window

2011-11-04 Thread Brian Thompson
4. Antara, why did you forward your message to struts-user-unsubscr...@jakarta.apache.org and struts-user-h...@jakarta.apache.org??!? That's a move that doesn't make any sense. Brian On Fri, Nov 4, 2011 at 8:07 AM, Brian Thompson elephant...@gmail.comwrote: First, I'd say this isn't really

Re: ajax validation with css_xhtml theme

2011-10-22 Thread Brian Thompson
Cat-keyboard? Brian On Sat, Oct 22, 2011 at 6:28 AM, serge nana nanata...@gmail.com wrote: sqtdqtqzstzatsarvqsqqNqYc@aRTqtxa1qq!qqAqqq1 On Oct 18, 2011 3:44 AM, Johannes Geppert jo...@apache.org wrote: Is there any Error Message in the JavaScript Console? Johannes - web:

Re: can't download excel file correctly

2011-10-19 Thread Brian Thompson
If you rename actionClassName.zip to actionClassName.xls, can you open it in Excel? Where is the 'fileName' variable defined? Brian On Wed, Oct 19, 2011 at 4:17 AM, raygrrr rayg...@gmail.com wrote: Dear Experts, I have this action class to perform file downloading function, however, it

Re: displaytag CSV output throw Internet Explorer cannot display webpage Exception under IE9

2011-10-18 Thread Brian Thompson
How long is the URL, including all the parameters? IE has a limit of 2083 characters. On Tue, Oct 18, 2011 at 3:04 PM, Emi Lu em...@encs.concordia.ca wrote: Hello List, I know the question is not really related to struts, and I am asking just in case, people had similar problem and has the

Re: To create new session without invalidating existing one

2011-09-29 Thread Brian Thompson
Well, first I'd suggest dropping the requirement for launching the new browser window. It's a pretty user-hostile way to program a site. Hey, why'd my Back button stop working? Sigh, call IT again. That said, you could try launching the popup window with a URL on a different subdomain. That

Re: To create new session without invalidating existing one

2011-09-29 Thread Brian Thompson
On Thu, Sep 29, 2011 at 3:58 AM, Marcus Bond mar...@marcusbond.me.ukwrote: What is the reason for the new session? Doesn't sound a great plan. Anyway you're going to have a problem as this isn't how browsers expect to work, that said Chrome allows incognito browsing so that might work but it

Re: Simplest way to implement lightbox or lightbox clone in struts2

2011-09-14 Thread Brian Thompson
Step 1: Create your Struts2 page with whatever layout makes sense for your application. Step 2: Insert lightbox javascript. There isn't really anything Struts-specific to this type of task. Brian On Wed, Sep 14, 2011 at 4:32 PM, Rafael Barrera Oro boraf...@gmail.comwrote: Hello! I come

Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-05 Thread Brian Thompson
You can embed images directly in html using base-64 encoding. Something like img src=data:image/gif;base64s:property name='encodedImage' / / might do the trick. Brian On Mon, Sep 5, 2011 at 7:02 AM, Aaron Brown aa...@thebrownproject.comwrote: The problem is really an html problem. You

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
I'm not familiar with the html:form tag; does that auto-include the script defining the validateForm() function? If not, I'd suggest a missing script in the html as a likely culprit ... at least, without any further info! Brian On Fri, Sep 2, 2011 at 5:47 AM, Dave Newton davelnew...@gmail.com

Re: [OT] JQuery or dojo?

2011-08-16 Thread Brian Thompson
I prefer jquery. Even back in 2007, using dojo with Struts seemed clunky. AFAIK the Struts dojo plugin is deprecated, but I'm sure Dave can tell you more about that :) Brian On Tue, Aug 16, 2011 at 11:37 AM, Balwinder balwinder@gmail.com wrote: Hi All, Can any one suggest, for ajax

Re: Doc for Struts2

2011-07-20 Thread Brian Thompson
Sometimes I think autocorrect is the best feature ever. Autotypo, OTOH, is the work of the devil. Brian On Tue, Jul 19, 2011 at 11:23 PM, Dave Newton davelnew...@gmail.com wrote: Wiki outer blog?! Ah auto-complete, you complete me. I'll add something to the wiki or blog about it this

Re: Emails

2011-06-14 Thread Brian Thompson
I haven't received any Ghanna spam, but your email made me look in my span folder this morning. I discovered a newsletter being sent there by mistake, so I was glad I went and looked. In general, though, I haven't had any spam problems related specifically to this mailing list. -Brian On Tue,

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Brian Thompson
You sure that isn't the File FTP Protocol? :P Redundancy FTW! -Brian On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com wrote: On Tuesday, June 14, 2011, webmeiker wrote: Have somebody successfully integrated a Struts2 app with some (web)FTP editor (based in PHP) like

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Brian Thompson
On Tue, Jun 14, 2011 at 2:44 PM, webmeiker i...@webmeiker.com wrote: Thank you Chris, thats the point... coexistence of Struts2 PHP inside same app. Well...I suppose you could have a server configured to run both PHP and Tomcat...but I'm pretty sure the Struts code and PHP file viewer stuff

Re: [OT] Re: Job postings

2011-05-26 Thread Brian Thompson
LOL ... I had a feeling that was going to happen as soon as I saw Patrick's request! It's like an extension of Murphy's Law... -Brian On Thu, May 26, 2011 at 9:13 AM, Wes Wannemacher w...@wantii.com wrote: damnit, sorry, I hit reply, but didn't pay attention to where it was going :(

Re: rafael_muneton

2011-05-20 Thread Brian Thompson
More like spamvirus/hack victim, I think. On Fri, May 20, 2011 at 6:57 PM, Saeed Najahi najah...@gmail.com wrote: moron... On Fri, May 20, 2011 at 7:58 PM, Rafael Muneton rafael_mune...@hotmail.comwrote: --

Re: form action is not calling while click on submit button: Struts2.0

2011-04-13 Thread Brian Thompson
which is why plain-text emails are better. Fixed that for you ;) -Brian On Wed, Apr 13, 2011 at 9:45 AM, Dave Newton davelnew...@gmail.com wrote: Probably that whole tags-being-interpreted-as-tags this in HTML emails, which is why plain-text emails are better for lists. Dave On Wed,

Re: Accessing session objects other than action in Struts 1.x

2011-04-07 Thread Brian Thompson
On Thu, Apr 7, 2011 at 7:05 AM, Dave Newton davelnew...@gmail.com wrote: On Apr 7, 2011 5:48 AM, Ganesh wrote: I am using Struts 1.0.2. Good lord why? Legacy code, I'll wager. If he were building something brand-new, it would be a no-brainer to use Struts 2. -Brian

Re: [maybe OT] Detecting if a new window or tab was opened (server-side)

2011-03-17 Thread Brian Thompson
CTRL-click? Shift-click? Configure the browser to open all links in new tabs? I'm pretty sure you can do that in Firefox. And please don't suggest blocking mouse events. I like to use those features, and I really hate it when sites try to hijack my browser that way. It's one of the more

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
Try making the following changes to your Java code -- the output should give you some clues about what's going wrong. -Brian On Sun, Mar 13, 2011 at 11:52 PM, JavaNoobie87 vivek...@enzentech.comwrote: Hi All, Im developing a Crud example using Struts 2 where im in the need to load values for

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
Oh, nevermind -- I replied before I saw that you'd solved that part of it :/ -Brian On Tue, Mar 15, 2011 at 2:40 AM, JavaNoobie87 vivek...@enzentech.comwrote: Following changes? I didnt get what you meant. i dont see any code :S -- View this message in context:

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton davelnew...@gmail.com wrote: On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: But for the future I am writing an app where the user can upload a file of data and specify the input using that printf/scanf pattern description, and output the

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 8:03 PM, Dave Newton davelnew...@gmail.com wrote: On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik tutti...@gmail.com wrote: Can someone help here? using the JSON plugin - my execute method is being called twice. So far, it sounds like it's being called twice for some

Re: Struts 2.0.11.1 question

2011-03-08 Thread Brian Thompson
You can definitely write an Action to return a JSON string -- just set the content-type of the response appropriately and instead of writing HTML to the response, write your JSON string. If you're comfortable with JSON and Javascript in general, it should be easy. -Brian On Tue, Mar 8, 2011 at

Re: Forum Advice

2011-02-24 Thread Brian Thompson
You'll probably have to build it from scratch. This Stackoverflow post [1] might be of some help, but it's a bit more general than what you're looking for (focused on Java rather than Struts-based forums). -Brian [1] -

Re: sending the report directly to the printer

2011-02-22 Thread Brian Thompson
Could you post your code for your report? -Brian On Tue, Feb 22, 2011 at 5:15 AM, @rju nagarjunabatt...@gmail.com wrote: sir u said Can't you just put it in your jsp for the report action? please elaborate this sir. i am not getting your point. please sir Brian Thompson-5 wrote

Re: sending the report directly to the printer

2011-02-22 Thread Brian Thompson
On Tue, Feb 22, 2011 at 10:31 AM, Dave Newton davelnew...@gmail.com wrote: On Tue, Feb 22, 2011 at 11:29 AM, Brian Thompson wrote: Could you post your code for your report? Why? This isn't an issue with the report itself, is it? Dave I hope not -- I have no experience with Jasper

Re: Session for User Class

2011-02-22 Thread Brian Thompson
Normally I use Spring Security for handling authentication. However, that's a fair bit of trouble to configure if your needs differ from the default config. For a roll your own approach, I'd put the user object into the session context. -Brian On Tue, Feb 22, 2011 at 11:43 PM, Jerson John

Re: sending the report directly to the printer

2011-02-21 Thread Brian Thompson
that window.print().. please tell me sir Brian Thompson-5 wrote: Try putting the window.print() in the code for the page at urlx. -Brian On Sun, Feb 20, 2011 at 11:39 PM, @rju nagarjunabatt...@gmail.com wrote: exactly i did but the problem here is.. see my code var

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton davelnew...@gmail.com wrote: I have no idea. Personally, I'd be a little surprised if it was possible to print from a website with *no* user interaction without using something like ActiveX, an applet, or *something*. Dave Indeed. Browsers

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
Where is the user clicking ok? Do you mean an HTML button? Or the browser's print dialog box? At the very least, the user will see the print dialog...there's no way around that for a web page (which, ultimately, is what Struts is sending to the user). -Brian On Sun, Feb 20, 2011 at 9:46 PM,

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
wrote: yes user is clicking html/jsp button only Brian Thompson-5 wrote: Where is the user clicking ok? Do you mean an HTML button? Or the browser's print dialog box? At the very least, the user will see the print dialog...there's no way around that for a web page (which, ultimately

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
it is invoking printer but empty page is printing because the action is taking time to load. thats y am getting empty page so any alternative? Brian Thompson-5 wrote: Then no, there's no way to do this. What you *can* do is: User clicks HTML button -- Struts action/Jasper report displays

Re: requests die with a stack overflow

2011-02-17 Thread Brian Thompson
Looks to me like it's getting into an infinite loop somewhere. I did notice that the same 18 lines were repeating for about half the file. -Brian On Thu, Feb 17, 2011 at 10:21 AM, Denis Laroche dlaroc...@gmail.com wrote: Hello all, I also posted this message to the Tomcat mailing list,

Re: Restrict direct access to static content

2011-02-16 Thread Brian Thompson
On Wed, Feb 16, 2011 at 11:34 AM, Dave Newton davelnew...@gmail.com wrote: 2011/2/16 Luis Eric López Fernández wrote: I am thinking to do something that will completely destroy the purpose of struts hehe.. I will add a servlet to handle all the requests different than .action and there I

Re: SAMRALA?

2011-01-27 Thread Brian Thompson
TBF, if he's not actually asking about Indian geography, Google won't help him much. -Brian On Thu, Jan 27, 2011 at 9:39 AM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2011/1/27 Martin Gainty mgai...@hotmail.com: Good Morning Fellow Struts Geeks Anyone come across the term

Re: Action Struts2

2011-01-12 Thread Brian Thompson
That's never a good sign. -Brian On Wed, Jan 12, 2011 at 10:03 AM, Dave Newton davelnew...@gmail.com wrote: We've been butt-posted?! :D On Wed, Jan 12, 2011 at 11:00 AM, JOSE L MARTINEZ-AVIAL jlm...@gmail.com wrote: Sorry about the repetition of mails. I forgot to close my

Re: Struts 2 - multi select

2011-01-06 Thread Brian Thompson
Stefan, Can you filter the list somehow? Say, if the list entries fall into categories, have the user select a category first. Something like that would probably help. -Brian On Thu, Jan 6, 2011 at 6:36 AM, Dave Newton davelnew...@gmail.com wrote: It's all html; if one of the S2 tags

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Pardon my ignorance, but what is a CLA? I haven't heard of it before this. Brian Sent via my Droid, Eka. On Jan 3, 2011 10:42 AM, Dave Newton davelnew...@gmail.com wrote: I kind of thought the ability to submit to specific action methods was well-known, but perhaps you're correct, as this

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Thanks, Maurizio. Brian On Mon, Jan 3, 2011 at 12:14 PM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: Individual Contributor License Agreement [1] [1] http://www.apache.org/licenses/icla.txt 2011/1/3 Brian Thompson elephant...@gmail.com: Pardon my ignorance, but what is a CLA

Re: Authorization/ Authentication

2010-12-28 Thread Brian Thompson
Personally, I'd lean towards having showSales.action always show a report specific to the current user. Then the manager wouldn't click on showSales.action. She'd click on showSalesSummary.action which would have a completely customized query. -Brian On Tue, Dec 28, 2010 at 3:25 PM,

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Brian Thompson
How could you tell he was using Struts 1? -Brian On Thu, Dec 23, 2010 at 8:20 AM, Dave Newton davelnew...@gmail.com wrote: No no, I was asking why you're learning Struts 1 when there are a number of substantially better options available in today's modern era. Dave On Thu, Dec 23, 2010

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Brian Thompson
On Thu, Dec 23, 2010 at 1:12 PM, Dave Newton davelnew...@gmail.com wrote: On Thu, Dec 23, 2010 at 12:29 PM, Brian Thompson wrote: How could you tell he was using Struts 1? Because of these: html:select html:options Besides the taglib prefix (which is a /strong/ hint

Re: web application response time is too large.

2010-12-21 Thread Brian Thompson
Good points. However, I'd caution people to be careful of denormalization -- if you don't normalize in the first place, you run the risk of degrading performance in *other* ways ... not to mention opening the door for some ugly data-consistency issues. Like all things, there's a balance

Re: web application response time is too large.

2010-12-21 Thread Brian Thompson
I love Firebug. It's quite possibly the single best tool in my web development toolbox. -Brian On Tue, Dec 21, 2010 at 11:15 PM, Kushan Jayathilake kusha...@gmail.comwrote: Addition to this, you can track response time with Firebug (Third party plugin for Firefox) once it installed, open

Re: EmailValidator

2010-12-13 Thread Brian Thompson
I've looked into this before. The email validator resolved down to some really old code in XWork with a regex that looked something like this: [a-z0-...@[a-z0-9].[a-z]^3 I strongly agree with Dave's advice. Broken email validators are too common on the web. -Brian On Mon, Dec 13, 2010 at

Re: EmailValidator

2010-12-13 Thread Brian Thompson
PM, Greg Akins angryg...@gmail.com wrote: On Mon, Dec 13, 2010 at 1:50 PM, Brian Thompson elephant...@gmail.com wrote: I've looked into this before. The email validator resolved down to some really old code in XWork with a regex that looked something like this: [a-z0-...@[a-z0-9].[a-z

Re: Using Dojo with Struts 2

2010-12-02 Thread Brian Thompson
I don't think Dojo quite has what it takes to replace Struts 2. -Brian On Thu, Dec 2, 2010 at 7:32 PM, Dean Schulze dean_w_schu...@yahoo.comwrote: When you say Just use Dojo do you mean to drop Struts 2, or to just use Dojo in the JSPs that I create for Struts 2? --- On Thu, 12/2/10,

Re: S2 and Sitemesh basic configuration

2010-11-30 Thread Brian Thompson
Re: Question 1 - No, you can use other taglibs inside a decorator file. My user.jsp (decorator) has the following lines: %-- Include struts tag declaration --% %@ include file=/common/taglibs.jsp% titledecorator:title/ - s:text name=webapp.name//title (it also uses c:if in places. All you

Re: S2 and Sitemesh basic configuration

2010-11-30 Thread Brian Thompson
at 10:53 AM, Brian Thompson elephant...@gmail.com wrote: Re: Question 1 - No, you can use other taglibs inside a decorator file. My user.jsp (decorator) has the following lines: %-- Include struts tag declaration --% %@ include file=/common/taglibs.jsp% titledecorator:title/ - s:text

Re: AJAX file upload

2010-11-30 Thread Brian Thompson
I was assuming that he wanted his own custom look and feel for the upload button rather than just putting an unstyled HTML input type=file on the page. -Brian On Tue, Nov 30, 2010 at 7:57 PM, Tommy Pham tommy...@gmail.com wrote: -Original Message- From: Harsh C

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-26 Thread Brian Thompson
Just a guy who had a cool idea once ... the web (easily googled for details). Brian Sent via my Droid, Eka. On Nov 26, 2010 11:53 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: you've listed 5 people who are more well known than Tim Berners-Lee Who the hell is TimBL? Wait... I

Re: result type Jasper [Struts 2]

2010-11-15 Thread Brian Thompson
On Mon, Nov 15, 2010 at 7:08 AM, Dave Newton davelnew...@gmail.com wrote: On Mon, Nov 15, 2010 at 2:40 AM, @rju nagarjunabatt...@gmail.com wrote: Guys am also getting problem using jasper reports with struts 2.. please help me ASAP... same tutorial i too followed ... How can anybody

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Brian Thompson
Noscript causing trouble is common enough that my boss calls my configuration Crazyfox! -Brian On Wed, Oct 20, 2010 at 1:55 PM, Dave Newton davelnew...@gmail.com wrote: :) That's never happened to me. Honest. No, really. Dave

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 9:45 AM, Dave Newton davelnew...@gmail.com wrote: That's really difficult to read. Agreed. More whitespace would be nice, Martin. On Fri, Oct 15, 2010 at 10:38 AM, Martin Gainty wrote: a database schema represents the entire structure (tables and relationships of

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 10:22 AM, Dave Newton davelnew...@gmail.com wrote: I'm not sure what reasons there would be to have it make sense to store each entity in its own identically-structured DB. Ever had a client that wanted/required their data segregated from everybody else's (this is not

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 11:43 AM, Dave Newton davelnew...@gmail.com wrote: On Fri, Oct 15, 2010 at 12:39 PM, Brian Thompson elephant...@gmail.com wrote: Ever had a client that wanted/required their data segregated from everybody else's (this is not uncommon at all)? Ever wanted to Apparently

Re: lost URL parameters with s:param tag

2010-07-20 Thread Brian Thompson
We ran into the same problem with our Struts apps; we ended up using c:url from the JSTL core taglib instead. -Brian On Tue, Jul 20, 2010 at 10:58 AM, Emi Lu em...@encs.concordia.ca wrote: On 07/20/2010 11:48 AM, Emi Lu wrote: Good morning, It seems that s:param does not work well when

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Brian Thompson
Looks to me like the session is being closed in the scope of hibernateTemplate.get(). I don't see a transactionManager mentioned in the XML ... you could try adding something like this in the XML configuration file: bean id=transactionManager

Re: Authentication and Empty Classes

2010-07-11 Thread Brian Thompson
Couldn't you just declare BaseAction.java as the action's class? Also; it sounds like you're using a custom security solution; I'd suggest using Spring Security instead. Custom security code is likely to suffer from many of the bugs that Spring Security ran into years ago. -Brian On Sun, Jul

Re: Authentication and Empty Classes

2010-07-11 Thread Brian Thompson
classes.  I just don't like the idea that that's the only option. Brian Thompson wrote: Couldn't you just declare BaseAction.java as the action's class? Also; it sounds like you're using a custom security solution; I'd suggest using Spring Security instead.  Custom security code is likely

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread Brian Thompson
You could also adjust your eclipse.ini to give more memory to the JVM: -XX:PermSize=64M -XX:MaxPermSize=128M Add it to the --vmargs section of the file. -Brian - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-09 Thread Brian Thompson
http://stackoverflow.com/questions/473011/recurring-permgen-in-tomcat-6 -Brian On Fri, Jul 9, 2010 at 3:01 AM, abhishek jain abhishek.netj...@gmail.com wrote: On Fri, Jul 9, 2010 at 1:13 PM, Brian Thompson elephant...@gmail.comwrote: You could also adjust your eclipse.ini to give more memory

Re: hi please help me struts2

2010-07-09 Thread Brian Thompson
For client-side validation: Just write a javascript function and have it run for either the onclick event of the form submit button or the onsubmit event for the form itself. For Hibernate by property file, I'm not sure what you mean. I've always used either hibernate.cfg.xml files or

Re: Authorization Best Practices

2010-07-08 Thread Brian Thompson
On Thu, Jul 8, 2010 at 1:09 PM, Burton Rhodes burtonrho...@gmail.com wrote: I say we start another thread to discuss more about this ducussion. I think that would fit best in the struts-users-meta list ;) -Brian - To

Re: Authorization Best Practices

2010-07-07 Thread Brian Thompson
On Wed, Jul 7, 2010 at 8:31 AM, Dale Newfield d...@newfield.org wrote: Including a notice like this on a request for help sent to a public, archived mailing list is obnoxious.  JSYK, I've been seriously considering instituting a personal policy whereby I will never respond to such messages.

Re: Two applications, one in a sub folder

2010-06-25 Thread Brian Thompson
On Fri, Jun 25, 2010 at 1:19 AM, abhishek jain abhishek.netj...@gmail.com wrote: On Fri, Jun 18, 2010 at 3:08 PM, abhishek jain abhishek.netj...@gmail.comwrote: Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the

Re: Page composition strategy

2010-06-24 Thread Brian Thompson
Out of curiosity, has anyone on the list actually used both Tiles and Sitemesh? I'd really like to read a comparison of the two, not just Sitemesh is quite easy to use. vs. I don't think you can get much more simple than Tiles. All I really get from Googling is Sitemesh fanboys bashing Tiles as

Re: Page composition strategy

2010-06-22 Thread Brian Thompson
Allow me to throw in a vote for Sitemesh. I've never used Tiles, so I can't directly compare the two, but Sitemesh is quite easy to use and incredibly powerful for this sort of thing. You define it as a servlet filter in your project, and it adds decoration to the requests that come through.

Re: Jasper Report Problem in HTML format

2010-06-20 Thread Brian Thompson
Are the images saved as temp files and accessed as files through tomcat, or are they generated on access by something like /getImage.action? On Jun 20, 2010 6:12 AM, Amol Ghotankar ghotankaru...@gmail.com wrote: Dear List members, When I try to see the HTML page it shows path of images as

Re: Problem with iterator and images

2010-06-19 Thread Brian Thompson
img src=s:property value=%{idOfsUrl} / / Brian On Jun 19, 2010 5:01 AM, Fabio Perfetti perfabi...@gmail.com wrote: Hi all, before to start, i want say sorry for my bad english. I am developing an easy social network for a university project Every User has an image for the profile. I want to

Re: XML file reloading in JSP (Caching issue)

2010-05-24 Thread Brian Thompson
What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the

Re: Re : Re : Disappearing Labels

2010-05-21 Thread Brian Thompson
On Fri, May 21, 2010 at 11:23 AM, Martin Gainty mgai...@hotmail.com wrote: FYI:YOU SPELLED WIRED WRONG __ do not intercept or modify this transmission Are you sure about that? I thought 'weird' looked more appropriate than 'wired' in that

Re: Struts : Maintaining state of the Form

2010-05-12 Thread Brian Thompson
I wouldn't recommend that approach. When the user hits the back button, they'll jump out of the wizard entirely rather than going back to the previous page (which is what a web user will expect). Cue the reports of the wizard is broken! ;) -Brian On Wed, May 12, 2010 at 5:25 AM, Rahul

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Brian Thompson
It just refers to the top of the value stack. -Brian On Tue, May 11, 2010 at 9:17 AM, James Cook james.c...@wecomm.com wrote: Where does 'top' come from? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
On Wed, Apr 14, 2010 at 4:22 PM, Burton Rhodes burtonrho...@gmail.com wrote: I'm sure this answer is trivial, but I can't figure how to do a server-side forward to a Struts action from my welcome page (index.jsp).  Currently I have index.jsp redirecting the user, but I would like to eliminate

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
then Could you please explain little in brief that how web.xml know about struts default action? What should we put in web.xml for welcome file? Krunal Dhamelia On Wed, Apr 14, 2010 at 6:00 PM, Brian Thompson elephant...@gmail.comwrote: On Wed, Apr 14, 2010 at 4:22 PM, Burton Rhodes burtonrho

Re: Regular expressions - Email Validation

2010-03-31 Thread Brian Thompson
Have you tried a simpler regex to make sure that validation is wired up correctly? The one you're currently using will reject valid email addresses (e.g. local+p...@example.com), and it will probably allow invalid ones through (like localp...@example.a.a). See

Re: Regarding download for Hibernate!

2010-03-31 Thread Brian Thompson
Funny, I was going to suggest http://tinyurl.com/y8r4o25. -Brian On Wed, Mar 31, 2010 at 1:00 PM, sandeep kotha sandeep4u.ko...@gmail.com wrote: http://sourceforge.net/projects/hibernate/files/hibernate3/ On 31 March 2010 20:56, reuben swaroop singh reube...@rediffmail.comwrote: Hi, I

Re: Translation Properties

2010-03-26 Thread Brian Thompson
Check out the Resource Bundle Editor plugin [1] for Eclipse. It might help. -Brian [1] - http://sourceforge.net/projects/eclipse-rbe/ On Fri, Mar 26, 2010 at 12:15 PM, CRANFORD, CHRIS chris.cranf...@setech.com wrote: I was curious if anyone else has come across a wonderful tool to help

Re: [Struts 2.1.8] s:url : how to open in a new window ?

2010-03-23 Thread Brian Thompson
What if I'm using the app, and I want to open the link in a new tab instead? Or how about, I want to open it in the same tab and just use the back button once I'm done looking at the PDF? -Brian On Tue, Mar 23, 2010 at 8:02 AM, Celinio Fernandes cel...@yahoo.com wrote: Hi, I am using Struts

Re: [Struts 2.1.8] s:url : how to open in a new window ?

2010-03-23 Thread Brian Thompson
Target blank isn't necessarily available (e.g. writing the site in xhtml 1.1) -Brian On Tue, Mar 23, 2010 at 10:06 AM, Robert Graf-Waczenski r...@lsoft.com wrote: Hi! How about using target=_blank instead of onclick? Robert Gustavo Felisberto schrieb: Hello, This is a JS thing.

Re: Struts 1 log out issue

2010-03-19 Thread Brian Thompson
I'm not 100% sure, but ${property-name} might work. -Brian On Fri, Mar 19, 2010 at 3:43 AM, Arpan arpan.deb...@gmail.com wrote: Hi, I our project we need to put a dynamic log out link,which will come from a properties file. While logging out we want to invalidate the session also. I have

Re: Catching url for action not defined

2010-03-11 Thread Brian Thompson
Wildcard mapping should do the trick. See [1]. -Brian [1] - http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod On Thu, Mar 11, 2010 at 1:39 AM, Saeed Iqbal saee...@gmail.com wrote: Hi Guys How would I do http://localhost/some_name where

Re: how to eliminate time in s:textfield

2010-02-18 Thread Brian Thompson
Just add a getter to your train object that translates the startDate into the format you'd like. Use a DateFormat object. -Brian On Thu, Feb 18, 2010 at 5:07 PM, fireapple taizhang1...@gmail.com wrote: Dear all, I'm using s:textfield name=train.startDate cssClass=datepicker where

Re: Struts 2 - Global Validation

2010-02-04 Thread Brian Thompson
On Thu, Feb 4, 2010 at 6:10 AM, Arulmani V A arulman...@yahoo.com wrote: Hi, Apologies for having posted the same query 5 times - it was purely UNINTENTIONAL. I'm new to this list and when I posted my query for the first time, I got the following reply : Hi. This is the deliver program at

Re: dynamic i18n

2010-02-04 Thread Brian Thompson
What do you get when you try s:property value=%{getText(name)} / ? -Brian On Thu, Feb 4, 2010 at 10:09 AM, Peter Symoens peter.symo...@approach.bewrote: Sorry, my message was incorrect. s:property value=%{getText('%{name}')} / prints out the (non-i18nzed) property value. s:property

Re: Struts 2 - Global Validation

2010-02-03 Thread Brian Thompson
Could you quit spamming the list, please? On Wed, Feb 3, 2010 at 2:46 PM, Arulmani V A arulman...@yahoo.com wrote: Hi, How to do global validation in Struts 2 ? For example, in Struts 1, I can define all global regular expression validations in a file called validation-regexpr.xml such as

Re: struts2 and tables

2010-01-27 Thread Brian Thompson
Something like this should do the trick: display:column title=input .../ escapeXml=false/ -Brian On Wed, Jan 27, 2010 at 8:13 AM, Saeed Iqbal saee...@gmail.com wrote: For header this is an interesting situation i have not come across yet. I cannot say anything. On Wednesday, January 27,

Re: Chain Getting Original URI

2010-01-27 Thread Brian Thompson
The original Action that threw the exception ought to be included in the stack trace. That wouldn't easily lend itself to auto-parsing though. You might be able to pass the request URI to teh error-handler with something like this in struts.xml: result name=error type=chain

Re: Chain Getting Original URI

2010-01-27 Thread Brian Thompson
On Wed, Jan 27, 2010 at 9:25 AM, Dale Newfield d...@newfield.org wrote: P.S.: Patient: Doctor, doctor! It hurts when I do *this*. Doctor: Stop doing that. Hopefully *this* isn't something like walking ;)

Re: Tomcat 5.5 + Struts2 : Erreur lancement Application Web

2010-01-26 Thread Brian Thompson
Je pense que ces deux lignes regard suspect: Theme theme = param.displayTheme (user); themeActuel = theme.getTheme(); Si la première ligne renvoie null, alors la deuxième ligne jettera NPE (bien sûr!). Est quelque chose va mal dans param.displayTheme()? Vous avez

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
You might look into using the Preparable interface [1]. It's useful for these types of situations; just add the code to generate the list into a prepare() method on your action class instead of in execute(). Hope this helps, -Brian [1] -

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
setting to null value. Isn't it a big, can't we fix it. And in my company i fought with everybody to bring struts2 into project. And now i don't have any answer to this, untill any guys help me. Thanks RS Brian Thompson-5 wrote: You might look into using the Preparable interface [1

  1   2   >