Forms with childforms

2002-01-11 Thread storck
In the docu of the FormToPropertyMapper of Andrej I saw that he had a form with a cildform as property. How do I config struts that a form has a childform and where do I use it? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: Partial Loading of JSP Page

2002-01-11 Thread Hakan Forss
Start building the top of page that would contain a progress message. Flush the output to the browser. After a task are completed write some javascript that updates the progress message in the output and flush again. Keep doing this until the actions are performed an then redirect to a new

RE: Struts Fast Track Book

2002-01-11 Thread Lawson, Rick
Maybe the author would like to post an example chapter (in oreilly style) as a pdf so we can decide for ourselves? Rick Lawson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 January 2002 03:54 To: Struts Users Mailing List Subject:Re:

RE: getting the form populated.

2002-01-11 Thread Cengiz Kayay
Thanks for all the responses. The problem was a stupid mistake. In the tag I call the form bean I forgot to mention scope. It shoud have been this way: html:form scope=request name=editDocTypeForm Other than that the code I provided in the question message was quite the right way to

Templates with frame

2002-01-11 Thread Thierry Ruiz
Hi all, Thanks to Cedric Dumoulin, find here a way to create Struts templates with frames. http://archive.covalent.net/jakarta/struts-user/2001/04/0095.xml -Th. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Advice needed on Stuts versus Struts/Expresso

2002-01-11 Thread Peter Pilgrim
Yes The Expresso controller can be called from the command line. The DBTool program is an example of such a program. The program's path is com/jcorporate/expresso/core/utility/DBTool.java Look in the source code for the 'public static void main()' method starting around line number 1391.

404 Error

2002-01-11 Thread Daniel WAMARA
I'm trying to launch a Struts application that is properly working on one of my colleague's PC because I have to finish up something but as soon as I try to make a login via a login page (which works on other PCs), I have a 404 Page not found error and in my Tomcat Console, I have

RE: client side XSLT

2002-01-11 Thread Taylor Cowan
The last time I tried client side XSLT I found that IE was not supporting the spec as well as Xalan. It's also not a given that all clients will have an XSLT processor embedded in them. Styling an XML doc is not going to tax the server enough to make this a performance or distributed computing

problems with nighly build and Tomcat 4.0.1

2002-01-11 Thread Nottebrok, Guido
Hallo, my application was running without problems with struts 1.0. But now I need indexed properties and so I downloaded the nightly build jakarta-struts-20020109.zip. and put the files in the directories as mentioned in the readme file. Now I have the following problems: 1. When I have

upload file using struct FormFile

2002-01-11 Thread Yiru Zhang
Hi, I am experiencing a strange problem when we use FormFile to upload a binary file. After the upload, the check sum of binary file is changed, even though the size is still same. But if the file is text file. Every thing seems fine. The code I used to do the upload is very similar to the

Struts Build Error

2002-01-11 Thread Mehmood Shaikh
I get an following error when trying to build struts 1.0.1 from source. Its failing with java.lang.NoClassDefFoundError: javax/xml/transform/Source error. What am i missing? Im using Ant1.3, and following properties set jdbc20ext.jar - c:/Downloads/jdbc2_0-stdext.jar servlet.jar -

RE: problems with nighly build and Tomcat 4.0.1

2002-01-11 Thread Robert D. Morse
You need the logging stuff from Jakarta http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-logging/ By the way, if you get this to work, let me know. I, and others, had some other exceptions crop up with earlier nightly build versions. I haven't tried the latest. -Original

RE: Populating a Form with values

2002-01-11 Thread Jesse Alexander (KABS 11)
I also prefer 1 action... but I use the parameter-tag in struts-config for the action-mapping. Meaning 2 ActionMappings - 1 Action - 1 ActionForm and so on regards Alexander -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 10. Januar 2002 19:04 To:

iterate over bean attributes

2002-01-11 Thread Peter Georgiou
Hi Is there a nice way to iterate over form bean attributes? The only way I can think of is to copy all the form bean attributes to a collection/array and then iterate over that data structure. This situation arises because I'm displaying confirmation page listing all the data from a

RE: Partial Loading of JSP Page

2002-01-11 Thread Jesse Alexander (KABS 11)
short time ago, there had been a message about a wait-page implementation. search it in the archives and request the package from the author...might be what you want... hope this helps Alexander -Original Message- From: Hakan Forss [mailto:[EMAIL PROTECTED]] Sent: Freitag, 11. Januar

The same name in scope, but different names in struts-config.xml

2002-01-11 Thread Christian Bouessay
Hi, I would like to use something like this: form-bean name=form1 type=com.mycompany.Form1 / form-bean name=form2 type=com.mycompany.Form2 / form-bean name=form3 type=com.mycompany.Form3 / with : Form1.java, Form2.java, Form3.java extend Form.java. Form1, Form2 and Form3 have the same

Trouble with web.xml in weblogic 5.1 SP8

2002-01-11 Thread Jacob Marcus
Hi folks, I have to use Weblogic 5.1 SP8. My war file has a normal web.xml to support struts. When the war file is deployed, the weblogic server is not starting up properly. When the weblogic server is started it gives an xml parser exception and says servlet attribute is not expected under

Re: iterate over bean attributes

2002-01-11 Thread Arron
What you could do create a wrapper object to hold each one, and nest the real property in there. The bean that holds it can hold a reference to it which is in a list as well as the typical. That way you wouldn't have to write code to update your list all the time as you're always getting

RE: Trouble with web.xml in weblogic 5.1 SP8

2002-01-11 Thread Jesse Alexander (KABS 11)
Hi, have a look at the dtd for web.xml... Lately I learned in a similar way that it is not allowed (according to the dtd) to have something like: servlet servlet-mapping servlet servlet-mapping somehow this would be logic: define the servlet and its mappings, then define the next servlet...

RE: Forms with childforms

2002-01-11 Thread Sobkowski, Andrej
Hello, check out Arron's nested tags site: http://www.keyboardmonkey.com/struts In general, there's nothing you _need_ to do to use nested forms, it's a built-in functionality of Struts (I'm using a nightly build of the end of November). In other words, when you define your JSP property

Re: Partial Loading of JSP Page

2002-01-11 Thread SUPRIYA MISRA
I found a solution - not elegant one ofcourse. After each task I write a HTML message and then add the java code % out.flush(); % However this will not work if you have a jsp:forward tag anywhere on the same page, even inside conditional statements. For that solution is SCRIPT

Re: Trouble with web.xml in weblogic 5.1 SP8

2002-01-11 Thread Geoffrey Mroz
Hi, 1. Your error looks like an XML parsing error. Compare with the DTD to make sure that you are placing the elements in the correct locations and that you don't have attributes out of place. I think that weblogic is telling you that it does not expect servlet element where you've placed

RE: iterate over bean attributes

2002-01-11 Thread Sobkowski, Andrej
What about using reflection? You can automatically loop on all your get methods and store them in a Collection without having to do it manually. The problem with this is that you can't control the ordering... I don't know if it's acceptable for you. Another good thing of automatic reflection is

RE: Nesting Beans/Iterators/Logic tags whatever else...

2002-01-11 Thread Sobkowski, Andrej
Arron, I use it and I like it :) Andrej -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 9:01 PM To: Struts Users Mailing List Subject: Nesting Beans/Iterators/Logic tags whatever else... Some people on this list have been

Re: iterate over bean attributes

2002-01-11 Thread Peter Georgiou
Thanks for the replies. I liked both solutions about using wrappers and reflection. I'm going to have a closer look at them. Its not really essential that I use these solutions, but I just think its nice to remove any repeated code where possible. Thanks Peter -- To unsubscribe, e-mail:

First try using Tiles - what appends ?

2002-01-11 Thread DUPRAT Alexandre
Hi, I'm trying using tiles for the first time in order to mix struts-menu and tiles (or template with is similar if i understand the good way). my first try is using the classicLayout.jsp for tiles tutorial and my index page lookin like : %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %

Re: The same name in scope, but different names in struts-config.xml

2002-01-11 Thread Mister Hundy
Christian, Would it be possible to have just 1 form with a type property and then from the JSP's a hidden field that sets the type? Based on this type you can control the proper validation. Having different classes with the same form name could get messy. From: Christian Bouessay [EMAIL

RE: Newbie! HELP! Why JSP keeps loading and loading...?

2002-01-11 Thread Rick Davidson
Here's some more details that seem weird to me. The action class that calls the JSP page that keeps loading, is itself repeated executed. For some reason, my doPerform() method is accessed over and over until I click the STOP button on the browser. Is there some struts tag that can cause a page

RE: Newbie! HELP! Why JSP keeps loading and loading...?

2002-01-11 Thread Kiet Nguyen
You should go to a different target, usually a target that maps to a jsp -Original Message- From: Rick Davidson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 7:26 AM To: Struts Users Mailing List Subject: RE: Newbie! HELP! Why JSP keeps loading and loading...? Here's some

Re: The same name in scope, but different names in struts-config.xml

2002-01-11 Thread Christian Bouessay
Would it be possible to have just 1 form with a type property and then from the JSP's a hidden field that sets the type? Based on this type you can control the proper validation. Having different classes with the same form name could get messy. Do you mean only one class (Form.java)

Re: Including results from one action on a different actions jsp page - How do I do this?

2002-01-11 Thread Giuseppe Galli
what about the use of iframe tag? iframe src=.. HTH Pino - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 11, 2002 1:57 AM Subject: Including results from one action on a different actions jsp page - How do I do this?

XML/XSL and Transformation using Struts/Expresso

2002-01-11 Thread Matt Raible
I'm getting ready to develop an application and would love to emit XML from my action classes and apply an XSL stylesheet - then transfer to the browser. I've seen many discussions about this on this list - but alas, no examples - so I'm getting ready to roll my own. I've seen that Expresso

Getting Error 500 cant remove Attributes from request scope on struts-example.

2002-01-11 Thread Shroyer, Mark
We are trying to run the Struts example application under WebSphere 3.5.3 but get the following exception. Any ideas of what this means or where to go from here? Thanks Error 500 An error has occured while processing request:http://localhost/struts/editRegistration.do Message: Server caught

RE: upload fails

2002-01-11 Thread Domen, Ken
Thanks-- adding the enctype-multipart/form-data did make it work. I'm just not sure where the actual uploaded doc goes. Does anyone know? ken -Original Message- From: Bryant, Doug [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 8:01 AM To: 'Struts Users Mailing List'

Re: First try using Tiles - what appends ?

2002-01-11 Thread David M. Karr
DUPRAT == DUPRAT Alexandre [EMAIL PROTECTED] writes: DUPRAT Hi, DUPRAT I'm trying using tiles for the first time in order to mix struts-menu and DUPRAT tiles (or template with is similar if i understand the good way). DUPRAT my first try is using the classicLayout.jsp for tiles

multipe bean:define's in one page?

2002-01-11 Thread Moritz Petersen
Hello, I would like to use bean:define to overwrite a previously defined bean. Example: bean:define id=mybean value=foo/ bean:write name=mybean/ bean:define id=mybean value=bar/ bean:write name=mybean/ Unfortunately, this is not possible, because the Servlet code would contain String mybean =

AW: multipe bean:define's in one page?

2002-01-11 Thread Hudayioglu, Fehmi
hello, as far as I remeber you are not allowed to use same id in page more than one. Maybe, I am wrong. Tschau. -Ursprüngliche Nachricht- Von: Moritz Petersen [mailto:[EMAIL PROTECTED]] Gesendet am: Friday, January 11, 2002 6:11 PM An: Struts Users Mailing List Betreff:

can't use local forwards with html:link tag ?

2002-01-11 Thread Olivier Dinocourt
Hello list I'm trying to use local forwards with the html:link Struts tag, and I get the following exception : -- javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrive ActionForward named RechercherProfils at

Re: Struts Build Error

2002-01-11 Thread Steven D. Wilkinson
You need xalan.jar in your local classpath. I had the same problem with ant1.4.x. I solved the problem by putting the xalan.jar in my classpath. You can also add the xalan.jar into the ant/bin directory and it works, at least with ant1.4.x. FYI, I'm using xalan-j_2_2_D10. Steve Mehmood

custom tag as content in template field?

2002-01-11 Thread Michael Stacey
Is it possible to somehow use a custom JSP tag as content in a page template? For example, in a template: table border=1 cellspacing=0 cellpadding=0 width=610 tr tdtemplate:get name='image'//td tdtemplate:get name='prodinfo'//td /tr trtd colspan=2template:get

Re: First try using Tiles - what appends ?

2002-01-11 Thread Olivier Dinocourt
If the tiles taglib works in the same manner as the template taglib, then there must be an attribute to specify whether the value attribute refers to a file or a message to be displayed as is. The template taglib uses the direct attribute, set to true if you want the value to be treated as is.

RE: XML/XSL and Transformation using Struts/Expresso

2002-01-11 Thread Taylor Cowan
Matt, That sounds like an interesting approach. Don't get sidetracked thinking of an action emiting something. You'll want to forward to a view component that does what you like. Cocoon might be of interest to you as well. I like server side styling. My actions forward to a view which gets

using upload

2002-01-11 Thread Domen, Ken
Is there a better way to create an uploaded document on the server using FormFile in the Action class? if (formFile != null) { File file = new File(/apps/dev/weblogic/weblogic/myserver/ms3/ + formFile.getFileName()); RandomAccessFile ras = new

Re: First try using Tiles - what appends ?

2002-01-11 Thread Cedric Dumoulin
Hi Alexandre, The problem comes from the web server having some trouble to convert a String to an Object ;-(. This problem was already encountered with old web server, but it seems you use Tomcat3.2.3. I also use Tomcat 3.2.3, and all work fine for me ! Have you tried examples coming

Re: Including results from one action on a different actions jsp page - How do I do this?

2002-01-11 Thread Cedric Dumoulin
Have you consider using include tag or Tiles ? You can do something like : -jsp page used by (action 1) start--- html I want to include here content from (action 2) tiles:insert path=action.do/ /html jsp page used by (action 1) end---

Re: Including results from one action on a different actions jsp page - How do I do this?

2002-01-11 Thread Cedric Dumoulin
Have you consider using include tag or Tiles ? You can do something like : -jsp page used by (action 1) start--- html I want to include here content from (action 2) tiles:insert path=action.do/ /html jsp page used by (action 1) end---

Re: custom tag as content in template field?

2002-01-11 Thread Cedric Dumoulin
You can't put jsp tag as value of another jsp tag attribute. But there is a solution. Try template:put name='addbutton' mytag:button prodid=001/ /template:put Cedric Michael Stacey wrote: Is it possible to somehow use a custom JSP tag as content in a page template? For

Remove bean?

2002-01-11 Thread Moritz Petersen
Is it possible to remove a bean from request / session etc. with Struts? This would be a counterpart to bean:define... Thanx in advance, Mo. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Including results from one action on a different actions jsp page

2002-01-11 Thread Peter Alfors
Here are a couple options: 1. Create your page as a frameset... Then each frame can have it's own action as its source. 2. Use one action that is responsible for retrieving all of the information for one page. The internal code may have to reference helper classes (or maybe even other

struts 1.0.1 on solaris loses session scope beans

2002-01-11 Thread Peter Kordel
I'm running tomcat 4.0.1 with struts 1.0.1 milestone build on solaris 8, jdk 1.3.1. My login process stores a user bean in session scope, and my ActionBase class checks for the existence of that bean to validate permissions. On win2k everything works as designed, on solaris 8 the user bean is not

datasources

2002-01-11 Thread Rubens Gama
i have two datasources defined in the struts-config.xml. how can i reference each one from my application? for example: servlet.findDataSource(1) or servlet.findDataSource(2) thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

nesting struts with JSP codes

2002-01-11 Thread Henrik Chua
Hi! Is it possible to nest JSP codes with struts tag? ex. html:link page=/index.jsp onmouseover=nav_home.src='/images/nav_home%=_on%.gif'; thanx h -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: XML/XSL and Transformation using Struts/Expresso

2002-01-11 Thread Low, Liang
My approach is very similar to Taylor's, but I use custom tag to do the transformation instead, just like jakarta's xsl tag. The reason I don't use jakarta's xsl tag is because it doesn't support Xalan 2, or vice versa. This is the semi-pseudo custom tag class.

RE: datasources

2002-01-11 Thread Taylor Cowan
When you configured the datasource you gave it a name. Use that as a key to lookup the datasoruce using findDataSource( String name ) Taylor -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 2:38 PM To: Struts-User Subject: datasources i

RES: datasources

2002-01-11 Thread Rubens Gama
ok, but in the struts-config.xml there isn´t a name tag. How can I specify the name of the dataSource ?. For example, this below: data-sources data-source set-property property=autoCommit value=false/ set-property property=description

RE: datasources

2002-01-11 Thread Zeltser, Mark
Rubens, You can use key=dataSourceName attribute in data-source tag. To retrieve: ActionServlet.findDataSource( dataSourceName) Mark. -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 2:46 PM To: Struts Users Mailing List Subject: RES:

RE: datasources

2002-01-11 Thread Taylor Cowan
You're right. I'm wrong. From J2EE datasources I just assumed there would be one, given that it's obvious someone would want to configure more than one data source, and the method taking a string. Anyone else? Taylor -Original Message- From: Rubens Gama [mailto:[EMAIL PROTECTED]]

RES: datasources

2002-01-11 Thread Rubens Gama
Thank you Mark, but It´s not working. I´ve done this: data-sources data-source set-property property=key value=ds1/ set-property property=description value=ds1 Data Source/ ... ... /data-source data-source set-property

ACS - Web Application Framework based on J2EE and Oracle

2002-01-11 Thread Matt Raible
Does anyone have any experience with this? http://www.arsdigita.com/products/core I'm building a LMS (Learning Management System) and found that this company appears to have a Open Source LMS (http://www.arsdigita.com/solutions/education/). Seems to be an easy install on UNIX, but is a pain to

RE: datasources

2002-01-11 Thread Zeltser, Mark
I am using struts 1.0 and it works for me, however I don't use set-property attribute and assign each property directly. E.g.: data-sources data-source autoCommit=true description=some db1 key=ds1 / data-source autoCommit=true

RES: datasources

2002-01-11 Thread Rubens Gama
Thank You Mark: It worked. However, could you explain why the other way didn´t worked? Hey guys let´s update that manual! Rubens -Mensagem original- De: Zeltser, Mark [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 11 de janeiro de 2002 18:27 Para: 'Struts Users Mailing List'

Question on Struts using FDFDoc (PDF file)

2002-01-11 Thread Raffy_Lata
I have an action class that creates an FDFdoc (PDF file) and saves it to the response's outputstream. Before forwarding to the output jsp, I also set the content-type of the response to the ff : response.setContentType(application/vnd.fdf); However, the resulting page seems to be in

Re: select/options/option

2002-01-11 Thread Jason Wells
Thanks for the summarized info. Using the html:option tag, is there a way to set an option to be initially selected? I'm looking for something equivalent to option value=blah selectedblah/option I don't see mention of this in the online docs for the HTML taglib. Thanks, Jason Larry Maturo

RE: multipe bean:define's in one page?

2002-01-11 Thread Moritz Petersen
That's what I've thought. But there must be a way to redefine a value of a bean, mustn't? Thanx, Mo. -Original Message- From: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 6:24 PM To: 'Struts Users Mailing List' Subject: AW: multipe bean:define's in

RE: XML/XSL and Transformation using Struts/Expresso

2002-01-11 Thread Taylor Cowan
Matt, Yes, these two lines are taken directly from within my perform method, and make use of the example method I sent previously. They perform the styling and make the text available to the view layer. String content = getContent(getCurrentFormElement(req, map),

Re: Execute_Struts_in_Netbeans?

2002-01-11 Thread Reid Pinchback
This sounds a lot like the problems you see in JBuilder with integrated Tomcat. If so, then the problem is that your struts library is on the wrong classpath. You want it in the war's web-inf/lib directory, and only in that the classpath build from the war's contents. Unfortunately in an

MessagesPresent tag

2002-01-11 Thread Pedone, Tim
I noticed a tag called messagesPresent in the logic tag docs http://jakarta.apache.org/struts/struts-logic.html#messagesPresent but got a Can't find tag lib error. Is this a future feature? I'm trying to use it to detect if there is an ActionError of a particular kind. I've got a form with

Potential Concurrency Issue - Struts Forward/Frames/InternetExpl orer 6.0

2002-01-11 Thread Vaughan Jackson
Hi, We have been looking at the implementation of an out of order request detection mechanism very similar to the one built in to Struts. For a single frame application, this works as follows, upon reception of a request: 1. The action object extracts a token (if any) from the session, and

daily bundle

2002-01-11 Thread Boris Garbuzov
Is it possible to re-subscribe to the list to receive just daily bundles of incomming messages? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Execute Struts in Netbeans?

2002-01-11 Thread ltorrence
If you use Forte 3.0 CE (same as netbeans with a few extensions -- good web app extensions), running Struts apps is no problem. -Original Message- From: AJ Morris [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Execute Struts in Netbeans?