RE: Form Validation !!!.

2004-08-04 Thread rahul.chaudhary
in the validation xml specify the page attribute (value should be equal to the page number) against the form property.Also set the page property on the input screen. -Original Message- From: RamKumar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 10:31 AM To: [EMAIL PROTECTED]

Form Validation !!!.

2004-08-04 Thread RamKumar
Hi, I am using struts validator to validate the form fields. I am using the same form bean in two pages. I am doing the validation for one field in the first page and i don't need to do the validation for the same field in the second page. ow to skip the validation for that field in my seco

RE: Form Bean in JSP

2004-08-04 Thread Kataria, Satish
You can use the form bean in jsp through the various struts tags. Struts puts the form bean in request scope automatically and thus all you have to do to use form bean is by declaring the form bean in tag E.g suppose you had myactionform as the form bean which had an attribute name(say it is str

Re: ActionServlet class loading problem

2004-08-04 Thread Erik Weber
Thanks a lot guys. I am trying the Tomcat classloader. So far so good! Erik Brad Balmer wrote: I used to have lots of issues with the JBoss classloader until I found out about how to turn it off and use the Tomcat one instead. Under the \jbossweb-tomcatXX.sar\META-INF is the jboss-service.xml. Lo

Taglibs generating lots of warning messages

2004-08-04 Thread Andy Schmidgall
Hello, In our Struts app, whenever a JSP uses taglibs, the following 4 messages are produced for each taglib referenced: --- ParserUtils: warning org.xml.sax.SAXParseException: missing system ID, using http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd ParserUtils: warning org.xml.sax.SAXPar

Re: sharing images across modules

2004-08-04 Thread Kishore Senji
In tag, module is valid only when an action attribute is set. On Wed, 4 Aug 2004 08:38:21 -0700, Michael Rush <[EMAIL PROTECTED]> wrote: > I'd like to use some common images across modules. I've found that I > can accomplish what I need by using: > >"/> > > Originally I was trying to accomp

Re: More brain flatulence

2004-08-04 Thread Erik Weber
You are right on. It turned out he had an older struts jar file lying around. The scary thing is, it was lying around inside another web app archive. I thought there would be a sandbox between the two -- but, my head hurts from thinking about it anymore. Problem solved. Thanks, Erik Niall Pembe

RE: On post ActionForm is null

2004-08-04 Thread Jim Barrows
> -Original Message- > From: lnader2000 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 10:36 AM > To: [EMAIL PROTECTED] > Subject: On post ActionForm is null > > > I have a simple form show below: > > class="com.company.web.forms.TranDefForm"/> Don't need the jsp:useBea

RE: On post ActionForm is null

2004-08-04 Thread Gupta, Sahil
your form bean names do not match TranDefForm and tranDefForm Easy solution: use html:form that will take care of the rest for you. Sahil -Original Message- From: lnader2000 [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 1:36 PM To: [EMAIL PROTECTED] Subject: On post ActionF

Re: Display Error Message

2004-08-04 Thread Kishore Senji
If you want to display the message from Exception.getMessage() then, Save the exception in to request request.setAttribute("exception", exception); and in the jsp display it with If you want to display a customized message for an exception, then you should define the mapping between exceptio

Re: Form Bean in JSP

2004-08-04 Thread lnader2000
//setting a property " /> //getting a property Of course you can use struts tags too like: etc. --- In [EMAIL PROTECTED], "Bussie, Andre D" <[EMAIL PROTECTED]> wrote: > Is it possible for a Form Bean to be used in a JSP if so how is it done? > Any resources or examples demonstrating this.

sharing images across modules

2004-08-04 Thread Michael Rush
I'd like to use some common images across modules. I've found that I can accomplish what I need by using: "/> Originally I was trying to accomplish this using the html:img tag, but the module attribute is ignored in this case: Does anyone know why the latter doesn't work? Is it possible

Re: Format Phone numbers using bean:write

2004-08-04 Thread Joe Germuska
At 6:15 PM -0300 8/3/04, Marcelo Epstein wrote: Its not working.. I don´t want to insert the code inside the getter method, because it is presentation not business. foneCom1 is a String. There's no straightforward way to do this because Java's MessageFormat classes are oriented towards replacing

On post ActionForm is null

2004-08-04 Thread lnader2000
I have a simple form show below: Save Delete This is how I have defined it in the struts-config file When I load the page it seems to work fine and call the appropriate setter and getter methods in my ActionForm class. But when I click on Save to submit the form,

Re: eclipse3.0 struts plugin

2004-08-04 Thread bryan
I've used them all , nitrox is the best but costs 399 On Wed, 4 Aug 2004 00:55:47 +0800, char <[EMAIL PROTECTED]> wrote: > thanks all . > thanks Erez and James > > but Which is the better between myEclipse and Struts Console > > and which can support jstl better? > > > > > - Original M

Re: Help on Validator MASK needed

2004-08-04 Thread Thomas Vogt
Thanks for the help that mask works, but there seeems to be a conversion problem with integer values, when i try to send the +1234 to an Integer Form Field ist gets nulled (without error), 1234 or -1234 work just fine, Double Fields accept all three. Sometimes I think my Machine wants to kick my

Re: escaping html in property files?

2004-08-04 Thread Kishore Senji
On Wed, 4 Aug 2004 08:36:38 -0700 (PDT), Woodchuck <[EMAIL PROTECTED]> wrote: > when i put html in my property files it gets translated after > processes it (ie. the html comes out literally). > > this is what i'm getting: > HelloWorld! > > but i want: > Hello > World! > > is there a way t

Struts - JUnit Testclass- WSAD

2004-08-04 Thread Jitender K Chukkavenkata
Hi, I have a struts application and a couple of JUnit testclasses for the same developed in WSAD Environment(Windows). The same need to be deployed in Unix box. I need an option of executing the remote JUnit Testcase class(deployed in Unix box) from WSAD and trace the results thru the JUni

Display Error Message

2004-08-04 Thread Zhou, Qin (Eric)
Hi Does anybody know how I can display an error message which we got from exception? We don't want to define an error key in resource property file. We don't consider different Locale, only English. Any suggestions? Eric Zhou -

Re: AW: struts and iText

2004-08-04 Thread Craig McClanahan
FileInputStream.available() is only guaranteed to tell you how many bytes are immediately available for reading without blocking -- probably one buffer worth. You need to copy *all* of the bytes to the output stream -- something like this (but doing it from memory so might not be correct): Fi

Re: ot: get the fud

2004-08-04 Thread Christopher Marsh-Bourdon
There are three kinds of lies: lies, damn lies, and statistics." - Benjamin Disraeli On 4/8/04 13:49, "Vic Cekvenich" <[EMAIL PROTECTED]> wrote: > http://www.microsoft.com/mscorp/facts/default.asp > > .V > > > - > To unsubscri

sharing images across modules

2004-08-04 Thread Michael Rush
I'd like to use some common images across modules. I've found that I can accomplish what I need by using: "/> Originally I was trying to accomplish this using the html:img tag, but the module attribute is ignored in this case: Does anyone know why the latter doesn't work? Is it possible

Re: Wildcard action mapping use of **

2004-08-04 Thread Ruth, Brice
Bill Siggelkow wrote: If you are unfamiliar with wildcard action mappings; they are pretty cool. I am writing some documentation on using them; however, I am not quite sure of a good use case for the ** feature (where a match included the "/"). If anyone can give me a practical scenario using t

escaping html in property files?

2004-08-04 Thread Woodchuck
when i put html in my property files it gets translated after processes it (ie. the html comes out literally). this is what i'm getting: HelloWorld! but i want: Hello World! is there a way to enable use of html code in property files? thanks in advance! _

RE: Form Bean in JSP

2004-08-04 Thread Jim Barrows
> -Original Message- > From: Bussie, Andre D [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 04, 2004 5:15 AM > To: [EMAIL PROTECTED] > Subject: Form Bean in JSP > > > Is it possible for a Form Bean to be used in a JSP if so how > is it done? > Any resources or examples demonstrati

Roller as Struts Module

2004-08-04 Thread e-denton Java Programmer
I only have a single context at my ISP, and I want to use Roller Weblogger (http://www.rollerweblogger.org/page/project). Would it be practical to make it a module? Any tips or comments appreciated. I haven't found many useful module examples on the Web. Thx. ---

Re: Please .dont

2004-08-04 Thread Kishore Senji
mapping.findForward returns a ForwardConfig and not ActionConfig. If you want /banner and not /banner.do, Use RequestUtils.getActionMappingName(action). On Tue, 3 Aug 2004 22:49:48 -0500, e-denton Java Programmer <[EMAIL PROTECTED]> wrote: > (Sorry, I posted this once already under the wrong subje

ot: get the fud

2004-08-04 Thread Vic Cekvenich
http://www.microsoft.com/mscorp/facts/default.asp .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Form Bean in JSP

2004-08-04 Thread Bussie, Andre D
Is it possible for a Form Bean to be used in a JSP if so how is it done? Any resources or examples demonstrating this. Thanks Andre' D. Bussie Sourcing Rotational Program MAC-MAR 532 Fellowship Rd Moorestown, NJ 08057 856.787.3273 856.952.7325 - Cell [EMAIL PROTECTED]

Re: Debugging jsp file in IDE?

2004-08-04 Thread Thorbjørn Ravn Andersen
[EMAIL PROTECTED] wrote: Hello friends, could anyone explain how I can debugg a jsp file from a project in IDE 3.0.5? You can debug JSP-files with Netbeans. It uses Tomcat as the web container. -- Thorbjoern Ravn Andersen "...plus...Tubular Bells!" --

Chinese Japanese post problem struts

2004-08-04 Thread Kumar, Ram S
Hi All, I have problems in updating the Chinese and Japanese characters using Struts 1.0.2. My Scenario is: I have a drop down list to select the language. When I select Chinese language, I populate some description in Chinese format in a text area.

RE: html: and fmt: tags

2004-08-04 Thread Paul McCulloch
A more elegant solution would be: mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 9:57 PM > To: Struts Users Mailing List > Subject: html: and fmt: tags > > > I'm using jstl tags whereever I can. I want to i18n my > buttons, and so > I tried this: > <%@ taglib uri="/WEB-IN

AW: struts and iText

2004-08-04 Thread Otto, Frank
Hi, I have written an action class to show the pdf, but the pdf is corrupt. Do I something wrong? ... FileInputStream fis = new FileInputStream(pdf_path); int anz = fis.available(); byte[] data = new byte[anz]; fis.read(data); ByteArrayOutputStream baos = new ByteArrayOutputStre