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 embedded

Re: Map param in 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 wrote: > Hi, > I would like to unsubscribe from the list because it flooded my email box. > Could anybody tell me how to unsubscribe? > > Thanks, > YK > > > > > F

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 wrote: > On Fri, Jan 13, 2012 at 11:54 AM, Bogomil Shopov > wrote: > > On 13 January 2012 17:48, Mauriz

Re: Struts 2 Webinar in Wednesday

2011-12-22 Thread Brian Thompson
wa...@gmail.com > >> >wrote: > >> > >> > Hi Bobo, > >> > > >> > >> You are more than welcome :) > >> > >> //Bogo > >> > >> > > >> > A great seminar > >> > > >> > Than

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 wrote: > 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 looking forward to meet

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 wrote: > First, I'd say this isn't r

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 suddenly

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 wrote: > sqtdqtqzstzatsarvqsqqNqYc@aRTqtxa1qq!qqAqqq1 > On Oct 18, 2011 3:44 AM, "Johannes Geppert" wrote: > > > Is there any Error Message in the JavaScript Console? > > > > Johannes > > > > - > > web: http://www.jgeppert.com

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 wrote: > Dear Experts, > > I have this action class to perform file downloading function, however, it > doesn't export

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 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 solution. > > I am u

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 wrote: > 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 > isn’t generally the

Re: To create new session without invalidating existing one

2011-09-28 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: 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 wrote: > Hello! > > I come to you today wit

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 might do the trick. Brian On Mon, Sep 5, 2011 at 7:02 AM, Aaron Brown wrote: > The problem is really an html problem. You cannot embed an image in a web > page, all you can do is embed a url reference to an image. T

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
I'm not familiar with the tag; does that auto-include the script defining the validateForm() function? If not, I'd suggest a missing

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 wrote: > Hi All, > > Can any one suggest, for ajax which framework is bet

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 wrote: > Wiki outer blog?! Ah auto-complete, you complete me. > > "I'll add something to the wiki or blog about it this weekend." > > Sheesh.

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Brian Thompson
On Tue, Jun 14, 2011 at 2:44 PM, webmeiker 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 would have to be

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 wrote: > On Tuesday, June 14, 2011, webmeiker wrote: >> Have somebody successfully integrated a Struts2 app with some (web)FTP >> editor (based in PHP) like ElFinder? >> >> I alwa

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: [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 wrote: > damnit, sorry, I hit reply, but didn't pay attention to where it was going > :( > > Sorry about that

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 wrote: > moron... > > On Fri, May 20, 2011 at 7:58 PM, Rafael Muneton > wrote: > > > > > > > > -- > >

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 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, Apr 13, 2011 at

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 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 user-ho

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 wrote: > Following changes? I didnt get what you meant. i dont see any code :S > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dr

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 wrote: > Hi All, > Im developing a Crud example using Struts 2 where im in the need to load > values for a dropdown box dyna

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 wrote: > On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik 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 reason. > > Any other information

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 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 same data into

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] - http://stackoverflow.com/questions/235729/whats-the-best-java-based-forum-sof

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 w

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 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 experien

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 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 > > > Br

Re: sending the report directly to the printer

2011-02-21 Thread Brian Thompson
gt; wrote: > > > >> > >> exactly i did > >> but the problem here is.. see my code > >> > >> var urlx="myaction.action"; > >> var x= window.open(urlx); > >> x.window.print(); > >> > >> here it i

Re: sending the report directly to the printer

2011-02-20 Thread Brian Thompson
gt; here 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

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 pr

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
On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton 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 restrict such fun

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 wrote: > Hello all, > > I also posted this message to the Tomcat mailing list, because I'm not su

Re: Restrict direct access to static content

2011-02-16 Thread Brian Thompson
On Wed, Feb 16, 2011 at 11:34 AM, Dave Newton 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 will redirect

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 : > > > > Good Morning Fellow Struts Geeks > > > > Anyone come across the term SAMRALA???

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 wrote: > We've been butt-posted?! > > :D > > On Wed, Jan 12, 2011 at 11:00 AM, JOSE L MARTINEZ-AVIAL >wrote: > > > Sorry about the repetition of mails. I forgot to close my BlackBerry, and > > put it into my pocke

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 wrote: > It's all html; if one of the S2 tags doesnt do what you want

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 : > > Pardon my ignorance, but w

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" wrote: > I kind of thought the ability to submit to specific action methods was > well-known, but perhaps you're correct, as this thread indicates (to

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, wrote:

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 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: > > > > > > > Besides the taglib prefix (which is a /strong/ hi

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 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 at 8:51 AM, Amit

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 wrote: > Addition to this, you can track response time with Firebug (Third party > plugin for Firefox) once it installed, open it's "Net" tab, a

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 somewhere

Re: EmailValidator

2010-12-13 Thread Brian Thompson
PM, Greg Akins wrote: > On Mon, Dec 13, 2010 at 1:50 PM, Brian Thompson > 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].[

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 11:

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 wrote: > > 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, Dave Newton wrote:

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 on the page. -Brian On Tue, Nov 30, 2010 at 7:57 PM, Tommy Pham wrote: > > -Original Message- > > From: Harsh C [mailto:hchau...@gmail.com] > > Sent: Tuesday, Nove

Re: S2 and Sitemesh basic configuration

2010-11-30 Thread Brian Thompson
are saying I can use struts tags and access the action etc > in my JSP decorator without needing the struts2-sitemesh-plugin? > (This would be great, but then what is the plugin for?) > > Thanks Dave, Brian for the clarification on the filter vs filter-mapping > order. > > > On

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"%> - (it also uses in places. All you need to do is declare the taglib with e.g. <%@ tagli

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" wrote: >> you've listed 5 people who are more well known than Tim Berners-Lee > Who the hell is TimBL? > Wait... I know is a member of genesi

Re: result type Jasper [Struts 2]

2010-11-15 Thread Brian Thompson
On Mon, Nov 15, 2010 at 7:08 AM, Dave Newton wrote: > On Mon, Nov 15, 2010 at 2:40 AM, @rju wrote: > > Guys am also getting problem using jasper reports with struts 2.. please > help > > me ASAP... same tutorial i too followed > > ... > > How can anybody help if we have no idea what problem you'

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 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 11:43 AM, Dave Newton wrote: > On Fri, Oct 15, 2010 at 12:39 PM, Brian Thompson > wrote: >>> Ever had a client that wanted/required their data segregated from >>> everybody else's (this is not uncommon at all)? Ever wanted to >> Appa

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 10:22 AM, Dave Newton 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 uncommon at all

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-15 Thread Brian Thompson
On Fri, Oct 15, 2010 at 9:45 AM, Dave Newton 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 >> those table

Re: lost URL parameters with 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 wrote: > On 07/20/2010 11:48 AM, Emi Lu wrote: >> >> Good morning, >> >> It seems that "s:param" does not work well when more than one s

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: n.b. I haven't tested the above con

Re: Authentication and Empty Classes

2010-07-11 Thread Brian Thompson
ring, I'm still trying to get > through the basics of struts2.  The book I'm reading uses empty classes.  I > just don't like the idea that that's the only option. > > Brian Thompson wrote: >> >> Couldn't you just declare "BaseAction.java" a

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: 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 annotati

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 wrote: > On Fri, Jul 9, 2010 at 1:13 PM, Brian Thompson wrote: > >> You could also adjust your eclipse.ini to give more memory to the JVM: >> &

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 a

Re: Authorization Best Practices

2010-07-08 Thread Brian Thompson
On Thu, Jul 8, 2010 at 1:09 PM, Burton Rhodes 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 unsubscribe, e-mail: user-un

Re: Authorization Best Practices

2010-07-07 Thread Brian Thompson
On Wed, Jul 7, 2010 at 8:31 AM, Dale Newfield 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. > > -Dale I think

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 wrote: > On Fri, Jun 18, 2010 at 3:08 PM, abhishek jain > wrote: > >> 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 website. I don't know will >> this work, I kn

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

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. The

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" wrote: Dear List members, When I try to see the HTML page it shows path of images as src="/images/px" But in we

Re: Problem with iterator and images

2010-06-19 Thread Brian Thompson
" /> Brian On Jun 19, 2010 5:01 AM, "Fabio Perfetti" 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 list all friends, and i want display Name, Surname and t

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 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 context. -Brian -

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 Mo

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 wrote: > Where does 'top' come from? > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
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 wrote: > >> On Wed, Apr 14, 2010 at 4:22 PM, Burton

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
On Wed, Apr 14, 2010 at 4:22 PM, Burton Rhodes 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 the roundtrip tha

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 wrote: > http://sourceforge.net/projects/hibernate/files/hibernate3/ > > On 31 March 2010 20:56, reuben swaroop singh wrote: > >> Hi, >> >> >> I wanna download and use Hibernate.Kind

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 http://tools.ietf.org/html/rfc2822#s

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 wrote: > > I was curious if anyone else has come across a wonderful tool to help > manage your applicationMess

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 wrote: > Hi! > > How about using > > target="_blank" > > instead of onclick? > > Robert > > Gustavo Felisberto schrieb: >> >> Hello, >> >> This is a JS t

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 wrote: > Hi, > I am using Struts 2.1.8. > In a

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 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 written a logou

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 wrote: > Hi Guys > > How would I do http://localhost/some_name > > where some_name is a

Re: how to eliminate time in

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 wrote: > > Dear all, I'm using > > > where startDate is a java.util.Date field of an object train. > > The output is

Re: dynamic i18n

2010-02-04 Thread Brian Thompson
What do you get when you try ? -Brian On Thu, Feb 4, 2010 at 10:09 AM, Peter Symoens wrote: > Sorry, my message was incorrect. > > prints out the (non-i18nzed) > property value. > > > prints out nothing. > > > > > > > On 04/02/2010 16:59, Lukasz Lenart wrote: > >> 2010/2/4 Peter Symoens: >>

Re: Struts 2 - Global Validation

2010-02-04 Thread Brian Thompson
On Thu, Feb 4, 2010 at 6:10 AM, Arulmani V A 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 bjtu.edu.cn.

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 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 : > > alpha > [

Re: Chain Getting Original URI

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

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: errorHandler

Re: struts2 and tables

2010-01-27 Thread Brian Thompson
Something like this should do the trick: -Brian On Wed, Jan 27, 2010 at 8:13 AM, Saeed Iqbal wrote: > For header this is an interesting situation i have not come across > yet. I cannot say anything. > > On Wednesday, January 27, 2010, Arpan wrote: > > Hi Saeed, > > > > Replacing that with ch

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
question why the list 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

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] - http://www.opensymphony.com/xwork/api/com/opensymphony/xw

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 me

  1   2   >