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
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
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:
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
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]
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.
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
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
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
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
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 -
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
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:
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
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
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
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
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
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...
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
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
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
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
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
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:
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 %
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
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
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
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)
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?
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
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
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'
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
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 =
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:
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
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
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
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.
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
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
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
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---
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---
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
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]
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
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
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
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]
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.
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
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
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:
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]]
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
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
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
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'
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
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
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
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),
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
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
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
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]
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?
70 matches
Mail list logo