Re: regular expression

2004-07-16 Thread Xavier Noria
On Jul 16, 2004, at 7:21, [EMAIL PROTECTED] wrote: I want to validate an attribute, the rule is that the input should not start with 'Test', how to write the regular expression for this validation. Please help me guys. If you validate by code you can negate that it does start that way:

RE: [OT] Best practice for background service

2004-07-16 Thread Jan Behrens
Thanks to all for their answers, I think I will look into doing this with java.util.Timer TimerTask for now and keep Spring and Quartz in mind to be looked at later. I now that it usually takes quite a bit of time to get to terms with a new framework (for me that is, of course) and I just can't

RE: how to use controllerclasses with tiles?

2004-07-16 Thread Fahd Ahmed
ok i'll try to explain. below is the part of my definitions-config file where i declare the controller class definition name=header path=/common/header.jsp controllerClass =com.sam.tilescontroller.TestTileController putList name=globalNavigation item value=Home

Control over File Download dialog box..

2004-07-16 Thread ganesh gadi
Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of dialogue box...Now i require that feature. pls let me know the solution asap. I

Re: Control over File Download dialog box..

2004-07-16 Thread ron1
you could use a java applet *g* ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of dialogue box...Now i require that

Memory Problem

2004-07-16 Thread Shailender Jain
Hai, I have developed my application using Struts 1.1 and Tomcat server. I am facing a frequent problem of OutOfMemory Error. What i can do to resolve this? Is there any way by which i can find out which part of the code is giving this problem. Regards, Shailender Jain

how to get control over File Download Dialogue Box ...Very urgent please

2004-07-16 Thread ganesh gadi
Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of dialogue box...Now i require that feature. pls let me know the solution asap. I

How to Disable open button on File Download dialogue box....please urgent

2004-07-16 Thread ganesh gadi
Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of dialogue box...Now i require that feature. pls let me know the solution asap. I

Re: how to get control over File Download Dialogue Box ...Very urgent please

2004-07-16 Thread Emmanouil Batsis
Hi, ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. I dont think you will get answers by sending the same email with three different subjects within four minutes. Manos - To unsubscribe,

RE: How to Disable open button on File Download dialogue box. ...please urgent

2004-07-16 Thread mike . raath
Ganesh, why do you always ask your question 3 times? And your questions are always urgent? -Original Message- From: ganesh gadi [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 09:52 To: [EMAIL PROTECTED] Subject: How to Disable open button on File Download dialogue boxplease urgent Hi

Re: Memory Problem

2004-07-16 Thread Buland Altaf
Hi tehte, go and see teh log files.there is a log folder under tomcat root directory.I think that might help u to find teh problem. regards, --- Shailender Jain [EMAIL PROTECTED] wrote: Hai, I have developed my application using Struts 1.1 and Tomcat server. I am facing a frequent

Re: About datasource

2004-07-16 Thread Koon Yue Lam
Hi, after some thinking, I have another problem, ^^ If I am using an Action (which extent the Struts' Action class), I can get the Datasource by calling getDataSource() But now I want to write my own data assess object which shouldn't extent Action, I don't know what way I can get the datasource

RE: Memory Problem

2004-07-16 Thread B.S.Narayana
use the environment variable JAVA_OPTS = -Xms 256m -Xmx 256m ANT_OPTS = -Xms 256m -Xmx 256m 256 is the size of the memory regards Shiva -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 2:12 PM To: [EMAIL PROTECTED] Subject:

RE: About datasource

2004-07-16 Thread Marco Mistroni
Hello, How about retrieving it from JNDI? How about a plugIn (DAOFactory) that retrieves the DataSource via JNDI and then initializes each DAO with the DataSource? Regars marco -Original Message- From: Koon Yue Lam [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 10:18 To:

RE: Memory Problem

2004-07-16 Thread Jose Ramon Diaz
Hi. This is a very common problem, I think. And I?m quite sure Struts is not the problem. Probably, the best option is to use a profiler. We use JProbe and it was very useful for us when our application had the same problems. Regards -Mensaje original- De: Shailender Jain

RE: How to Disable open button on File Download dialogue box. ...please urgent

2004-07-16 Thread McCormack, Chris
Maybe a change of career or invest some time reading up the technologies that appear on your CV ? Just a thought -Original Message- From: ganesh gadi [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 09:52 To: [EMAIL PROTECTED] Subject: How to Disable open button on File Download

Re: Memory Problem

2004-07-16 Thread Bryan Hunt
This is more for the lists benefit than yours I have found the (CPL licensed) eclipse profiling tool to be absolutely excellent. http://eclipsecolorer.sourceforge.net/index_profiler.html Also as found using google.

Best practice request - dynamic link to redraw page

2004-07-16 Thread Jon Barber
Dear All, Trawled through the archive with no luck, but then I couldn't work out the best search terms for this question, so... I'm writing a shopping basket app with the usual requirements, and using tiles which has made things a lot less painful. However, I have this one problem that I

Re: Best practice request - dynamic link to redraw page

2004-07-16 Thread Buland Altaf
Dear, First u need to set the hyperlink of the action(in which u have implemented delete method logic) on the primary key basis through which u will delete the record and create an action forard in struts config file(action of the class in which u have implementated the logic to diaplay records

Help Require !!!!!!!!!!!

2004-07-16 Thread Buland Altaf
Hi Theres, I am stucking on some issues and those are:- ___ Problem 1 __ 1. I am facing later mentioned problem of master-detail from on session time out.I am using DynaActionForms with array properties as form-bean property. form-property name=vefiryOrMakeBrokerDetail

RE: Best practice request - dynamic link to redraw page

2004-07-16 Thread puneet . a
This is not a potential hazard because typically in all shopping cart applications cart items are stored in HttpSession and no other user can change the sesion of some user ( this security is provided by Java Servlet API) Regards, Puneet Agarwal Tata Consultancy Services Mailto: [EMAIL

Re: How to Disable open button on File Download dialogue box....please urgent

2004-07-16 Thread Andrew Hill
Try here: http://www.catb.org/~esr/faqs/smart-questions.html ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of

simple Question

2004-07-16 Thread Alvin Antony
hi friends, how can i prevent the user from refreshing the page and repeating the save process a second time?. Is the Transaction token is good for checking this? thanks a lot, Alvin Alvin Antony Software Engineer

RE: About datasource

2004-07-16 Thread Geeta Ramani
Hi: I think this is the sort of thing you may be looking for: Context ctx = new InitialContext(); org.apache.commons.dbcp.BasicDataSource ds = (org.apache.commons.dbcp.BasicDataSource)ctx.lookup(java:comp/env/jdbc/yourDB)); Regards, Geeta -Original Message-

RE: simple Question

2004-07-16 Thread Paul McCulloch
I use a two pronged approach: 1) After a save do a redirecting forward. This means that refresh will not resubmit the save process. 2) Use tokens so that if somehow the user manages to resubmit the save process you can intercept this. Paul -Original Message- From: Alvin Antony

RE: simple Question

2004-07-16 Thread Geeta Ramani
Hi Alvin: This question has appeared a few times, so you may benefit from searching the archives. Short answer(s): either use tokens (like you suggested) or use a redirect instead of a forward. Regards, Geeta -Original Message- From: Alvin Antony [mailto:[EMAIL PROTECTED] Sent:

RE: How to Disable open button on File Download dialogue box....please urgent

2004-07-16 Thread Geeta Ramani
Ganesh: Try something like this: response.setHeader(Content-Disposition, inline;filename=myfilename.xyz); I believe if the extension (xyz) is unknown then a file save as dialog will always occur. Also, and I mean this in the kindliest way, maybe you should be a bit more careful when you write

Re: Best practice request - dynamic link to redraw page

2004-07-16 Thread Michael McGrady
At 03:52 AM 7/16/2004, you wrote: On every page of the basket the contents of the basket are shown in a panel at the bottom of the page, and against each product is a 'delete' hyperlink. When the user clicks on this link the product should be removed and the page refreshed to show the modified

Tiles with definition

2004-07-16 Thread yakup aksu
Hi, i m new to tiles and J2EE and i got trouble using Definitions in tiles. I changed everything concerning component to tiles as described in the Tiles tutorial. Should one's override the /WEB-INF/tiles-defs.xm /WEB-INF/Mytiles-defs.xm ? Anyway i tried both solution and nothing to do, i got

RE: Tiles with definition

2004-07-16 Thread Pingili, Madhupal
Have you updated struts-config.xml with the plugin like this: plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in Just curious, Reddy Pingili -Original Message- From: yakup aksu [SMTP:[EMAIL

RE: Tiles with definition

2004-07-16 Thread Fahd Ahmed
I got this error when my xml syntax was not correct in my definitions-config file. Check your xmls. I dont think its a struts installation problem. -Fahd -Original Message- From: yakup aksu [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 6:39 PM To: [EMAIL PROTECTED] Subject: Tiles

RE: how to use controllerclasses with tiles?

2004-07-16 Thread Fahd Ahmed
That doesnt work either. The problem comes even if I take out the following lines from header.jsp tiles:importAttribute name=title scope=page / and jsp:scriptlet System.out.println(ident = + request.getParameter(title)); /jsp:scriptlet After eliminating the abovel ines

RE: Tiles with definition

2004-07-16 Thread yakup aksu
Yes, i did. Which jar shall i add to my app/lib i got theses jars: - commons*. - jakarta-oro -servlet -struts Did i miss any jar ? (Additionnaly i added jboss-j2ee but it doesn't change anything Pingili, Madhupal [EMAIL PROTECTED] wrote: Have you updated struts-config.xml with the

RE: Help Require !!!!!!!!!!!

2004-07-16 Thread Jan Behrens
Buland, you might have to rewrite your mail to get an answer. Subjects like Help Require !!! usually ensure that no one ever bothers reading your post. Please keep in mind that everybody on this list answers voluntarily in his/her spare time. Please do not take offence and think of this mail

RE: how to use controllerclasses with tiles?

2004-07-16 Thread Pingili, Madhupal
Fahd, I am not sure about class definition class TestTileController extends TilesAction implements Controller . I guess this has to be public, then only org.apache.struts.tiles.ComponentDefinition can access com.usersmarts.sam.tilescontroller.TestTileController class. Just check your class

how to prepend an alias to URL?

2004-07-16 Thread Sant, Jessica
I developed my struts app on BEA where I had a URL like this: http://host.com:7001/myApp/index.do In our production environment, we're using an Apache front end, so the BEA stuff has been aliased to something like this: http://host.com/BEA/myApp/index.do Going to that first page works fine, but

Tiles problem when uploading war .... was [Re: Extending Request Processor]

2004-07-16 Thread Lucas Gonzalez Pearson
Hi, I am still trying to find the root of this problem but I don´t seem to be able to do it. Has anyone experienced this problem before? copying a struts .war file to jboss´ deploy directory and then getting this error: javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor not

RE: interface prototyping

2004-07-16 Thread Jim Barrows
-Original Message- From: Xavier Noria [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 8:56 AM To: Struts Users Mailing List Subject: interface prototyping What do you guys use to prototype interfaces? Is there some visual way to write dumb pages with forms that let

RE:[OT] interface prototyping

2004-07-16 Thread Josh Holtzman
Microsoft Visio does a fine job for our organization. It has a set of drag and drop GUI components to assist with prototyping. Also it has tools for UML, flow charts, and site maps... all sorts of goodies. Josh Holtzman AMERICAN DATA COMPANY Developing and Supporting your Online

RE: Tiles with definition

2004-07-16 Thread yakup aksu
i fixed the trouble. Actually, you have a lot of thing to do that i had missed. Instantiate the right ActionXXXServlet and the right DefinitionFactory with parameters. There is a wab.xml file in which it is explained if you download tutorial with src at Cedric DUMOULIN web site.

RE: interface prototyping

2004-07-16 Thread Denis Peyrusaubes
I think Websphere Studio Application Developper (WSAD V5) does it... I did not try it... -Message d'origine- De : Jim Barrows [mailto:[EMAIL PROTECTED] Envoyé : vendredi 16 juillet 2004 17:58 À : Struts Users Mailing List Objet : RE: interface prototyping -Original Message-

Re: About datasource

2004-07-16 Thread Craig McClanahan
Geeta Ramani wrote: Hi: I think this is the sort of thing you may be looking for: Context ctx = new InitialContext(); org.apache.commons.dbcp.BasicDataSource ds = (org.apache.commons.dbcp.BasicDataSource)ctx.lookup(java:comp/env/jdbc/yourDB)); That's definitely the sort of code

Re: How to Disable open button on File Download dialogue box. ...please urgent

2004-07-16 Thread Craig McClanahan
McCormack, Chris wrote: Maybe a change of career or invest some time reading up the technologies that appear on your CV ? Just a thought C'mon guys ... not everyone in the world is a native English speaker. For those that aren't, you might have noticed that the word urgent triggers

Re: How to Disable open button on File Download dialogue box....please urgent

2004-07-16 Thread Bryan Hunt
+1 Andrew Hill wrote: Try here: http://www.catb.org/~esr/faqs/smart-questions.html ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable open button on File Download dialog box.i want control on it. Pls don't say no solution.Bcox i

Re: how to prepend an alias to URL?

2004-07-16 Thread Craig McClanahan
Sant, Jessica wrote: I developed my struts app on BEA where I had a URL like this: http://host.com:7001/myApp/index.do In our production environment, we're using an Apache front end, so the BEA stuff has been aliased to something like this: http://host.com/BEA/myApp/index.do Going to that first

RE: calling request.getInputStream() within Action

2004-07-16 Thread Robert Shields
Hi Craig Filter, hmm. Thanks, I'll look into that :) Rob -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Fri 16/07/2004 00:34 To: Struts Users Mailing List Cc: Subject: Re: calling request.getInputStream()

RE: About datasource

2004-07-16 Thread Geeta Ramani
Sure Craig, I guess it's a good idea to look beyond the weekend..;) Thanks for the advice! Geeta -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 12:16 PM To: Struts Users Mailing List Subject: Re: About datasource Geeta Ramani

Xtags and rtexprvalue

2004-07-16 Thread Eric Dahnke
Hello, We're using xtags and need the ability pull in different xml documents based on locale. The tld says that the uri attribute accepts rtexprvalue. % String isoLanguage = request.getLocale().getLanguage();% xtags:parse uri=/siteCopySource/%=isoLanguage%/footerCopyright.xml/ The above jsp

RE: how to prepend an alias to URL?

2004-07-16 Thread Sant, Jessica
Thanks for your feedback Craig, I promise I won't sue the forwardPattern, you're probably right about there not being any money in it ;). Thanks for your reply -- it got me to the correct solution. So here's how I fixed it for the archives: Basically how our apache-BEA bridge worked before was

RE: Xtags and rtexprvalue

2004-07-16 Thread Jim Barrows
-Original Message- From: Eric Dahnke [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 11:13 AM To: [EMAIL PROTECTED] Subject: Xtags and rtexprvalue Hello, We're using xtags and need the ability pull in different xml documents based on locale. The tld says that the

RE: How to read display-name from web.xml?

2004-07-16 Thread Ivan Vasquez
Thanks Craig Jason, Yes, the string in display-name can be queried via this.getServlet().getServletContext().getServletContextName() from any Struts Action. Thanks very much. Ivan. -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 5:09

Intermediate loading page

2004-07-16 Thread Rizwan Merchant
I am working on a web application using the Struts framework. Using a form on a jsp page, I generate a report which is displayed in pdf on a new screen. The report is generated through an Action class method. I would like to display a "Please wait" screen while the report is being

Intermediate loading page

2004-07-16 Thread Rizwan Merchant
I am working on a web application using the Struts framework. Using a form on a jsp page, I generate a report which is displayed in pdf on a new screen. The report is generated through an Action class method. I would like to display a "Please wait" screen while the report is being

Re: Tiles problem when uploading war .... was [Re: Extending Request Processor]

2004-07-16 Thread Brett Connor
I'd be tempted to ignore the 'no errors after restart' as a red herring as a first approach - I've seen these kinds of things from JBoss before, it does seem in some instances to use different code for startup and for hot deploy. In my experience the one that reported the errors was indeed

Re: Intermediate loading page

2004-07-16 Thread Craig McClanahan
Rizwan Merchant wrote: I am working on a web application using the Struts framework. Using a form on a jsp page, I generate a report which is displayed in pdf on a new screen. The report is generated through an Action class method. I would like to display a Please wait screen while the

RE: Intermediate loading page

2004-07-16 Thread Rizwan Merchant
Hi Craig, Thanks for the reply. I came across this solution, but does this not mean that the user will only be able to generate one report at a time (since we are storing the flag in the user's session)? If the user starts generating a second report which is much smaller than the first then

RE: Intermediate loading page

2004-07-16 Thread Rizwan Merchant
Hi Craig, Thanks for the reply. I came across this solution, but does this not mean that the user will only be able to generate one report at a time (since we are storing the flag in the user's session)? If the user starts generating a second report which is much smaller than the first then

RE: Intermediate loading page

2004-07-16 Thread Jim Barrows
-Original Message- From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 4:06 PM To: 'Struts Users Mailing List' Subject: RE: Intermediate loading page Hi Craig, Thanks for the reply. I came across this solution, but does this not mean that the

Re: Intermediate loading page

2004-07-16 Thread Craig McClanahan
Rizwan Merchant wrote: Hi Craig, Thanks for the reply. I came across this solution, but does this not mean that the user will only be able to generate one report at a time (since we are storing the flag in the user's session)? If the user starts generating a second report which is much smaller

Re: About datasource

2004-07-16 Thread Koon Yue Lam
^^ thanks so much ! I am going to have a try and let see what will happen (maybe somemore question, ^^) Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: NEWBIE: how to submit a named html:form via javascript

2004-07-16 Thread Sunil Sahu
Title: RE: NEWBIE: how to submit a named html:form via javascript Adam, Name parameter in form tag is optional. If you want to submit your page then u can do it by supplying onclick event for default form. action path=/help name=helpActionForm scope=request

RE: Re:nested:test problem Please Help me.....

2004-07-16 Thread Sunil Sahu
Title: RE: Re:nested:test problem Please Help me. Hi srinivas, What is the exact problem u r facing. -Original Message- From: Ajay Patil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 30, 2004 3:14 PM To: Srinivas Rao; [EMAIL PROTECTED] Subject: Re: Re:nested:test problem

RE: javax.servlet.ServletException: Cannot find bean dblist in sc ope request

2004-07-16 Thread Sunil Sahu
Title: RE: javax.servlet.ServletException: Cannot find bean dblist in scope request Hi patrick, What is the package name for your bean and dao. Please have a fresh look at package name u have specified for bean and dao. U are accessing the page thru http://localhost:port/list.do. Am i

RE: RE [OT]: onsubmit form ERROR

2004-07-16 Thread Sunil Sahu
Title: RE: RE [OT]: onsubmit form ERROR Your code is right there may besome problem with your browser. -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 15, 2004 1:38 AM To: 'Struts Users Mailing List' Subject: RE [OT]: onsubmit form ERROR

RE: How to append select option to html:link

2004-07-16 Thread Sunil Sahu
Title: RE: How to append select option to html:link Hi cdroderick, I think this is piece of code which will fulfill ur requirement.. script language='_javascript_' function testLink(actionName) { Var selectValue

RE: html:submit button

2004-07-16 Thread Sunil Sahu
Title: RE: html:submit button U can user 'onclick' event in html:button and simply call a _javascript_ function in which u have to pass the one parameter which would be exactly the 'value' u want to pass. -Original Message- From: Denis Avdic [mailto:[EMAIL PROTECTED]] Sent:

RE: RE [OT]: onsubmit form ERROR

2004-07-16 Thread Buland Altaf
Hi there, try this one:- select name=application_monitor_id onfiltered=document.MonitorForm.submit() Hoep it will work. Regards, Buland --- Sunil Sahu [EMAIL PROTECTED] wrote: Your code is right there may besome problem with your browser. -Original Message- From: Barnett,

RE: javax.servlet.ServletException: Cannot find bean dblist in sc ope request

2004-07-16 Thread Sunil Sahu
Title: RE: javax.servlet.ServletException: Cannot find bean dblist in sc ope request Yes, buland is right. -Original Message- From: Buland Altaf [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 17, 2004 10:58 AM To: Struts Users Mailing List Subject: RE:

RE: NEWBIE: how to submit a named html:form via javascript

2004-07-16 Thread Buland Altaf
Hi There, Youi don't even need to give _javascript. As when your jsp comples, it replaces your form tag attibute name with the value u provided under action attribute name. So if your acton tag is like this:- action path=/help name=helpActionForm scope=request

RE: Re:nested:test problem Please Help me.....

2004-07-16 Thread Srinivas Rao
Hi Sunil, Thank you for your interest and My problem was solved.Some of the friends in the list have sent the solution to me... My problem is ... I am display the number of files ie.suppose 100 files ...100 files to poplate the popup windows.Here i am using the nested:text So the problem is