Dynamically adding an ActionMapping

2004-11-25 Thread Tony Li
Hi all - I haven't been able to locate much information about dynamically adding an ActionMapping. I would like to do this at application startup through my StartupListener (courtesy of Matt Raible's AppFuse). I'm really only interested in adding a few simple ForwardActions. Any ideas?

Token Processor Question

2004-11-25 Thread Richard
Hello Guys, If I have executed generateToken in my action do i have to call saveToken? Thanks Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Implementing using multiple text area using struts

2004-11-25 Thread John Williams
I am newbie in struts. Using struts I want to get the user input for phone numbers in 3-3-4 format. So there will be 3 text area, the 1st and 2nd text area accepting only 3 numbers and the 3rd text area accepting 4 numbers. I have implemented it as: html:text property=MyPhoneNo

Re: Tiles and file download

2004-11-25 Thread andy wix
Hi, I have resolved this now. The action code is: File f = new File(test.log); BufferedReader in = new BufferedReader(new FileReader(f)); String str; while ((str = in.readLine()) != null) { buf.append(\n + str); } in.close(); request.setAttribute(FILE, buf.toString()); and the jsp code (not

Re: Implementing using multiple text area using struts

2004-11-25 Thread Nishant
extend user actionform with validationform then write validations in validation.xml like formset form name=employeeForm field property=username depends=required,maxlength arg0 key=profile.username/ arg1 key=${var:maxlength} name=maxlength resource=false/ arg1

Re: [ot] Naming generated files

2004-11-25 Thread Radu Badita
I see no point in such design... That will be replicating the same data (the images) in two separate systems (your database and your file system) and keeping the two synchronized. Too much overhead for a simple problem. Why don't you just make your servlet simply output the images (read from

RE: Getting a regular expression from application.properties

2004-11-25 Thread Simon Matic Langford
yes, then the app gets: ^[0-9]\''{\''0,10\''}\''(,[0-9]\''{\''0,2\''}\'')?$ all the escaping does is replace ' with '', which makes it a little hard to stop it as the comparison is done on a character by character basis... -Original Message- From: news [mailto:[EMAIL PROTECTED] On

Re: Tiles and file download

2004-11-25 Thread Dakota Jack
If you are going to do this, you might as well generalize it to: public class FileToString { public synchronized static String convert(File input) throws FileNotFoundException { String output = ; String line = ; StringBuffer content = new StringBuffer();

Re: Token Processor Question

2004-11-25 Thread Richard
thanks On Thu, 25 Nov 2004 16:47:21 +0800, Richard [EMAIL PROTECTED] wrote: Hello Guys, If I have executed generateToken in my action do i have to call saveToken? Thanks Richard - To unsubscribe, e-mail: [EMAIL

Re: [ot] Naming generated files

2004-11-25 Thread Mark Lowe
Its okay i fixed the problem. I was being a dick with the .java.io.File api. The design means you can have the maintaince advantages of having product images and such like without a heavy difficult to cache query on the database. The hit of requesting blobs and such like will only happen during

RE: server shutdown

2004-11-25 Thread Paul McCulloch
It looks like you are getting the return code from cmd, rather than shutdown. Could it be that the process you spawn doesn't have it's environment correctly set up - maybe it can't see shutdown? I'd try 1) changing my call to exec to call shutdown, with a full path, directly rather than getting

Form submit vs url.openConnection

2004-11-25 Thread shin
Hi , We are developing a browser based software which will run in WAN environment, Currently we are using struts form to submit send the data from input view to the action class . If our action class updates or throws any error we have to forward the response to same input view. Is

Re: including external urls in tiles

2004-11-25 Thread Bill Siggelkow
You could use JSTL's c:import tag. -Bill Siggelkow Sarath PS wrote: hello all, is there any solution for including an external url in a tile. All links should be re-written so that the request come back to my server ? Any plug ins ? library is available for that ? Thanks in advance, Sarath

ActionServlet ConnectException

2004-11-25 Thread liooil
Hello world, Usually i don' really like when people post their exception thread. Sorry : my turn. Well, this exception is thrown when my struts (1.2.4) webapp is hot deployed on my jboss 3.2.2. When jboss is re- starting and cold deploying the same webapp, it works fine... I'm specially worried

Any good struts tutorials online?

2004-11-25 Thread Donie Kelly
Hi all I've been given a half finished struts project to develop further and I havn't used struts before. Is there any good resources where I can learn how to get up to speed quickly. Overviews are especially important to me as it help me to learn quicker. Is there any good books that lead me

RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-25 Thread Danko Desancic
I am just making sure that loginForm is there ant that its populated properly. Still the problem is with html:text html.password and html:submit? Did anyone had the same problem Tomcat 5.0.28, Struts 1.2.4 and JDK 1.4.2_05? Danko -Original Message- From: David G. Friedman

RE: Any good struts tutorials online?

2004-11-25 Thread andy wix
http://www.reumann.net/struts/main.do _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail:

Client side validation broken when using DynaValidatorActionForm.

2004-11-25 Thread Daffin, Miles (Company IT)
Hi All, Apologies if this one has already been covered (I searched the list). I am using struts 1.1 with one DynaValidatorActionForm for holding data from multiple jsp forms (wizard style reg form). The server side validation works fine but the generated javascript is broken. The name of the

re : ActionServlet ConnectException

2004-11-25 Thread liooil
solved... Obviously, it was a jboss config problem Nothing to do with struts forgive me for the stack trace ___[ Pub ] Envie de discuter gratuitement avec vos amis ? Téléchargez Yahoo! Messenger http://yahoo.ifrance.com

Re: org.apache.jasper.JasperException: Unable to compile class for JSP

2004-11-25 Thread Derek Broughton
On Thursday 25 November 2004 12:01, Danko Desancic wrote: The problem was conflict with some jars in CATALINA_HOME/common/lib Thanks for help And thank _you_ :-) I had a (apparently) completely unrelated jasper error and, sure enough, I had a number of old libraries in /common/lib. I

RE: Client side validation broken when using DynaValidatorActionForm.

2004-11-25 Thread David G. Friedman
Miles, Validation based on actions has that slash-in-the-name related problem. You can specify a name for the validation method using the html:javascript attribute method= Just be sure to change your html:form's onsubmit to invoke that new method name. For example: html:javascript

Re: Any good struts tutorials online?

2004-11-25 Thread Dan Cancro
I'm working on this doc. It's kinda like a tutorial. http://www.geocities.com/topdowndan/docs/webapp Dan --- Donie Kelly [EMAIL PROTECTED] wrote: Hi all I've been given a half finished struts project to develop further and I havn't used struts before. Is there any good resources

Re: Dynamically adding an ActionMapping

2004-11-25 Thread Craig McClanahan
You will not be able to do this in a ServletContextListener, because that gets executed before the Struts servlet has initialized the data structures representing the configuration information. However, if you write to the Struts PlugIn API, the init() method of this class is called after the

RE: server shutdown

2004-11-25 Thread David G. Friedman
Andy, I tried your command (with extra debugging) on Struts 1.2.4, Tomcat 5.0.28, Windows XP Home Edition. Debugging returned the same error code 0 but I detected the following messages which clearly explained the problem on my configuration: The operation completed successfully. A required

Re: re : ActionServlet ConnectException

2004-11-25 Thread Craig McClanahan
On Thu, 25 Nov 2004 16:43:47 GMT, liooil [EMAIL PROTECTED] wrote: solved... Obviously, it was a jboss config problem Nothing to do with struts forgive me for the stack trace We will ... as long as you forgive everyone else's stack traces too :-). Craig

struts to generate html email content

2004-11-25 Thread Nathan Coast
Hi, Is there any way to generate content that isn't written to the ServletResponse? I'd like to use jsp / struts to generate html emails. something like this: 1) user clicks 'generate email' button. 2) struts action sets up parameters and identifies recipients. 3) delegate to a jsp to create

Re: struts to generate html email content

2004-11-25 Thread Jason Lea
Nathan Coast wrote: Hi, Is there any way to generate content that isn't written to the ServletResponse? I'd like to use jsp / struts to generate html emails. something like this: 1) user clicks 'generate email' button. 2) struts action sets up parameters and identifies recipients. 3) delegate

Re: struts to generate html email content

2004-11-25 Thread Corey Scott
You might also find velocity templates useful. http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-velocity.html On Fri, 26 Nov 2004 13:59:59 +1300, Jason Lea [EMAIL PROTECTED] wrote: Nathan Coast wrote: Hi, Is there any way to generate content that isn't written to the

Sending Binary Files from Action

2004-11-25 Thread Richard
Hi Guys, I have created an expiring download link ( sent to users ) throiugh the use of tokens and actions. Now I have not the slightest idea how am I going to send the file to the user inside my actions. Can I use forwards over this? please help. Thanks Richard

Re: Sending Binary Files from Action

2004-11-25 Thread Niall Pemberton
Theres a new DownloadAction in Struts 1.2.6: http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html Niall - Original Message - From: Richard [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 26, 2004 5:18 AM Subject: Sending

Re: Sending Binary Files from Action

2004-11-25 Thread Richard
Hi Niall, Forgive but im a newbie. I dont know how I can use this. Definitely I will need to change my struts jar files. But do I extend this action or use it statically. What method do I use? Thanks Richard On Fri, 26 Nov 2004 05:32:09 -, Niall Pemberton [EMAIL PROTECTED] wrote: Theres a

JSP Code for DownloadAction

2004-11-25 Thread Dakota Jack
Anyone have an example of JSP code for DownloadAction? I am confused about it. Jack -- You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~