how can I submit an array object in a form using struts?

2004-03-11 Thread Mu Mike
I now need to submit an array object to an action, how can I achieve this using struts? you know, for a primary type value you just do like this html:form html:text property=name value=Mike/ html:submit property=submitButto value=submit/ /html:form or maybe you can submit values to a bean

Re: Reporting + Struts

2004-03-11 Thread Mohamed . Abdulkhaliq
Hi, I am working in Actuate the Reporting tool and in J2EE also. To answer your first question we are using the struts framework for the reports also but we are not following all the rules. It depends your requirement. Mohamed Abdul Khaliq.M IT Specialist SDC2 - Chennai Ph 8272628 Ext 8098

AW: Reporting + Struts

2004-03-11 Thread Andreas Solarik
Hi Mohamed! Damn, that was a cryptic post. Now you've gone and sparked my curiosity: what rules didn't you follow while snipworking in Actuate the Reporting tool and in J2EE/snip? Regards, Andreas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet:

Re: Cannot Create Iterator

2004-03-11 Thread Janarthan Sathiamurthy
Here is the solution - HashMap hMap = (HashMap) request.getSession().setAttribute(alpha,alpha); logic:iterate id=map collection=%= hMap % Regards, Janarthan S Craig Tataryn [EMAIL PROTECTED] wrote: Try this: When you iterate a map, the elements are of type Map.Entry

Re: how can I submit an array object in a form using struts?

2004-03-11 Thread Niall Pemberton
Take a look at the indexed properties/tags How To http://jakarta.apache.org/struts/faqs/indexedprops.html Niall - Original Message - From: Mu Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 9:15 AM Subject: how can I submit an array object in a form using

Changing position of nested beans

2004-03-11 Thread Mark Lowe
I was wondering if anyone has found any slick, no javascript dependent solution to the following situation. My question in short is, is there a way of having an indexed dispatch action, or have i been on the crack again? I have a form of nested beans which are ordered according to a position

Re: AW: Reporting + Struts

2004-03-11 Thread Mohamed . Abdulkhaliq
Hi, We have Servlets, Action class, Business class and JSPs (call the reports). If the call to the Report does require any validation or business then it will be routed by default. (Controller-Action-Business-Reports) If not then we will submit a direct request to report Server (Jsp-Actuate

RE: Changing position of nested beans

2004-03-11 Thread VAN BROECK Jimmy
Why don't you use a hidden field with the index number in it. So you can use that information in your action. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: donderdag 11 maart 2004 10:31 To: Struts Users Mailing List Subject: Changing position of nested beans I was

Re: a security framework!

2004-03-11 Thread Niall Pemberton
I would start by looking at Tiles - you can associate roles using tiles. If you are using XML configuration, you can associate a role with a definition definition name=my.tile.definition path= role=myRole /definition Also the tiles tags tiles:insert page=.. role=...

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
Can you elaborate? I'd have several indexed properties in my form, how would i know which to extract? On 11 Mar 2004, at 10:43, VAN BROECK Jimmy wrote: Why don't you use a hidden field with the index number in it. So you can use that information in your action. -Original Message-

help about struts

2004-03-11 Thread EROL TEZCAN
Hi , I want to work with struts. But i dont know where will I start first? What I need for working with struts? Where should I start first? Can I work struts on Resin , or only Tomcat? Which files needed to work struts.? Please help me ? Erol Tezcan -

RE: help about struts

2004-03-11 Thread Leticia Golubov
This is where I started: Read Struts In Action (Published by Manning) book. http://www.manning.com/husted/index.html Resources: http://jakarta.apache.org/struts/ http://jakarta.apache.org/index.html -Original Message- From: EROL TEZCAN [mailto:[EMAIL PROTECTED] Sent: 11 March 2004

AW: help about struts

2004-03-11 Thread Andreas Solarik
Hi Erol, I suppose you have already visited http://jakarta.apache.org/struts/learning.html, so I'll tell you how I started. First I installed tomcat, then I deployed the example application (by putting the .war file in the webapps directory of tomcat). After clicking around a little I started to

Re: How to set the selected value in an select rendered by optionsCollection

2004-03-11 Thread Frank Schaare
Hi Hubert, This would only be true if the action that was called specified that form in its mapping. If this is a preprocessing action (that's being called to provide an HTML form with data to show), and there's no name attribute to tie a form to it, Struts will not create/populate a form

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-11 Thread Niall Pemberton
You say No errors are appearing in either the catalina.out or localhost log file - I don't think validator logs anything to those places and saying that makes me think what are you expecting to happen when validation fails. The normal course of events when validation fails is struts saves an

Re: AW: help about struts

2004-03-11 Thread EROL TEZCAN
Hi Andreas, I looked this site and others but didnt analyze them detailed. Can I work on Resin? First you installed tomcat. Secondly you put .war file in the webapps directory of tomcat. (which war file?) If you have a free time, please tell me setup step by step Thanks. Erol

Q: How to submit form in pop-up window and forward parent results page?

2004-03-11 Thread bOOyah
Hi all. (Caveat: this might actually turn out to be a Javascript question): I would appreciate any help or even alternatives to what I'm trying to achieve below:- Here's a rough sequence of what I'm trying to achieve... (1) My app has a page displaying an item link. (2) When the user clicks

AW: AW: help about struts

2004-03-11 Thread Andreas Solarik
Erol, I've never actually used resin - so I can't help you with that one. .war files (in the perfect world) contain all code needed to deploy a web application on an application server like tomcat. You can do this on tomcat by copying the .war file into tomcats webapps directory and restarting

RE: How to submit form in pop-up window and forward parent results page?

2004-03-11 Thread Anirudh Jayanth
The javascript for the submit in the popup window could be something like this opener.parent.document.forms[0].action=Action.do; opener.parent.document.forms[0].submit(); Anirudh Jayanth SysArris Software 120A, Elephant Rock Road, 3rd Block, Jayanagar, Bangalore - 560011 Tel: 6655165 / 052 [

Struts-Validation and Property file

2004-03-11 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator in my application. I have defined a properties file that has all the error messages for my application. I have mapped this file in my struts-config.xml file. I have created a new rule specific for my application. I have mapped this in my validation-rules.xml.

Re: Changing position of nested beans

2004-03-11 Thread Niall Pemberton
Mark, Seems to me you have already worked out the solution, except why do you need a lookup dispatch action - rather than a roll your own - you have two methods right - Move Up and Move Down? Your jsp will populate a (foo?) List with either Move Up or Move Down (depending on the button pressed)

Re: Struts-Validation and Property file

2004-03-11 Thread Niall Pemberton
So in your validation-rules.xml you have something like... validator name=myValidatorRule classname=myPackage.MyValidator method=validateMyRule methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

problems with html:base/

2004-03-11 Thread Lukas Latz
Hi List! I'm trying to get started with struts (1.1) step by step. I had a working frameset made from *.JSPs in Tomcat 3.23 (The JSPs don't actually do anything at this stage, they're like static html). Then I inserted the html:base/ tag in one of the JSPs, together with the %@ taglib

rePost: How to set the selected value in an select rendered by optionsCollection

2004-03-11 Thread Frank Schaare
Hi all, i´m reposting my problem trying to be a little bit more specific. This problem is very important for me, though i made another 'book like' example to show where i am. There are three beans playing in my theatre: 1. the CommonValuesBean which stores frequently asked data for my JSP

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
The only reason why dispatch action appeals is that i can map the form to one action and have several buttons within a form without needing to change to form action with javascript or anything grotty like that. I'm not especially keen dispatch actions . Just this business of using links and

html:link with javascript variable

2004-03-11 Thread stu
Hi everyone I am having trouble with a jsp when using a javascript variable in a 'html:link page=' tag. The variable does not seem expand to its value. When my jsp is compiled, the code snippet below bean:define id=procBranch type=java.lang.String property=mendstatbrCde name=APSB/

Re: rePost: How to set the selected value in an select rendered by optionsCollection

2004-03-11 Thread Niall Pemberton
Its the name/property specified on the html:select tag that causes OptionsCollection to set selected - in your case the select tag needs to look at he country property of the customer bean - if optionsCollection finds a value that matches that, it will set selected. html:select name=customer

Re: problems with html:base/

2004-03-11 Thread Oswald Campesato
Hello, Lukas: Here's a simple script that can be helpful in these situations: +++ for jar in `ls *jar` do echo checking $jar... jar tvf $jar | grep org.apache.struts.util.PropertyMessageResourcesFactory done +++

RE: can anyone help me address this issue

2004-03-11 Thread Mu Mike
I really need to get some idea about this issue, any suggestions? ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: can anyone help me address this issue Date: Thu, 11 Mar 2004 05:12:16 + I m using javascript

Re: Changing position of nested beans

2004-03-11 Thread Niall Pemberton
You know before I read you messages, I would have understood crack programmer as a compliment - now I'm thinking it could be a support group for those of us who spend too much time on lists like this :-). - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing

Re: can anyone help me address this issue

2004-03-11 Thread Niall Pemberton
Its not a struts issue - its a dhtml/javascript issue - maybe you should ask the question on a dhtml/javascript list. Niall - Original Message - From: Mu Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:16 PM Subject: RE: can anyone help me address this

RE: can anyone help me address this issue

2004-03-11 Thread McCormack, Chris
use onResize on the html element that is clicked to report its new value to a form variable. use an onChange for the form to auto submit itself. If you need to hide the submission of the form use an IFrame. messy eugh, javascript is the pits. Chris -Original Message- From: Mu Mike

Re: html:link with javascript variable

2004-03-11 Thread stu
On Thu, 11 Mar 2004 12:10:21 - Niall Pemberton [EMAIL PROTECTED] wrote: Try I think you mean jsp scriptlet (rather than javascript) - I'm not good on it, I'm a java-in-general newbie, so half the time I don't know what I mean :) but how about doing this (you can do without the

Re: problems with html:base/

2004-03-11 Thread Lukas Latz
Hello, Lukas: Here's a simple script that can be helpful in these situations: +++ for jar in `ls *jar` do echo checking $jar... jar tvf $jar | grep org.apache.struts.util.PropertyMessageResourcesFactory done

Problems with custom validation

2004-03-11 Thread Diego
Hi! I've created my own pluggable validator but it's not working. These are the steps I've followed: First: I added this to validator-rules.xml validator name=nif classname=com.pruebas.MTValidations method=validateNif methodParams=java.lang.Object,

Forget it (Problems with custom validation)

2004-03-11 Thread Diego
Sorry people, I was investigating that problem for no less than 2 hours and one minute after I sent the message I saw that I wasn't adding errors (but shoulnd't the validator deny the validation if the method is returning false, anyway?). I solved it adding this line to the validateNif method:

Re: Problems with custom validation

2004-03-11 Thread Niall Pemberton
Whats in your validateNif method - are you adding a error to ActionErrors if its invalid? errors.add(field.getKey(), Resources.getActionError(request, va, field)); - Original Message - From: Diego [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:56 PM Subject:

textarea

2004-03-11 Thread as as
Hi, I am generatinga textare on my jsp with this: textarea name=info rows=12 cols=50 tabindex=0bean:write name=teacher property=qualifications //textarea BUt if i enter a large peice of text in the textarea and save it (try to save it) in my bean, its not getting the whole chunck of

AW: textarea

2004-03-11 Thread Andreas Solarik
Just a guess, but if the method field of the form is set to GET, then you can only transfer a limited amount of data. If you have set the method to POST, then I'm at a loss. Andreas -Ursprungliche Nachricht- Von: as as [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. Marz 2004 14:46

page logging out

2004-03-11 Thread as as
Hi, I am using welogic server 7.0 to deploy my struts app.My jsp's are logging out even afetr a couple of minutes of inactivity.Performance wise, I am also looking for ways to speed up page download time.(MY backend database connectivity is through Hiberntae to mysql). How may I do these two

Re: textarea

2004-03-11 Thread Daniel Henrique Alves Lima
You must be carefull. You can don't see the whole text (because the \n characteres). Are you using an java IDE to debug your source ? If this is true, try to write the contents of your property in your log file... as as wrote: Hi, I am generatinga textare on my jsp with this: textarea

Re: AW: textarea

2004-03-11 Thread as as
Andreas, Thanks for the quick reply. I am using struts form tag as follows. wondering ,syntax wise, how I can mention form method as GET...in this tag. Thanks in advance, Sam. html:form action=teacherDisplay name=teacherForm type=com.model.TeacherForm Andreas Solarik [EMAIL PROTECTED]

Re: map-backed action forms - form params not loaded ?

2004-03-11 Thread Daniel Henrique Alves Lima
Raghu, i think this .html is wrong. It must be like : form action=/saveParams.do input type=text name=value(param1)/ input type=text name=value(param2)/ /form Please, try it. Raghu Havaldar wrote: I do not have a problem while displaying those properties. However, when a form (which has a

Re: AW: textarea

2004-03-11 Thread Daniel Henrique Alves Lima
html:form method=post I think that post is the default but i'm not sure... as as wrote: Andreas, Thanks for the quick reply. I am using struts form tag as follows. wondering ,syntax wise, how I can mention form method as GET...in this tag. Thanks in advance, Sam.

Re: help me with using bean

2004-03-11 Thread stu
On Thu, 11 Mar 2004 01:30:38 + Mu Mike [EMAIL PROTECTED] wrote: I have files like the below,I m trying to submit a bean object to my action class, yet when I pressed the submit on the jsp file,it threw an exception:java.lang.IllegalArgumentException: No bean specified what is the

RE: help me with using bean

2004-03-11 Thread shirishchandra.sakhare
Can you send the mail without the entrust cretificate? I can not read the mail and hence help you :-(( -Original Message- From: stu [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 3:04 PM To: [EMAIL PROTECTED] Subject: Re: help me with using bean File: SMIME.txt

AW: How to submit form in pop-up window and forward parent result s page?

2004-03-11 Thread Samuel . Opoku-Boadu
Hello bOOyah, I have had the same problem that you describe. Were you able to solve it?. If so could you share how you did it? Sam -Ursprungliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Auftrag von bOOyah Gesendet: Donnerstag, 11. Marz 2004 11:43 An: [EMAIL PROTECTED] Betreff:

AW: AW: textarea

2004-03-11 Thread Andreas Solarik
Hi Sam, You can find the info at http://jakarta.apache.org/struts/userGuide/struts-html.html#form. snip method The HTTP method that will be used to submit this request (GET, POST). [POST] [RT Expr] /snip Its set to post by default, so I guess I havn't got a clue what your problem is. Maybe

RE: How to set the selected value in an select rendered by optionsCollection

2004-03-11 Thread Wendy Smoak
From: Frank Schaare [mailto:[EMAIL PROTECTED] This would only be true if the action that was called specified that form in its mapping. Sorry, but i guess you are wrong. The declared formBeans are digested during ActionServlets.init(). Actually, he's right. :) My advice only applies if

Re: AW: How to submit form in pop-up window and forward parent result s page?

2004-03-11 Thread bOOyah
[EMAIL PROTECTED] wrote: Hello bOOyah, I have had the same problem that you describe. Were you able to solve it?. If so could you share how you did it? Sam Hi Sam The closest help I've received yet was from Anirudh Jayanth who said: 8-- The

RE: How to submit form in pop-up window and forward parent results page?

2004-03-11 Thread McCormack, Chris
Put an onSubmit(refreshOpener()) on your form (assuming your form is on your popup) write something along these lines (code below is off the top of my head and untested) function refreshOpener() { if(window.opener!=null){ window.opener.location.href=/context/showsomething.do; }

WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
To find out what's going on, I created an even simpler project: All the struts 1.1 jars, tlds and dtds A simple index.jsp with NO struts related tags or taglib directives. An ActionServlet set to load on startup. The same failure as reported under problems with html:base/ happens, that shows the

Re: AW: How to submit form in pop-up window and forward parent results page? [OT]

2004-03-11 Thread Guido García Bernardo
Your editItem action, when the update is finished, forwards to autoCloseAndReloadOpener.jsp autoCloseAndReloadOpener.jsp does steps (5) and (6): html body onLoad=self.close() script // Reload opener opener.formReload.submit(); // or something like this, using opener /scrip

Re: WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
I just found the struts-blank.war in the Struts 1.1 binary distribution and deployed it to my Tomcat 2.32 . I fails in the same way! -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

bean:message format ssn

2004-03-11 Thread Kumar M
Hi all, I am wondering if there is an easy way to format the ssnn. What I have is a String '123456789' but the users would like to see '123-45-6789'. Is there an easy way of doing this using bean:write or bean:message or any other tag? Thanks!!

Re: WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-11 Thread Susan Bradeen
Lukas, I am not familiar with your previous posts, but will this archive post help? http://marc.theaimsgroup.com/?l=struts-userm=106326387004081w=2 Susan Bradeen Lukas Latz [EMAIL PROTECTED] wrote on 03/11/2004 10:22:44 AM: snip Is there a problem with using Tomcat 3.23 and Struts 1.1 ?

RE: bean:message format ssn

2004-03-11 Thread Shahak.Nagiel
There's a few options, off the top of my head: -Do the string manipulation in the (preprocessing) action -Use a combination of the Jakarta String taglib (http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html) tags (such as left, right, and mid) to parse out the value (since

AW: bean:message format ssn

2004-03-11 Thread Andreas Solarik
Hi Kumar, when you look at the documentation for bean:write (http://jakarta.apache.org/struts/userGuide/struts-bean.html#write) you can find that it allows formating. Bean:message looks like it does not support this feature - which kind of makes sense when you consider what its used for (lookup

RE: Reporting + Struts

2004-03-11 Thread Marco Mistroni
Hi all, I have the same problem... I was going to use jasper (I posted a similar message in jasper mailing list) but I am stucked at the point Of how do I render the report generated by jasper If I want to show it to the user, ideally I have to get the report in XML Format and then

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
Crack smoking gags aside.. I've tried hacking around the problem using the unspecified method to no avail. Looks like storing in session and using links. Unless I have any sudden rushes of blood to the head. On 11 Mar 2004, at 13:21, Niall Pemberton wrote: You know before I read you

Re: WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
Lukas, I am not familiar with your previous posts, but will this archive post help? http://marc.theaimsgroup.com/?l=struts-userm=106326387004081w=2 Susan Bradeen Susan, this post somewhat contradicts the info on the Struts website, where they state: Apache's Tomcat (version 3.1 or

Re: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Thanks for your replies. There seems to be a way to format using bean:message. If you look at the following article from Ted Husted: http://www.jguru.com/faq/view.jsp?EID=915891 From the article: ordering.authorized.range.staff=Staff is only authorized to requisition supplies that cost less

Re: Reporting + Struts

2004-03-11 Thread Niall Pemberton
From what I saw of Jasper a year ago, the html it generated was pretty crud and you had to set up a load of XML in a definitition to generate a report. Now I may be way off base here, but if you want to generate a report in html and then render it using struts why not use jsp, tiles, velocity or

Re: WAS: problems with html:base/ - Help Please - ActionServlet fails on startup

2004-03-11 Thread Susan Bradeen
Lukas Latz [EMAIL PROTECTED] wrote on 03/11/2004 11:12:26 AM: Lukas, I am not familiar with your previous posts, but will this archive post help? http://marc.theaimsgroup.com/?l=struts-userm=106326387004081w=2 Susan Bradeen Susan, this post somewhat contradicts the

Please help :No Collection found

2004-03-11 Thread suneetha kurakula
Hello All, I am Kurakula .I am new to this group .My Problem is I've three jsp pages create,view and edit. I've one form bean UIForm with attributes I am invoking create.jsp and saving data UIForm and then forwarding it uiview.jsp From uiview.jsp I am trying to populate data to

AW: AW: bean:message format ssn

2004-03-11 Thread Andreas Solarik
Ah, I guess I misunderstood your previous post. Maybe this will help you along? snip Use the formatKey attribute if you want to pull it from message resources. Have a look at java.text.DecimalFormat for an explanation of formatting patterns for decimal numbers. /snip The above code came from

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
Niall Okay.. Can i assume your solution involves links and scoping to session or is there something I'm missing? On 11 Mar 2004, at 12:19, Niall Pemberton wrote: Mark, Seems to me you have already worked out the solution, except why do you need a lookup dispatch action - rather than a roll

jsp.error.attribute.noequal

2004-03-11 Thread as as
Hi, I keep getting this error.Sometimes recompiling my jsps makes this error go away.but i have so many jsps(atleast 20) that recompiling is giving error in one or the other of them kinda strange wondering how to fix it the error was at this line sometimes and the next one in the

Formatting in message resources (was: bean:message format ssn)

2004-03-11 Thread Hubert Rabago
Yes, the default MessageResources implementation uses the Java Format object, so in some of my messages, I have: my.msg.key=No was found for {0,date,MM} Cool, ain't it? Not sure a lot of people know about it. So you won't have to mess with source code when all you wanna do is change data

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Yup, formatKey is pretty handy. We use it to format dates. But bean:write tag seems to do this only when converting from non-String data type to String datatype. What I have is a String '123456789'. One solution is to probably convert this to Integer and that will force it to use a number

RE: Reporting + Struts

2004-03-11 Thread Marco Mistroni
Hi Niall, Well, actually I want to generate a report first, And then eventually render it in HTML (or whatever other format). Using jasperreports, easy way could be to generate an XML report and then Render it via some stylesheet in HTML... I was hoping that there is an XSL stylesheet

RE: jsp.error.attribute.noequal

2004-03-11 Thread Wendy Smoak
From: as as [mailto:[EMAIL PROTECTED] I keep getting this error.Sometimes recompiling my jsps makes this error go away.but i have so many jsps(atleast 20) that recompiling is giving error in one or the other of them wondering how to fix it input type=hidden name=id value=%=

struts-workflow-extension and DynaValidatorForm

2004-03-11 Thread Dean A. Hoover
I am interested in using the workflow extension but do not want to give up using DynaValidatorForm. Is it possible? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: AW: AW: bean:message format ssn

2004-03-11 Thread Slattery, Tim - BLS
Yup, formatKey is pretty handy. We use it to format dates. But bean:write tag seems to do this only when converting from non-String data type to String datatype. What I have is a String '123456789'. One solution is to probably convert this to Integer and that will force it to use a

RE: Changing position of nested beans

2004-03-11 Thread Hubert Rabago
Not sure if you're looking different ways to do Move Up/Move Down or just a way to make your one button for each item work. If it's the former, you can include a radio button beside each item and have one Move Up and one Move Down button for the whole form. The radio button will have the index

printing pdf using javascript....

2004-03-11 Thread Prashanth.S
Hi all, I have a requirement for printing of a PDF document on load of the page. As soon as the browser window opens, the PDF document need to be loaded and the print dialogue box of the PDF need to open. This works fine with the following code in IE6.0 But when used with the IE5.0, this

Re: Reporting + Struts

2004-03-11 Thread Niall Pemberton
I sent this earlier, but it didn't seem to reach the list. A number of messages I sent never seemed to arrive (most do) - does anyone else find this? Niall - Original Message - From: Niall Pemberton [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March

[OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Hubert Rabago
--- Niall Pemberton [EMAIL PROTECTED] wrote: I ended up ditching it and creating reports using iText to create pdf files directly. http://www.lowagie.com/iText/ BTW, I wasn't doing it in a web environment and the pdf generation is slow, can take up to 30 seconds for a large report.

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
The radio button could just be the boy.. Nice one Hubert On 11 Mar 2004, at 18:28, Hubert Rabago wrote: Not sure if you're looking different ways to do Move Up/Move Down or just a way to make your one button for each item work. If it's the former, you can include a radio button beside each

Struts in Action: 12.10.1 Multipage validations

2004-03-11 Thread Dean A. Hoover
This section of the book sounds interesting, but it would be nice if there were an example somewhere. Can someone point me to one? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: AW: AW: bean:message format ssn

2004-03-11 Thread Kumar M
Tim, That is what I have right now...and is ofcourse very simple to do it in FormBeans :). But I have to do this at a number of places/form beans, so I was wondering if it could be done using bean:message as I mentioned in the subject of this e-mail (not necessarily bean:write). Thanks!

How to make AND and OR conditions with logic struts tags

2004-03-11 Thread Julio Cesar De Salvo
Anyone know how to create a condition with struts? Thanks, Julio

[OT] How to tell whether a HTML/JSP page is on the same machine as the Servlet it calls

2004-03-11 Thread Saul Q Yuan
Hi, I am trying to find out whether a HTML or JSP page in on the same machine as the Servlet it calls. The reason I want to do this is preventing a page not on the Servlet machine from posting to the Servlet. I tried comparing the Referer header info with the RemoteHost info, but unfortunately

Re: How to make AND and OR conditions with logic struts tags

2004-03-11 Thread Paul-J Woodward
This may not work for your situation, but you could try: AND: logic: name=...logic: name=... stuff /logic:_/logic:_ OR: logic:bean:define name=test //logic:_ logic:bean:define name=test //logic:_ logic:present name=test stuff /logic:present Paul

RE: How to make AND and OR conditions with logic struts tags

2004-03-11 Thread Slattery, Tim - BLS
Anyone know how to create a condition with struts? With the Struts logic: tags, you don't. Use the JSTL tags instead: c:if test=${ arbitrary logical expression} whatever /c:if And c:choose c:when test=${...} whatever /c:when more when clauses c:otherwise stuff that

RE: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Wendy Smoak
Niall Pemberton wrote http://www.lowagie.com/iText/ BTW, I wasn't doing it in a web environment and the pdf generation is slow, can take up to 30 seconds for a large report. I'm using iText for my Struts app, and it's not that slow for me... 120 pages in ~7 seconds. I suppose it depends on

[OT] Database password

2004-03-11 Thread Guillermo Meyer
Hi: Our Struts application is currently in production. This applciation uses an Oracle Database (we are using DBCP from jakarta). We access this database through url, user a password and we need to hide the production database password. The password is stored in a configuration file and is in

Re: [OT] Database password

2004-03-11 Thread Lucas Gonzalez
If the problem is the user accesing the plain text file by typing the URL in the browser... a better solution would be to tell apache to hide those files... - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday,

Re: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Niall Pemberton
We use POI as well, the best place to start is the Quick Guide: http://jakarta.apache.org/poi/hssf/quick-guide.html Niall - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 6:37 PM Subject: RE: [OT]

RE: [OT] Database password

2004-03-11 Thread Wendy Smoak
From: Guillermo Meyer [mailto:[EMAIL PROTECTED] How are your Java Applications get connected to production databases and how is the database password protected? I make no claims of best practices. My Factory class that produces (non-JDBC) connections to my database reads a .properties file

RE: [OT] Database password

2004-03-11 Thread Guillermo Meyer
Users cant access this file, but the file can be accessed by people that is not from Information Security area (Seguridad Informática). The password shouldnt be known neither by the application deployer, nor the system administrator, but only by Information Security people. -Original

Re: [OT] Database password

2004-03-11 Thread Lucas Gonzalez
I believe that it will be easier to define a proper security policy in your production server than trying to hide the password or encrypt it. Another option is to hard-code it into your source, but you will loose some flexibility there. Hope that helps Lucas - Original Message - From:

RE: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Hubert Rabago
--- Wendy Smoak [EMAIL PROTECTED] wrote: Hubert Rabago wrote: My current users are Excel lovers, so I generate formatted Excel docs (through POI) that they can edit or print directly. Do you have a small example? I'm currently sending a CSV from my Struts app, but there is a huge demand

Re: Reporting + Struts

2004-03-11 Thread Shyam A
Niall, Thanks for sharing your experience with Jasper reports. Looks like using iText will make things easier for me. I noticed that I also missed a few posts on the same thread. Thanks, Shyam --- Niall Pemberton [EMAIL PROTECTED] wrote: I sent this earlier, but it didn't seem to reach the

Re: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Niall Pemberton
Wendy's post about this suggests that she isn't having a problem with it (120 pages in 7 seconds). To get a sexy looking grid on the page, with nice headers (multi-line, cell spaning stuff) we created our own TableRenderer based on iText's PdfPTableEvent - it handles drawing the headers and nice

RE: Struts in Action: 12.10.1 Multipage validations

2004-03-11 Thread Anderson, James H [IT]
I'm not guaranteeing that this is the best way to do it, but it works for me ;-) validator name=date1LEdate2 classname=portfolio.CustomValidators method=date1LEdate2 methodParams=java.lang.Object,

help implementing modules...

2004-03-11 Thread Damm, Gary
I've successfully used Struts for several applications and have been very happy with it. I am getting ready to use it for a larger project and would like to use modules but I'm having some problems. It appears that when I attempt to switch from the default module to a new module (module1) it

problems with ValidatorActionForm

2004-03-11 Thread Julio Cesar De Salvo
I'm working with ValidatorForm, but the validate javascript function is not being created when I use the ValidatorAction form. Any one has a llitle walkthrough to configure this properly? Thanks, Julio

RE: help implementing modules...

2004-03-11 Thread Liu, Anne I
I don't know if this will help, but you have to prepend the module name into your URL. Thus, your link should look like html-el:form action=module1/DomainSearch I've found the short section in the struts the most helpful when dealing with modules

Re: [OT] Database password

2004-03-11 Thread Niall Pemberton
I have to say I think putting it in the source code is the worst possible option. If for security reasons (say one of your developers leaves unhappily!) you need to change your database password, I don't think you want to have to change your java source, compile and re-deploy your app in order to

  1   2   >