Hi
I am working on a web application with Struts and Jasper Reports.
Jasper Reports requires common-digester.1.7.jar ( that is a latest version of
struts's common-digester.jar), when i use this file, i get the following
exceptions
javax.servlet.jsp.JspException: Cannot find ActionMappings
Niall Pemberton a écrit :
What you have should work - but its always going to give an error unless
statut is set to Doctorant.
Yes! It's what i want.
Are you sure statut is in your bean and getting populated?
Yes, because when the error happen (every time with any statut value)
i
My problem is fixed!
It was a stupid mistake. Excuse me for disturbing the list but the
discussion opened my eyes. The type of statut was String[] and not
String :-[ . So, I have a brand new question: how to valid financement
when one of the value of statut is set to Doctorant? Is validwhen
In addition datagrid and displaytag, is struts-layout a widely used tool?
Any other open source tools to display a grid or something like this?
Thnx
2005/9/27, David G. Friedman [EMAIL PROTECTED]:
How about the Pager Taglib from JSPtags.com? Their examples show radio
buttons to get the
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user edits a client. I have just recently upgraded
to Struts download 1.2.4.
This is what I did before which worked:
In my action class I created the form then populated it with the values
from
Hi,
Did you put the new form into session or into
whatever-the-scope-of-the-form-must-be ?
If not, the error may come from that
Regards,
Cedric
[EMAIL PROTECTED] wrote:
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user edits a client. I
-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Skickat: den 29 september 2005 11:26
Till: user@struts.apache.org
Ämne: prepopulating jsp page
Hi,
I am trying to pre-populate my JSP page with the values returned from
the database when a user
Do this in your action:
CreateClientForm updateForm = new CreateClientForm();
// populate the bean here
// then
form = updateForm;
When you say
form = updateForm;
what is my variable form of type?
-Original Message-
From: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Skickat: den 29 september 2005 11:38
Till: user@struts.apache.org
Ämne: RE: prepopulating jsp page
Do this in your action:
CreateClientForm updateForm = new CreateClientForm();
// populate the
Hi Bryon,
I had used once log4j with Tomcat server.
You can give absolute path for log file in log4j.properties.. like
log4j.appender.struts.File=d:/MyApplicationLogs/struts.log
so atleast you don't need to find log file .
swapnil Patil
On 9/28/05, Borislav Sabev [EMAIL PROTECTED] wrote:
I seen to be very fast and erronous today, try this:
public ActionForward execute(
ActionMapping actionMapping,
AtionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws Exception
CreateClientForm updateForm =
In your struts-config.xml, add a
form-beans section
form-bean name=createClientForm
type=com.medina.web.forms.CreateClientForm /
/form-beans
Then in your action,
if (form != null)
{
localvariable = (CreateClientForm)form
}
now you can build your form bean properties as localvariable.set
I cannot do the following
CreateClientForm updateForm = (CreateClientForm)actionForm;
Because the action is called from a search page and has a different form coming
in. Thus when I try to reassign it I get a class cast exception.
I also tried the first way you mentioned, but that did not
Again doing this I think will throw a class cast exception.
localvariable = (CreateClientForm)form
I already have the form beans elements in my config.xml
-Original Message-
From: Vijaya S [mailto:[EMAIL PROTECTED]
Sent: 29 September 2005 10:49
To: Struts Users Mailing List
Subject:
Ok, so you have a different formbean coming in to this action:
action path=/updateClient
type=com.medina.web.action.UpdateClientAction
name=createClientForm
scope=session
The bean named createClientForm is NOT of class CreateClientForm?
If you have a
-Ursprungligt meddelande-
Från: Ekberg Mats KONSULT [mailto:[EMAIL PROTECTED]
Skickat: den 29 september 2005 12:02
Till: 'Struts Users Mailing List'
Ämne: SV: prepopulating jsp page
Ok, so you have a different formbean coming in to this action:
action path=/updateClient
It seems I need to reformulate my answer.
You need to CREATE a form with data for your NEXT page for populating
the fields.
You can't retrieve the form from the actionForm parameter of the action.
So you create in the execute function a form like this :
CreateClientForm updateForm = new
Oups, sorry this is the way you should do it:
CreateClientForm updateForm = (CreateClientForm)form;
// populate the bean here
updateForm.setXXX = blah blah;
And you must have the bean in session scope (as you have)
-Ursprungligt meddelande-
Från: [EMAIL PROTECTED]
Yes, the flow is like this:
My struts config has this action for the search page:
action path=/actionClient
type=com.medina.web.action.ActionClientAction
name=actionClientForm
scope=session
input=/searchClient.jsp
forward name=edit path=/editClient.jsp/
Hi all
I have problem with RequestProcessor. I added this statement to
struts-config.xml:
controller processorClass=com.abaco.rekrut.CustomRequestProcessor /
where CustomRequestProcessor is:
//--
public class CustomRequestProcessor
Hello,
I am using displaytag to display a table of records. I am able to add a
checkbox as the first column using:
display:column
html-el:checkbox property=checkbox_name value= /
/display:column
The problem is that I am not able to set a unique value for each checkbox. I
am having a
Your original question was on how to survive without the name-attribute in
the html:form tag.
The answer is that the later versions of taglib/struts dont allow you to use
the same Action-class on different ActionForms by changing the
name-attribute (since it has been removed).
You are now forced
Laurie Harper wrote:
Bryon Lape wrote:
hm strange ... in this case I don't know what ot tell you ...
the file name should be struts.log
may be somebody who is more familiar with log4j should give you an idea
...
borislav
Let me do a search on the whole harddrive for that file name.
make
Sławek Tuleja [EMAIL PROTECTED] wrote on 09/29/2005 06:22:45 AM:
Problem: I got this error:
SEVERE: Servlet /RekrutApplication threw load() exception
javax.servlet.UnavailableException: TilesPlugin : Specified
RequestProcessor not compatible with TilesRequestProcessor
Here's the solution:
Hello:
I have a question about how to setup a situation I have. I want to
have a jsp page that has a variable number of text fields on it, named
qty1, qty2, ... qtyN where N is some unknown number. I tried to set it
up and use no form bean at all so I could just pull them from the
You could write lots of jsp code to handle it:
logic:present name=qty1
html:text name=qty1/br
/logic:present
logic:present name=qty2
html:text name=qty2/br
/logic:present
logic:present name=qtyN
html:text name=qtyN/br
/logic:present
As you can imagine this is pretty silly.
In your
Hi Vijay,
I am wondering why do you want unique value in a check box. A checkbox has
the values true or false.
Regards
Richard
-Ursprüngliche Nachricht-
Von: R.Vijayaraghavan [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 29. September 2005 12:05
An: Struts Users Mailing List
XSnapshot 1.1 beta was just released to SourceForge.
http://xsnapshot.sourceforge.net/
This is an XDoclet module that helps you generate ActionForms from POJOs
with functionality for data binding/conversion between the two. You can
use it for a lot of other things besides ActionForms too,
Yes, you absolutely can use Struts with ActionForms. You will have to
take responsibility for getting values out of request, and for
validatation, etc., but the answer is yes.
However, before you do that, have a look at this page:
http://struts.apache.org/faqs/indexedprops.html
If you want to
Niall Pemberton a écrit :
What you have should work - but its always going to give an error unless
statut is set to Doctorant.
Yes! It's what i want.
Are you sure statut is in your bean and getting populated?
Yes, because when the error happen (every time with any statut value)
i display
I am beginning to believe that iPlanet is the root of my problems. I was
successful in getting iPlanet to use the 1.4 version of the JVM, but it
still does not resolves the MessageResources properly. In the debug log,
I do see what looks like it is reading the files, but I do not see a
found
I didn't mean for this to become debate. I was stuck with a legacy app
that required storing images in the db.
With the help of this list and some digging I think I came up with a
relatively elegant solution (subject to expert critique which is
welcome). I don't know if attachments are allowed on
You can post them on the Struts wiki:
http://wiki.apache.org/struts/
Niall
- Original Message -
From: Braun, James F [EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 3:15 PM
Although I'm new to struts I've collected several of these how-to
articles which address problems I've
The only question I would ask is why your storing it in the ActionForm?
If it's request-scoped, that means you are reading the image from the
database with each request (or from server cache I suppose), which is
something I would suggest avoiding if possible. If the form is
session-scoped (which
I have no problem using Commons Digester 1.7 with the latest version of
Struts (1.2.7).
Looks to me like there is another reason why its not working - check you're
logs.
Niall
- Original Message -
From: Kashif Inam [EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 7:46 AM
I am
German sense of humor, he-he. Vijay, have you already read DisplayTag
manual? It is a well-written document, you will need no more than 30
minutes to start with decorators.
Michael.
On 9/29/05, R. Markham [EMAIL PROTECTED] wrote:
Hi Vijay,
I am wondering why do you want unique value in a
Braun, James F wrote:
I didn't mean for this to become debate.
Yeah, good luck with that.
*lol*
As you've discovered, some people are more interested in being uppity
than actually helping with the core question :/
byte[] bytes = new byte[1024*1024]; // some maximum size
On 9/29/05, Braun, James F [EMAIL PROTECTED] wrote:
With the help of this list and some digging I think I came up with a
relatively elegant solution (subject to expert critique which is
welcome). I don't know if attachments are allowed on this list so I've
included the how-to I write up for
On Thu, September 29, 2005 11:57 am, Dave Newton said:
Oh god remove the comments. Bottom line: if someone can't figure out
what's going on here w/o relying on the comments then they're fired.
Well now, *this* is a good way to go off-topic in a hurry Dave! :)
I personally feel just the
Guillermo Castro wrote:
Contrary to popular belief, tiles attributes are not propagated to
jsp's defined as attributes. It means that _header.jsp doesn't have
any information about a tile attribute 'title', thus ignoring the
tiles:getAsString/ tag (when you remove the ignore=true, struts is
--- R. Markham [EMAIL PROTECTED] wrote:
Hi Vijay,
I am wondering why do you want unique value in a
check box. A checkbox has
the values true or false.
I actually want to see which all checkboxes have been
checked. The values are actually primary key values
which can uniquely identify all
On 9/29/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
For instance, take this line:
String s = s1.toUpperCase().trim().replace('A', '-');
Now, that's pretty straight-forward. But, if someone added a comment:
// Convert s1 to all upper-case, trim whitespace from both ends and
replace all
Michael Jouravlev wrote:
simpler and generic, like a servlet with image name as parameter.
+1
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sep 29, 2005, at 11:22 AM, Graham Reeds wrote:
Is there any plans to extend tiles so the attributes are propagated
to jsp's defined as attributes for 1.3x?
I thought about that last night as I was working up an example for
your question. It would be cool if you could pass a Tiles
Does anyone have a preference between BEA Weblogic Workshop and
Eclipse 3.1 using TomCat
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think you have to use a javascript function which is called when one of
the checkboxes is clicked. There is an example in the display tag
documentation how to produce row number. Look at the documentation about
implicit objects.
Regards
Richard
-Ursprüngliche Nachricht-
Von: vijay
We had a similar requirement. We solved it in the same way. We
had the special image requests served by a servlet directly.
The servlet read the information from the database (also Oracle)
and streamed out the bytes to the user.
The DBA did tweak the database to perform moderately well
(Oracle
You need your ActionClientAction action to create a new CreateClientForm
instance for the next page to work with. It can be quite seperate from
the ActionClientForm instance that's already passed in.
In other words, don't try to cast the form that's passed into the
ActionClient action to
Hi Michael,
it is not German sense of humor, because I really didn't understand what
Vijay wanted. You are right it took me longer than 30 min to grasp the
usesage of table decorators. I would have preferred an example in the
documentation of display tag for the problem described by vijay.
I am trying to upgrade an old Struts 1.0.2 application to a current
version of Struts, but I'm finding some classes are not available:
- org.apache.struts.action.ActionMappings
- org.apache.struts.action.Action.ERROR_KEY
- org.apache.struts.digester.Digester
- org.apache.struts.digester.Rule
-
Same is here. I am trying to upgrade from 1.1 to 1.2.4, but can not find
any documentation.
Some guidelines would be very helpful.
Thanks.
-Original Message-
From: Bob Paige [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 4:20 PM
To: user@struts.apache.org
Subject: upgrade
R.Vijayaraghavan wrote:
Hello,
I am using displaytag to display a table of records. I am able to add a
checkbox as the first column using:
display:column
html-el:checkbox property=checkbox_name value= /
/display:column
The problem is that I am not able to set a unique value for each
Carl Smith wrote:
Can you describe in which case we should be using SwitchAction.java in struts?
Can you offer some sample code? Is this used for multiple submit buttons (save,
delete, update, cancle buttons for example) on one jsp page? Thanks.
I'm not sure what this has to do with
From: Ainbinder Marina [EMAIL PROTECTED]
Same is here. I am trying to upgrade from 1.1 to 1.2.4, but can not find
any documentation.
Some guidelines would be very helpful.
http://wiki.apache.org/struts/StrutsUpgrade
Also check the release notes:
Thanks a lot!
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 4:39 PM
To: Struts Users Mailing List
Subject: Re: upgrade from Struts 1.0.2
From: Ainbinder Marina [EMAIL PROTECTED]
Same is here. I am trying to upgrade from 1.1 to
Is there a reason I am losing my request parameters when returning
validation errors to a multipart form page?
I have a simple struts form. It has a few text fields and a file field. The
enctype is multipart/form-data on my form. I validate in the actionform's
validate method. If the text
I want a struts action class to download xml file .I
do not want to use Struts DownloadAction because I
have a super class called AbstractActionBase which
extends to struts action class and all my action
classes extends to this AbstractActionBase.
For downloading a file I am using normal
Wendy Smoak wrote:
From: Ainbinder Marina [EMAIL PROTECTED]
Same is here. I am trying to upgrade from 1.1 to 1.2.4, but can not find
any documentation.
Some guidelines would be very helpful.
http://wiki.apache.org/struts/StrutsUpgrade
Also check the release notes:
On 9/28/05, David Bowers [EMAIL PROTECTED] wrote:
I am investigating using struts on an upcoming project, and I will need to
figure out a way to port some of my custom struts security preprocessing
to
Shale. In my most current Struts implementation, I use a chain to test
several attributes
On Sep 29, 2005, at 4:33 PM, Bob Paige wrote:
This was a much quicker response than I anticipated!
You'd be surprised how many people are trying to upgrade from 1.0.2 :-)
Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I agree with Frank, we all started with Java/Struts somewhere and back then the
more
comments in the code made it so much easier for us to understand. The people
who
come after us will also be learning, let's make it easier for them.
The only time you should reduce comments is when your
Murray Collingwood wrote:
I agree with Frank, we all started with Java/Struts somewhere and back then the more
comments in the code made it so much easier for us to understand.
If you're documenting functionality, I totally agree.
If you're commenting inputStream.read(xxx) with read in the
I have a collection of cards. and I want to create a table fo thos
cards, but if I get to a card where foo=bar, then I want to paint that
row as a form with updateable fields and 1 submit for just that row.
How would I do this please?
--
Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
I'm having a problem where Struts has begun 'hanging on' to Web browser
requests. I'll call up an Action and the page comes back pretty instantly,
as you'd expect, but the little 'still-downloading' image keeps whirling for
about 30 seconds. I've tried to track this down thorough my debugger
Yes and no.
If it's his production code no, but if it's a how-to or
something that goes in a wiki, it should leave no details
uncovered.
It is better to be over-documented, than under. Also, I would
use the full package name on objects. Nothing is more fun than
trying to figure out an
Let me ask this question... what's the HARM in read in the bytes?
Murray, have you ever actually had a compiler choke on a source file
because of comments?!? *That* might be the harm indeed! :)
Frank
Dave Newton wrote:
Murray Collingwood wrote:
I agree with Frank, we all started with
Frank W. Zammetti wrote:
Let me ask this question... what's the HARM in read in the bytes?
Having comments that are superfluous:
(a) still requires brain processing, and my brain is in short supply :/
(b) obscures what's actually being done (see note below)
(c) requires maintenance
Note: If
Will the following work?
html:form ...
logic:iterate...through collection
logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
/logic:equal
logic:notEqual property=foo value=bar
jsp:getProperty property=foo/
/logic:notEqual
/logic:iterate
Norris Shelton wrote:
It is better to be over-documented, than under. Also, I would
use the full package name on objects. Nothing is more fun than
trying to figure out an object when it's in more than one
package (like ALL the client certificate code) or it's in some
library that you have
On 29 Sep 2005 at 19:11, Frank W. Zammetti wrote:
Murray, have you ever actually had a compiler choke on a source file
because of comments?!? *That* might be the harm indeed! :)
There were a couple of times when I had to consider the cost of disk space vs
the value
of a program. When the
In my defense:
a) I'm new to struts
b) It's a How-To document to be read by others in our team, or myself at
3am when not all neurons are firing at their best.
I'm reminded of the guide on Mt Everest who said, If they need my help,
they shouldn't be here! That was the year 17 people died.
I
Braun, James F wrote:
In my defense:
No need--we go off on these dumb tangents (well, _I_ do, anyway) all the
time. It's just one of those stupid religious flamewars.
I'm reminded of the guide on Mt Everest who said, If they need my help,
they shouldn't be here! That was the year 17
Thanks so much!
Murray Collingwood wrote:
Will the following work?
html:form ...
logic:iterate...through collection
logic:equal property=foo value=bar
html:text ...display in form fields/
html:submit .../
/logic:equal
logic:notEqual property=foo value=bar
jsp:getProperty
To all,
I am trying to integrate PHP into a struts/tiles website. The website is
running fine, and has been.
When I put the month.php file in my struts.xml file, like this,
definition name=site.index.page.monthf extends=site.index.page.online
put name=title value=Calendar /
put name=body
I'm just getting back to looking at my lazy loading problem and would like
to see if I am understanding things correctly. While not strictly Struts
related (I do use Struts in this app) I am hoping that someone else on this
list has gone down the same path as I am attempting.
My web.xml has the
Hi Martin
I'm not using spring, not sure if I should be. I recently tried writing an app
using
Hibernate and had some great experiences - it's pretty cool in the amount of
code and
development time it saves me.
Having said that I'm struggling with the same problem. I open the Hibernate
Forwarding to the user list
I'm a pgp novice, can anyone help with this? Running pgp on windows, it all
seems fine to me - it verifies the struts-1.2.7.zip.asc file no problem, but
then my key is already in my key store.
Niall
- Original Message -
From: Bailey, Mike [EMAIL
On 9/29/05, Niall Pemberton [EMAIL PROTECTED] wrote:
Forwarding to the user list
I'm a pgp novice, can anyone help with this? Running pgp on windows, it all
seems fine to me - it verifies the struts-1.2.7.zip.asc file no problem, but
then my key is already in my key store.
snip/
Looks
Thanks Rahul,
I don't always trust me either :-)
Niall
- Original Message -
From: Rahul Akolkar [EMAIL PROTECTED]
Sent: Friday, September 30, 2005 2:06 AM
On 9/29/05, Niall Pemberton [EMAIL PROTECTED] wrote:
Forwarding to the user list
I'm a pgp novice, can anyone help with
Actually, if you are going to build a servlet with this capacity, it
should handle all such resources, not just images. You can, e.g.,
make big savings with using these for CSS, etc.
On 9/29/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
On 9/29/05, Braun, James F [EMAIL PROTECTED] wrote:
I think the idea is to make code clear. If you cannot possibly make
the code clear without comments, then put the comments into the code.
Gratuitous comments are counter-productive.
On 9/29/05, Dave Newton [EMAIL PROTECTED] wrote:
Frank W. Zammetti wrote:
Let me ask this question... what's
This is directly contrary to best practices. What really would have
helped in Struts would have been if someone had discussed some of the
naming conventions prior to committing them. They are particularly
bad in Struts. However, best practices is to make the code clear
first. If that is not
Lord, if there were gigabytes of comments that would be bad.
Horrible. A disaster. Something to cry about. However, there are
not. So that is good. Very good. Something to smile about. If
there is anything like a whole bunch of comments, that is the sign of
an amateur and the same is true
Reading through the Hibernate manual it indicated that by specifying
fetch=join the
related table would be retrieved in the same select statement. I
tried this but got the
same session is closed result. It also said that you could
specify lazy=false and it
would retrieve everything at once,
I have Menu information for my app in the database which I would like to be
able to load somehow when my app server starts up (or app is deployed). This
would be much more efficient than the current method of having each user
load it when they enter the application.
Can anyone suggest how to best
You have a few options. To initialize Spring, you can either use the Struts
plugin or the web app context listener. Once that's done you can either use
a startup servlet or a Struts plugin to load the data and put it into the
servlet context. That way it only needs to be loaded once and is shared
I have a form that contains a bean with a nested collection that I'd like to
prepopulate but I'm having trouble displaying the correct information.. The
output html wiould ideally look like this:
select name = customers
option value=cust1000Jon Doe/option
option value=cust2000Jeff Newworth/option
Hi
I am a complete new user of struts and have joined this group to get
more info on struts. I have heard lots about hibernation. Can any one
direct me to a documentation or someplace where I can get the info about
wat and how hibernation is used.
Thanks
ankit
CAUTION -
http://hibernate.org/ is a good place start. There's also a book called
'Hibernate In Action' published by Manning Publications that might be
helpful to you.
Justin
On 9/29/05, Ankit Pancholi [EMAIL PROTECTED] wrote:
Hi
I am a complete new user of struts and have joined this group to get
89 matches
Mail list logo