will this be available on the site by this weekend ???
rgds,
amit
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Corneliu Rachieru wrote:
I've looked through the archive and i couldn't find a definite answer to the
following question:
We currently have a working version of our app built with Struts 1.0.2 and
recently ported to 1.1b1.
We would like to use DynaBeans/Forms to do the following:
Hi,
I am iterating an array and for each row I want the user to insert a value. And
I want to save the value for each row when the form is submitted.
logic:iterate id=fond name=flyttaFonderForm property=fonder
indexId=fondnummer
tr
tdbean:write name=fond/
Hi Stephen,
If you are interested in why it is happening look at the .java file that is
created by jsp compiler. I've spent some time doing it but eventually I had given
up because there were too many lines of code to analyze. Nevertheless I'm sure
there is an important reason :-).
Despite I
Hello,
can anyone show me how to manage that
I can do the following: under out_put there is an
ArrayList of OutDataForms that take the records of
a ResultSet.
logic:interate id=myForm
name=out_put
scope=request
type=org.apache.struts.example.OutDataForm
bean:write
If not, I'll make them available here. Keep in mind that this is only
chapters 3 and 4 to begin with and get this started. They are Overview of
the Struts Framework and Configuring the Struts Application. Others will
following accordingly.
Chuck
At 12:00 PM 4/11/2002 +0530, you wrote:
will
You can not nest tags in Struts. What you can do is do something like this:
html:link page=/select.do paramId=species paramName=myForm
paramProperty=spec/
Another note, using page is not recomended, it is better to define a forward
in your Struts-config.xml and use forward instead of page.
this is a JSP limitation, not a struts limitation.
Hopefully Struts will soon be integrated with the upcoming standard tag
library which will give us a powerful expression evaluator to use in tag
properties
[EMAIL PROTECTED] 04/11/02 09:14am
You can not nest tags in Struts. What you can do
Hi there.
I've experienced the problem which looks very similar to
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2039 (has fixed status).
If my Action forwards request to another action - I get
javax.servlet.ServletException: Multipart data doesn't start with boundary
at
Hi,
a very newbee question, I know.
Can one Action be assoziated with
more ActionForms? like:
action path=/needMore
type=orgNeedMoreAction
name=a_Form
name=b_Form
name=c_Form
scope=request
validate=false
/action
I am sure
Hi,
Can we have multiple forms refering to only one action form ?
e.g Say I have two links. On clicking the first link we enter some data and submit the
page, by clicking on the 2nd link. A new form pops up, so I enter the new data and
click the first link , so now wat isee is that the
Your problem is that when you call the jsp where you're form is,
struts is creating a form. Per default this form is only in the request.
This means if your target action is finished the form is not available
any more.
What could help is to put the form in the session, but you have to be
aware
Hi,
My application requires to have more than 1 property file. How ca I go abt it ??
'coz in the web.xml we can specify only one file @ a time. How can I have a
multi-lingual application running on my server ???
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Hi,
In our action classes we simply define a LOG variable
/** Logging class */
private static final Category LOG =
Category.getInstance(LoginAction.class);
and use that in the code to do LOG.debug, LOG.error etc.
Like I said, we will be moving to the Logger class some time soon.
Hope
Thank you,
I tried it but an ServletException told me:
Cannot find bean myFrom in scope null
Everything was put into request scope, so
at the moment it is displayed, myForm should
still be alive.
Any idea?
Wolfgang
this is a JSP limitation, not a struts limitation.
Hopefully Struts will
Which version of Struts you are using?.
The message 'attribute indexed invalid according to the specified
TLD'---means that
the tlds you are using does not support this attribute.
Indexing text fileds will not work with Struts 1.0.2. Use Struts1.1b. And
the value for
the property 'indexed' is
No, but I'll find out.
-Original Message-
From: John Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 9:07 PM
To: Struts Users Mailing List
Subject: Re: New Site
Do you know which content management solution they switched to that works
with Struts?
- Original
Hi,
Tomcat3.2.3+JBoss2.4.1 on JDK1.3.1_01 on SuSE7.2 (2.4.13)
Struts1.0.2
I am getting the following error message on startup of my
containers(only happens with 'tiles-doc.war' in tc/webapps):
.. startup of JBoss .
[Default] Starting tomcat. Check logs/tomcat.log for error messages
Apologies for the somewhat newbie-esque nature of this post, but I hope
you can clear up some confusion:
I'm developing my first struts application. In theory it's very simple
(at least, I could write in in no time in perl!). The key elements are:
- User creation / login / session tracking
The bean on the GUI has to follow naming conventions, but thats
not the bean used to perform the business logic.
For that bean means only an own java class to seperate the
business logic from the gui(action,jsp).
Partially you can prepare your data in the action classes, but
the normal business
Sorry what i forgot to say, the business logic i meant is
mainly checking database, adding database entries and so on,
not changing the values or building a value object. This should
be done in the action
-Original Message-
From: Ric Searle [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
for a good tutorial on javabeans visit the site
www.pdf.coreservlets.com
this is a book available on-line in pdf format and the chapter on
javabeans (chapter no -13) is really good ( does not talk in gui context ),
i hope this helps you and think that for a start on javabeans is really
good.
I'm writing an application which requires multiple get methods.
e.g. In my JSP file I'll have the following
html:text property=factor1 size=45 readonly=true/
There are 18 of these each requiring a getFactor#() call in my bean. This
isn't very efficient but I really can't see any other way of
I have never tested it with text fields only with multiboxes but should also
work.
Implement a getter/setter like this
public String[] getFactor(){}
public void setFactor(String[]){
//splitting String
}
Then define factor as property and struts should automaticly
create a string[] and
I actually have gotten this to work, but I don't understand why I had to do
what I did to accomplish this.
To review... I wanted to insert a layer of abstraction between
org.apache.struts.action.Action and my web application's various
instantiations of Action.
IE:
MyAction subclasses
They are; why do you think they aren't in your case?
And perform() is deprecated (even if the Struts team has not updated the
JavaDocs); use execute() instead. :-)
Mark
-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 8:04 AM
To
It's message-resources. I think that yoy're missing the s according to
the error message.
Chuck
At 12:16 PM 4/11/2002 +, you wrote:
Hi,
Tomcat3.2.3+JBoss2.4.1 on JDK1.3.1_01 on SuSE7.2 (2.4.13)
Struts1.0.2
I am getting the following error message on startup of my containers(only
How to use DateTime custom tag library with struts ActionForm ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi guys,
this one is for the Websphere GURUS!!!
I'm running Websphere 4.0 Advanced single server with struts 1.1b1... or
at least trying to...
After digging more into the problem, I found out that the
default_stderr.log file tells me that the exception being thrown is
NoClassDefFound
Hi,
I need a horizontal main menu and after clicking an item a submenu which
shall be shown in additional under the main menu.
The selected items in the main menu and later in the submenu (and maybe in
a third level) shall be highlighted like the tabsLayout Example from
struts-tiles.war.
But in
Hi,
I know this is a little bit off-topic, but I'm sure some of you does have a
solution for my problem.
I use the following piece of code within my jsp to generate excel files:
%
String format = request.getParameter(format);
if ((format!=null) (format.equals(excel))) {
While I agree that all this work should be done during the action, the
code that implements your business logic shouldn't be directly in the
perform method of the action object. It should be in other objects that
you call. This provides for re-use of the business logic and seperation
Just curious if anyone has suggestions on how to start debugging this
problem: Using struts1.1beta under oc4j container my pages come up and
submits to actions forward correctly. The problem is the server side
validation using the validator stuff does not work. I'm not getting
errors in the
Anyone knows of any documentation on the exception handling feature in
the 1.1 beta release?
I was looking at it to (maybe) substitute our internal exception handling
mechanism, but I found very little documentation (mostly the comments in
the DTD and the short Javadoc in the
Mike,
There are examples with the latest 1.1beta release file on
sourceforge.net:
http://sourceforge.net/projects/struts-menu/
I made an announcement about supporting CoolMenus3, but I didn't put out
a release file containing the new changes. Sorry if that confused
anyone.
There are two
I think this depends on the set-up that you have.
the pattern you are referring to is business-delegate
and that is exactly what it does -- delegates.
the book ejb design patterns talks about the pros and
cons.
for us -- it doesn't make a lot of sense.
Sandeep
--- Jay sissom [EMAIL PROTECTED]
FYI, the content management solution at www.jcorporate.com is based on
Struts and Expresso and works with WebLogic. It is also available with full
source.
--
Sandra
-Original Message-
From: John Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 9:07 PM
To: Struts Users
Chuck Cavaness wrote:
It's message-resources. I think that yoy're missing the s
according to the error message.
Chuck
At 12:16 PM 4/11/2002 +, you wrote:
Hi,
Tomcat3.2.3+JBoss2.4.1 on JDK1.3.1_01 on SuSE7.2 (2.4.13)
Struts1.0.2
I am getting the following error message on
I apologize if this is a repeat question, but I couldn't locate an
answer to this mailing list archive, nor via google to any of your docs
or other FAQs.
I'm using JBoss 3.0.0 with embedded Jetty. Just about everything works
with our web application since we ported it to JBoss from Weblogic.
That's one of the most requested Chapters for me to put out and I'm working
hard to get that one out next. In the meantime, take a look at the
findException() method in the ActionMapping class. This is where it loops
up the superclass chain of the Exception class looking for a
ExceptionConfig
I may be way off base here, but I think that for hash
maps and stuff you can code using the html tags, but
instead of using the dot notation you use the key
customer.address --- normal way we need a get on
customer and get/set on address
customer.map(mapKey) -- hash map way
I don't know the
Pawel,
I appreciate the suggestion, but I couldn't get it to work somehow. It keeps coming
back with compile errors that java.lang.String is already defined. I put exactly the
same bean:define tag, albeit with a different value outside and above the logic:equal
tag.
Which struts are you
do you have a getFundsVerified method on your
form-bean?
--- [EMAIL PROTECTED] wrote:
Hello,
The html:radio element in my form can't find its
property, yet other
elements don't have this trouble. For instance,
this works
html:text
property=fundsVerified
does this work for weblogic.jspc -- I noticed that the
individual directories (if there are pages in
subdirectories) get compiled to the root directory (or
${jsp.dirs} in this case.
what to do in this case?
Sandeep
--- Galbreath, Mark [EMAIL PROTECTED] wrote:
In build.xml:
target name=jsp
Alas, yes.
-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 10:33 AM
To: Struts Users Mailing List
Subject: Re: html:radio can't find bean property
do you have a getFundsVerified method on your
form-bean?
--- [EMAIL PROTECTED] wrote:
Hello,
Right now, I have an applet whose CODEBASE attribute looks like this:
codebase=classes/private-banking@private-banking/
This is because the applet is in
$WL_HOME/config/mydomain/applications/private-banking.war:WEB-INF/classes.
According to the Weblogic instructions, this is how you
Could it be the getter and setter of the radio element
are not returning boolean and have a boolean parameter?
-Original Message-
elements don't have this trouble. For instance,
this works
html:text
property=fundsVerified id=fundsVerified
value=NO/
but
Subject: Re: New Site
From: Vic Cekvenich [EMAIL PROTECTED]
===
I do a roll you own RSS based.
Vic
John Jones wrote:
Do you know which content management solution they switched to that works
with Struts?
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts
Ok, I just read this in the api
An Action is an adapter between the contents of an incoming HTTP request and the
corresponding business logic that should be executed to process this request. The
controller (ActionServlet) will select an appropriate Action for each request, create
an instance
Is dataList an instance variable or is it defined within your Action's
perform() or execute() method?
-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: ActionBeans
Ok, I just read this in the
The bean's getter and setter look like this:
public void setFundsVerified(String argFundsVerified){
this.fundsVerified = argFundsVerified;
}
public String getFundsVerified() {
return this.fundsVerified;
}
Should the property's type be boolean instead of String?
Working to many hours, not enough thinking.
Sorry For the question.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 1:45 PM
Subject: RE: ActionBeans
Is dataList an instance variable or is it defined within your Action's
perform() or
using declarative security in the struts config -- you
can specify which forward to go to when a specific
error occurs within an action.
new to struts 1.1
--- Maturo, Larry [EMAIL PROTECTED]
wrote:
We also follow the second approach, and propagate
all the exceptions from the business beans to
I have a bean called adminMap(a java.util.HashMap) defined that contains the
keys id, username, password. I also have a DynaActionForm named form
defined in the struts-config.xml as
form-bean name=adminForm
dynamic=true
Thank you Oliver,
that sounds great. I have to handle two forms per Action.
One form that acts as a designForm which tells the next JSP-side
how to look like, depending on the roles of the currunt user
and a workhorseForm to handle the data the user submits or
wants to receive.
I suppose the
I've read through the archives and I'm still confused about what tag
to use (using Struts 1.0 ) to determine if a form bean property is
null and also for determining if it might just be an empty string?
Also I was wondering if there is some nice tag documentation for just
1.0 tags like there is
Hi,
Forms are associated with the name of mapping in the mapping scope, either
request or session. If your second page is result of a forward of the action
defined by the mapping, with correct scope, and the same name of mapping, it
would be automatically populated by struts.
Chen
hi all,
I have a form that can have N number of images. So in essence it's like the
Monkey struts example by Arron Bates except where he has bananas, i have
images.
The problems is that I have to associate a FormFile for each image, since
each image can be updated (hence an image upload is
There has been a lot of activity over on the Velocity list for the past
couple of months working on a Velocity/Struts integration. Some people
are already using it, but it isn't released yet. They have been working
on Struts API to the presentation layer as part of the effort to allow
for
Hi,
I am new to struts. I want to use Struts' Digester to parse my xml file. I
want to know if the
digester can set the attributes of the xml element to the fields in the
corresponding class whose type are other than string. Let's say,
my_xml id="01" name="foo"/
and my class has a field like:
To give a concrete example of what I want to avoid...I've tried
various tags for 1.0 but I'm not sure what does the trick. I want to
do the following using tags instead of scriplets...
% if ( payForm.getVoluntaryReason() != null
!payForm.getVoluntaryReason().equals() ) { %
TRTDVoluntary
That would have to happen in the bean the String is being passed to. Go
ahead and receive the String and set it to an integer something like the
following:
You should read the spec on bean usage. My solution may not be standard and
may break some containers. But, I'm not sure of any other way. It
Try logic:present
logic:present name=payrollChangeForm property=voluntaryReason/
TRTDVoluntary Reason:/TDTDbean:write name=payrollChangeForm
property=voluntaryReason//TD/TR
/logic:present
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11,
Use the logic:notPresent or the logic:present tags. Make sure you are
functioning in a proper MVC fashion. I am assuming that payForm is a bean.
you can access a beans property stored in a scope to verify whether or not
to reveal a portion of jsp.
Brandon Goodin
Phase Web and Multimedia
P (406)
Check out the link
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image
This talks about the input type=image tag that is part of Struts. However,
without looking at the source code to be certain, the documentation looks
like only Alt text is localized rather than the image source
I would point out that if you look in source for
org.apache.struts.action.Action execute() is not defined on the Action class
in 1.0.2. I expect that this is a 1.1 thing.
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 5:22 AM
To:
There is an article at javaworld that compares Struts to Cocoon and proposes
a model that uses both:
http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html
Cheers,
Dave
-Original Message-
From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002
The good thing with Struts is that you can define multiple text fields with
the same name and the getter/setter method to have param/return as string
array.
Struts will populate the array with the text fields.
cheers,
victor
On Thu, 11 Apr 2002 21:41, you wrote:
I'm writing an application
Is there a version of the nested tags and struts that supports List in nested:Iterate
instead of Object[]?
One thing that has worked for me in the past is to retrieve the paths to
your images from a message bundle. That bundle should be locale specific,
such that your en_us images can differ from your en_uk images.
-Ryan
-Original Message-
From: Scott Edwards [mailto:[EMAIL PROTECTED]]
Here's what I did to internationalise a logo image for english french and
spanish versions:
1 Created/acquired images logo.gif, logo_fr.gif, logo_es.gif, etc
2 In the JSP -
img src=bean:message key=header.image / border=0
3 In the default (English) properties file:
Probably the best answer would be to look at JSTL (standard tag library) to
do this.
Otherwise I developed a set of tags to do If/Else/ElseIf/And/Or processing
which Ted Husted posted on his site. Those tags need a ThenTag but I have a
new version that no longer requires the then and you could
There is javadoc documentation for the DynaBean class in the Jakarta Commons
project (beanutil group). As for examples, I just experimented until I got
it working. Here's some code from an application I'm building:
DynaProperty[] dynaProps = null;
Vector dynaPropNames = null;
dynaPropNames = new
Hello all,
I am confused with Struts' way of handling requests and controlling the
flow.
Say I have one form that handles 3 types of user events: either the
user submit her form (submit btn), either she cancels her work or she
wants to preview the result of her work. Suppose the actionForm
Have you gotten the DynaValidation stuff working. I filed a bug on it. But,
I don't know if I am doing it correct or not. If, yes, then can you spare a
copy of code.
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
-Original
Thanks I appreciate your input. I was hoping more or less to get
pointers to some tools that allows me to apply a transparent image to a
text that is localized. The designer don't have to spend that much time
in designing 100's of pic
-Original Message-
From: Todd Pierce [mailto:[EMAIL
In your myAction class you don't just return success you return to wherever
you want to return, ie
if (condition1)
{
return mapping.findForward(condition1);
}
else if (condition2)
{
return mapping.findForward(condition2);
}
return mapping.findForward(errorPage);
In you
The multi-app functionality still uses a single servlet - the apps are
logically, but not physically, separate. Also, Struts figures out the
mappings, so you only register a single servlet mapping.
Here is something closer to what you want for the Struts configuration:
servlet
I'm not exactly sure what you mean by incorporate user authorization into
selected a 'forward' view mapping. If you want container-managed security,
just add it to your web.xml like so:
security-constraint
web-resource-collection
web-resource-nameAdmin/web-resource-name
Gif89Encoder can read and write gif files.
You could read in your transparent images, and paint the required text and
then write them out again.
http://jmge.net/java/gifenc/
Niall
-Original Message-
From: Emmanuel Bridonneau [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2002 02:05
Subject: Re: Configuring sub-applications
From: Bill Wohler [EMAIL PROTECTED]
===
[EMAIL PROTECTED] writes:
init-param
param-nameconfig/subapp1/param-name
param-value/docroot/subapp1/struts-config.xml/param-value
/init-param
init-param
- Original Message -
From: Struts Newsgroup [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 7:55 PM
Subject: Re: Configuring sub-applications
Subject: Re: Configuring sub-applications
From: Bill Wohler [EMAIL PROTECTED]
===
[EMAIL PROTECTED] writes:
- Original Message -
From: Rick Reumann [EMAIL PROTECTED]
To: Struts List [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 1:09 PM
Subject: What tag in struts1.0 for this?
I've read through the archives and I'm still confused about what tag
to use (using Struts 1.0 ) to determine if
You can also setup the same image files and resource file entries, and use a
tag like this (including an internationalized ALT value):
html:img pageKey=header.image altKey=header.image.alt border=0 /
Note that the header.image value should be context-relative. Struts will add
the context path
[I sent this to struts-dev a couple of days ago. So far, no
response. Gonna try once more, to struts-user and struts-dev together. If
no response *this* time, then I'll assume the Struts community is pretty
much uninterested in this idea.]
One of the difficult things in open source
At 09:20 AM 4/11/2002 -0400, allan li wrote:
Hi everyone,
Could anybody give me some ideas about the comparison, relationships
between Cocoon2 and Struts, and how to use them together for a single web
application?
Cocoon and Struts have a lot of overlapping functionality, but different
86 matches
Mail list logo