Upload question

2001-11-14 Thread Daniel WAMARA
Does anyone has ever made an upload via Struts and this has worked ? Because I've tried y myself and got always failure, and even my Struts-Uplod Example doesn't work. Daniel WAMARA _ Téléchargez MSN Explorer gratuitement à

Re: Upload question

2001-11-14 Thread stefan werner
Hi, Yes, it works very satisfying. Stefan - Original Message - From: Daniel WAMARA [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 9:05 AM Subject: Upload question Does anyone has ever made an upload via Struts and this has worked ? Because I've tried y

RE: David Winterfeldt's Validator Framework + Jbuilder 5.0 + Tomc at 3.2.1

2001-11-14 Thread Alexander Jesse
Hi, we are using the following setup and have no problem whatsoever with it. 1. We are not using WEBRUN. we definied a special run-configuration that executes Tomcat. This allows also to set the home-dir of tomcat to a jb-project internal directory. 2. We have no nostrutstomcat32.jar

static forwards

2001-11-14 Thread Martin Samm
Dear all, i'm setting up a new site, controlled by struts, where some of the area are not form driven. I want to easily set up mappings such that http://someSite/news sends me to a certain page eg pages/news/index.jsp and http://somsite/bites sends me to pages/bites/index.jsp Can i set up

RE: Large form performance...

2001-11-14 Thread Alexander Jesse
Hi, IE is faster if you use tables. With NS you can help performance by predefining the table layout (colgroupcol width=.../colgroup). watch out for memory-hogging when using the %@ page buffer=80kb statement. We once had an app crashing the vm because the used this statement and had a big

accessing other ActionForm

2001-11-14 Thread Crisalyn Ramos
Hi, guys. How do I reset a property of an ActionForm class in an Action class not of its ActionForm pair. say: CompanyActionForm has a property named company UserAction needs to reset the company property of CompanyActionForm how is this done? Is this possible? thanks joy -- To

RE: multiple html:submit buttons with different names?

2001-11-14 Thread Alexander Jesse
Hi, or try this: in the JSP (notice multi-lingual...) tr td html:submit property=previous disabled=true bean:message key=button.wizard.previous/ /html:submit /td td html:submit property=same bean:message key=button.wizard.same/ /html:submit

RE: static forwards

2001-11-14 Thread Damian L Powell
not form driven. I want to easily set up mappings such that http://someSite/news sends me to a certain page eg pages/news/index.jsp and http://somsite/bites sends me to pages/bites/index.jsp In your WEB-INF/web.xml file, you need to add the following entries: servlet

Re: HOW TO: set up a pager with struts

2001-11-14 Thread Oleg V Alexeev
Hello storck, I can suggest you my way. On base of query parameters, offset and page length values generate container or array of objects from database and store total value of records. Container or array you can display with iterate tag. For purposes of page links generation I can suggest bean

Re: Question on Framework..for display data.

2001-11-14 Thread Ted Husted
The usual approach is to route control through the Action first, and then to the JSP. The control does not need to be routed with a submit. To the browser, the Action URI looks like any other. If you need to make an Action the default welcome page, you can have an index.jsp forward it along,

RE: HOW TO: set up a pager with struts

2001-11-14 Thread Mikkel Bruun
please... dont put HOW-TO in the subject of a question... Mikkel -Original Message- From: Oleg V Alexeev To: Struts Users Mailing List; [EMAIL PROTECTED] Sent: 14-11-2001 11:22 Subject: Re: HOW TO: set up a pager with struts Hello storck, I can suggest you my way. On base of query

Branch is too large, Internal restriction

2001-11-14 Thread Alexander, Glynn (LIT)
I have a jsp file in which I use the following construct 15 times to iterate over a collection of errors and display a gif against a field which matched a field in the error collection: logic:iterate id=crosscheckInfo name=SelectCoveragesFormBean property=crosscheckViolations

RE: Branch is too large, Internal restriction

2001-11-14 Thread Tom Klaasen (TeleRelay)
A google search gave me this: http://www.caucho.com/support/resin-interest/0012/0294.html hth, tomK -Original Message- From: Alexander, Glynn (LIT) [mailto:[EMAIL PROTECTED]] Sent: woensdag 14 november 2001 11:28 To: [EMAIL PROTECTED] Subject: Branch is too large, Internal

Re: Upload question

2001-11-14 Thread Daniel WAMARA
So could you telle me what can mean a ServletException BeanUtils.populate because it's the error I got as soon as I click on the upload button and how do I can get a ride on it ? Thanks for help, Daniel WAMARA _ Téléchargez MSN

AW: HOW TO: set up a pager with struts

2001-11-14 Thread storck
Could you send me some examples? Many Thanks! -Ursprungliche Nachricht- Von: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 11:23 An: Struts Users Mailing List; [EMAIL PROTECTED] Betreff: Re: HOW TO: set up a pager with struts Hello storck, I can

ActionServlet return a pdf document

2001-11-14 Thread IZAGA,IGNACIO (HP-Germany,ex1)
Hi, I am trying to generate a PDF document on the fly based on dynamic html generation comming from BroadVision. I am using a tool called HTMLDOC that can use as input parameter a html file or a URL. If i used this tool directly from the command line, htmldoc URL -f result.pdf then, the

Re: ActionServlet return a pdf document

2001-11-14 Thread Jens Khnberger
Just handle the output of the pdf by yourself and return null for your Action. Jens IZAGA,IGNACIO (HP-Germany,ex1) wrote: Hi, I am trying to generate a PDF document on the fly based on dynamic html generation comming from BroadVision. I am using a tool called HTMLDOC that can use as input

RE: ActionServlet return a pdf document

2001-11-14 Thread IZAGA,IGNACIO (HP-Germany,ex1)
Hi, i return null for the action, i did not paste the complete code for the action. What do you mean by handling the output of the pdf by myself? I don't want to save the pdf file into the file system, i want to send directly to the response the output of the call the the tool. ignacio

RE: ActionServlet return a pdf document

2001-11-14 Thread Chughtai, Imran
I'm looking for an HTML to PDF tool that I can run Server-side from a Servlet. It needs to take an HTML page and create a PDF. I checked out HTMLDOC but I don't think the command line version is free. Are there any others available for free? -Original Message- From: IZAGA,IGNACIO

RE: ActionServlet return a pdf document

2001-11-14 Thread IZAGA,IGNACIO (HP-Germany,ex1)
hi, i think that htmldoc is free of charge http://www.easysw.com/htmldoc/faq0004.html you could also use Html2pdf_asp http://128.146.118.49/pdfsamples/asp_readme.htm -Original Message- From: Chughtai, Imran [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 14. November 2001 12:56 To:

Re: multiple html:submit buttons with different names?

2001-11-14 Thread Erik Hatcher
By the end of the day I'll have a LookupDispatchAction. I started to call it MultiButtonDispatchAction, but it really will be more generic such that it will look up messages from ApplicationResources.properties and return back the key so that the Action is not tightly coupled with the JSP page

RE: HOW TO: set up a pager with struts

2001-11-14 Thread Chuck Stern
If possible can you post an example to the list. I've been struggling with this same problem. Thanks! -Original Message- From: storck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:09 AM To: 'Struts Users Mailing List'; 'Oleg V Alexeev' Subject: AW: HOW TO: set up a

RE: Roles based application security

2001-11-14 Thread Nguyen, Khuong
You can use the present and notPresent tag to check for the roles. The present tag will display the input field if the roles are present. The notPresent will display the disabled text field if the user does not have those roles. You can use this to display different menu depending on their

Re: Upload question

2001-11-14 Thread Balasubrahmanyam Pasumarthy
Hi Daniel, I got the similar problem with. The problem is eliminated because of two things: 1) Just check whether you have two form elements. Use only one struts form tag 2) It is a must that you have to handle that file. That is getting its input stream and read it to somewhere. Hope this

Re: Tiles, ActionComponentServlet, WebLogic 6.0sp1, NoSuchMethodError

2001-11-14 Thread Cedric Dumoulin
It looks like you haven't commons' jar in WEB-INF/lib. Add commons-digester.jar, commons-beanutils.jar and commons-collections.jar in WEB-INF/lib, and all should work. Also, it seems that you use Struts1.0, so I advice you to use tilesForStruts1.0.jar. Hope this help, Cedric Phil

Re: ActionServlet return a pdf document

2001-11-14 Thread Balasubrahmanyam Pasumarthy
Hi, I had a similar problem with an RTF document generation on the fly. The only thing it is working fine for Netscape but the IE is not opening it as word document because of extension it has got. .do I eliminated it by introducing another mapping similar to .do as .rtf in Web.xml

RE: Struts 1.1 and Tomcat 3.2.3

2001-11-14 Thread Adam Smith
I have had similar problems in the past with Struts 1.1 and Tomcat 3.2.3 on my Windows 2000 development box. There is a lot of good information in the archives of the list about these and similar errors, but none ever helped me get Struts running. Luckily, Tomcat 4.0 came out, and the problem

RE: ActionServlet return a pdf document

2001-11-14 Thread moritz petersen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm quite a struts newbie, so forgive me this unqualified reply, but isn't it possible to set the content-type of the output stream to application/pdf? Cheers, Moritz. -Original Message- From: Balasubrahmanyam Pasumarthy

RE: Struts 1.1 and Tomcat 3.2.3

2001-11-14 Thread Tom Klaasen (TeleRelay)
If something works on tomcat 4 and not on tomcat 3.2, and especially if the word xml is in the stacktrace, you should try to put xalan.jar and xerces.jar in the TOMCAT_HOME/lib dir, and rename parser.jar and jaxp.jar to zparser.jar and zjaxp.jar, respectively. And then of course restart your

RE: HOW TO: set up a pager with struts

2001-11-14 Thread tnist
Chuck, May I also get a copy of this example? Thanks, -Original Message- From: Chuck Stern [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 8:13 AM To: Struts Users Mailing List; 'Oleg V Alexeev' Subject: RE: HOW TO: set up a pager with struts If possible can you

Re: ActionServlet return a pdf document

2001-11-14 Thread Peter Pilgrim
I am about to do a similar thing Rendered JPEG images. Sending back binary content should be possible from Struts Action. In the action perfrom() you return `null' to signify that you handling the response by yourself. Generating custom response is the same, then, as a Java Servlet. You have to

off subject ANT

2001-11-14 Thread Tom Tibbetts
Hi All, I know this is outside of Struts, but there seem to be a lot of Ant users here and I'm not getting any useable answers to an Ant question I have from the ANT user's list. Basically, the problem I have is that I'm using ANT to generate a WAR file for deployment under Weblogic 6.1. It

Formatting a float for display

2001-11-14 Thread Krueger, Jeff
All, My guess is there is some easy way to do this. I have a formBean that has a get and a set for a value that is a float. I want to display this float in a format of #,###.##. I am using java.text.DecimalFormat and that works pretty good except it returns a String. So if I change my get

Re: off subject ANT

2001-11-14 Thread Sandeep Takhar
just a quick thought: is it permissions? (I may have missed your intention) Sandeep --- Tom Tibbetts [EMAIL PROTECTED] wrote: Hi All, I know this is outside of Struts, but there seem to be a lot of Ant users here and I'm not getting any useable answers to an Ant question I have from the

RE: Formatting a float for display

2001-11-14 Thread Robert Nocera
Did you try only changing the get method to return the formatted string? Or just creating a get method called getFloatFormatted and using that only to display the value? Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original

Re: off subject ANT

2001-11-14 Thread Tom Tibbetts
Yes, it does have the manifest file. It is generated by ANT. BTW, I'm using the war ... / task. There is nothing really of import in the manifest file generated by either jar or ant; just a 2 line signature. At 12:55 PM 11/13/2001 -0300, you wrote: Tom, does the WAR file generated by ANT

RE: Formatting a float for display

2001-11-14 Thread Barry Glasco
http://www.rpsenterprises.com/struts/index.html -Original Message- From: Krueger, Jeff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 11:04 AM To: '[EMAIL PROTECTED]' Subject: Formatting a float for display All, My guess is there is some easy way to do this. I have

RE: request scope and forms

2001-11-14 Thread Robert Nocera
If I understood your question correction, you probably want to use a session scope bean. In your case when the JSP is submitted each time a new form bean is created because at that point it is a new request, not a forward. Robert Nocera New England Open Solutions www.neosllc.com You supply the

RE: off subject ANT

2001-11-14 Thread moritz petersen
Does the .war file work with other app'servers and does the problem only occur with WL, or is it a general problem with your .war file? I am using the war... task with JBoss and it works perfectly. -moritz. -Original Message- From: Tom Tibbetts [mailto:[EMAIL PROTECTED]] Sent:

Re: off subject ANT

2001-11-14 Thread Tom Tibbetts
Not sure what you mean by permissions. The servlet starts up, goes to read the properties file, then it can't find it. In both the Ant generated and hand generated WARs, the file attributes are the same. At 08:07 AM 11/14/2001 -0800, you wrote: just a quick thought: is it permissions? (I

RE: off subject ANT

2001-11-14 Thread Ajay Chitre
I am using the war.. task myself and deploying the war file under Weblogic 5.1. It works fine. I am using Ant 1.4. If possible give us your war.. script. Thanks. -- Original Message -- Does the .war file work with other app'servers and does the problem only occur with WL, or is it a

RE: off subject ANT

2001-11-14 Thread Tom Tibbetts
I tried it under Tomcat, and it looks like it finds my properties file o.k. This is probably not a good test since Tomcat unzips the war during deployment. At 05:23 PM 11/14/2001 +0100, you wrote: Does the .war file work with other app'servers and does the problem only occur with WL, or is it

RE: Formatting a float for display

2001-11-14 Thread Krueger, Jeff
Robert, Thanks for your response. Actually the way that I currently have it coded is the way that you have described. I created a getDisplayValue(), but this just doesn't seem right to me. My understanding about the MVC architecture should allow for your display to not have to be tied to

RE: Formatting a float for display

2001-11-14 Thread Robert Nocera
You could have a point about the MVC model, in fact, I am not entirely onboard with JSP as an MVC model anyway, but, that being said, I usually consider the form beans as part of the view in a struts application. In my applications the form beans generally encapsulate a data bean and I try to

RE: Re: off subject ANT

2001-11-14 Thread Steve Bendiola
Open your war file and make sure the directory naming structure is correct. I rememeber using a war where WEB-INF and web-inf directories existed which fails on case sensitivity. Tom Tibbetts [EMAIL PROTECTED] wrote: Yes, it does have the manifest file. It is generated by ANT. BTW, I'm

RE: request scope and forms

2001-11-14 Thread Rob Breeds
Robert OK, so even if I forward to a JSP with a form bean in the request, and the JSP displays data from that form bean, as soon as I submit the form again, the original form bean is lost. Hmmm, I was hoping I could somehow keep the forward chain going and Struts would magically keep my

RE: Re: off subject ANT

2001-11-14 Thread Tom Tibbetts
They are all 'WEB-INF' and work fine when exploded directly into the WL file structure At 12:02 PM 11/14/2001 -0500, you wrote: Open your war file and make sure the directory naming structure is correct. I rememeber using a war where WEB-INF and web-inf directories existed which fails on

Re: request scope and forms

2001-11-14 Thread Mantas Urbonavicius
Don't know if I understood the question, but i think you should specify the scope for your action form : in the sturts-config.xml, change the scope=request to scope=session (in the Action Mappings Definitions). Hope it helps - just don't forget to remove it from your session From: Rob Breeds

Re: Upload question

2001-11-14 Thread Daniel WAMARA
I just have one form and I do handle the file via its Input stream but the application doesn't ever let me the time to say hi that I've already this BeanUtils.populate error. Daniel WAMARA From: Balasubrahmanyam Pasumarthy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

Re: request scope and forms

2001-11-14 Thread Andy Noble
I had this very problem. You want the best of both worlds like I did - the formbean somehow lives between two requests but doesn't clog up memory like a session bean could. I chose the request only option in the end. All the data in the bean gets sent to the client, and a new formbean is created

Repeat Select's Options Multiple Time

2001-11-14 Thread Tricia Ong Cheah Yen
hi, i have a html:select box in city.jsp where i display a list of cities. Based on what the user has selected for his first choice, let's say he had selected Sydney, he will be directed back again to city.jsp where Sydney will be marked as the option selected in the html:select box and

Top Tip!

2001-11-14 Thread Rob Breeds
Don't use a protected modifier on your setter methods in ActionForms. Make them public so that they can actually be invoked like you expected them to be. I did by 'mistake' and now I'm paying for it... : ) Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

Reading Session Size.

2001-11-14 Thread Jeff_Mychasiw
I know this is not specifically about struts but, There is much talk about keeping your session size small. For debug purposes I would like to know.. Is there any way to be able to capture the memory size of an httpsession (or rather the objects I have put into the session) ? Through my

RE: Struts 1.1 and Tomcat 3.2.3

2001-11-14 Thread Marko Sarunac
installing jaxp1.1 jar files helped! -Original Message- From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 6:41 AM To: Struts Users Mailing List Subject: RE: Struts 1.1 and Tomcat 3.2.3 If something works on tomcat 4 and not on tomcat 3.2, and

How to reuse HTML code?

2001-11-14 Thread Sobkowski, Andrej
Hello, This may be OT but... I'm trying to find the best way to define reusable HTML components in Struts since we have a lot of pages with quite a few common pieces. For example, I'd like to reuse: - a date field with a popup Javascript calendar - a set of phone fields (regional code, number,

Disabling controls

2001-11-14 Thread Jacob Marcus
Hello people, I have a requirement to disable input controls like text fields, buttons, check boxes etc. This should work in Netscape 4.7 also. Currently the disabled property does not support in Netscape 4.7. Is there any work around? thanks, Jacob

Re: Disabling controls

2001-11-14 Thread Trever M. Shick
What I've seen done, and I've done my self is to use stylesheets or graphics to mimic the look of a disabled field. So when rendering your screen, each field has a flag in the request that states whether or not it is enabled, if it's enabled then you show the regular field, if it's disabled,

RE: Re: Disabling controls

2001-11-14 Thread Jacob Marcus
Hi Triver, I guess this is a good idea. In the worst case we can show images in Netscape. Also, the hidden field idea is good. This way the form bean can still contain the values. Neat. Will you be using custom tags for all fields? Thanks a lot. Jacob Trever M. Shick [EMAIL PROTECTED]

Re: Re: Disabling controls

2001-11-14 Thread Trever M. Shick
Before when we did this, we weren't using struts... But the logic can be accomplished using the Struts logic taglibs. otherwise use the standard struts html taglibs. Trever - Original Message - From: Jacob Marcus [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

properties file in action class

2001-11-14 Thread Dua, Amit
Hi if I have to load a properties file in my action class. I can do it in perform method. But I want to do it in init of Action Servlet , so that it does not get loaded every time a call is made to the action class.How can I do this. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Thank you

2001-11-14 Thread Karmanov, Igor
I would like to express many thanks to the authors and commiters of the Struts framework for the great job. I am glad our team found and accepted Struts as a development framework during initial stage of our project. We completed the project in a very short period of time and do not have big

RE: properties file in action class

2001-11-14 Thread Sobkowski, Andrej
Hello, I guess you could subclass ActionServlet and overwrite an existing initABC() method: public class MyActionServlet extends ActionServlet { ... protected void initOther throws ServletException { super.initOther(); // don't forget this one.. :) myInit(); } protected void

RE: properties file in action class

2001-11-14 Thread Dua, Amit
but if I do not want to subclass ActionServlet -Original Message- From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 3:19 PM To: 'Struts Users Mailing List' Subject: RE: properties file in action class Hello, I guess you could subclass ActionServlet

RE: properties file in action class

2001-11-14 Thread Flockhart, Craig
Only one instance of your Action class gets created, so can't you just load your properties in your Action class constructor? -Craig -Original Message- From: Dua, Amit [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 12:47 PM To: 'Struts Users Mailing List' Subject: RE:

Re: properties file in action class

2001-11-14 Thread Trever M. Shick
You could load it via a singleton... For example if you need to load a different properties file depending upon the Action class, your Singleton's interface would look like this: public class PropertyLoader { public static synchronized PropertyLoader getInstance(); public void

Action structure for CRUD

2001-11-14 Thread ltorrence
struts-newbie I used David Winterfeldt's Generator against a table called broker to produce a form bean, a broker bean, a broker_PK (primary key) bean, and a brokerjdbc bean (which contains SQL CRUD functions). Now I need to create the Action (or Actions) to handle these operations. I have

Re: multiple html:submit buttons with different names?

2001-11-14 Thread Erik Hatcher
Rob, See my recent LookupDispatchAction posted. It currently does the key lookup using the default locale, so I'm not sure it would cover your requirements - but I don't think it would be hard to generalize it even more if the current implementation won't work for you. I'd be happy to try to

nesting form beans - getting but not setting!

2001-11-14 Thread david owens
I have a large multipart form. I decided to have a main form bean that HAS instances of other form beans (one per screen). When I run under tomcat with struts 1.1 the HTML fields are filled correctly from the form bean using the tags shown below. When I submit the form however, the form bean is

Re: Action structure for CRUD

2001-11-14 Thread Ted Husted
It's not a bad approach. Instead of using a switch statement, or equivalent, Artimus specifies which business logic bean to use as a parameter to the ActionMapping. The HelperAction instantiates that bean, populates it, and tells it to do whatever it was made to do. This reduces the number

RE: ActionServlet return a pdf document

2001-11-14 Thread Hollis, Nathan
Also, check out FOP as part of the Apache Project. We use it for our project here and it works great. Free too! -Original Message- From: IZAGA,IGNACIO (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 14 November 2001 11:18 PM To: 'Struts Users Mailing List' Subject: RE:

problem with bean:write in an include

2001-11-14 Thread Fletcher, Ken
I'm using includes that have bean:write tags and custom link tags. When my page displays, I can see the custom link tags with no problem. However, the values for the bean:write aren't being displayed and I get a jasper compiler error (I'm using iPlanet 6.0 SP3) like this: 2001-11-14 05:18:35 -

What are the 5 optional args in Bean Message Tag for

2001-11-14 Thread Kevin Yap
Hi, Can anyone explain to me how to use the args1 - args5 in the bean message tag. Where can i get more information about the usage of these arguments Regards Kevin _ Do You Yahoo!? Get your free @yahoo.com address at

[SUBMIT] LookupDispatchAction - how to handle multiple html:submit buttons

2001-11-14 Thread Erik Hatcher
As promised earlier today, here is my contribution to the multiple html:submit button saga (Ted, time to update your FAQ! :) Here is a breakdown of how to use it: struts-config.xml segment, note the parameter=action action path=/test type=edu.darden.TestAction