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 ge
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 - Disclaime
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:
Jon Doe
Jeff Newworth
Amy Madigan
The ActionForm contains the bean with nested beans and the error m
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
t
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
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 on
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 a
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 pos
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... wh
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:
>
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
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.
Looks g
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 PROTEC
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
ses
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 fo
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,
...the php code comes back to the browser. I can deploy PHP pages no
problem but I can't get it working with S
Thanks so much!
Murray Collingwood wrote:
> Will the following work?
>
>
>
>
>
>
>
>
>
>
>
>
>
> Kind regards
> mc
>
>
> On 29 Sep 2005 at 15:41, Mick Knutson wrote:
>
> > I have a collection of cards. and I want to create a table fo thos
> > cards, but if I get to a card
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 peo
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 nev
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
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 neve
Will the following work?
Kind regards
mc
On 29 Sep 2005 at 15:41, Mick Knutson wrote:
> 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 a
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
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 Jav
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 objec
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 but
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
S
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 th
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 comp
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
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 attri
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:
http://struts.apache
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 s
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 fiel
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 1
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:
http://struts.apache.org/userGuide/release
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 CactusStr
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:
The problem is that I am not able to set a unique value for each checkbox. I
am having a column in the recordset stored in a RowSetDynaClass tha
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 f
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
- or
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.
Regard
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 Creat
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
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 [ma
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]
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 defini
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]
Frank W. Zammetti wrote:
Well now, *this* is a good way to go off-topic in a hurry Dave! :)
I'm sorry, I have a cold. (Marginally obscure Monty Python reference.
Every OT post needs one.)
I didn't mean to start a debate here?
I personally feel just the opposite... the more comments the b
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
> rep
--- "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 iden
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
tag (when you remove the ignore="true", struts is
actually throwing an
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 opposi
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 f
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
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
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 a
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
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'
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
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 thi
> 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 "s
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 s
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, lik
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
Betreff
You could write lots of jsp code to handle it:
As you can imagine this is pretty silly.
In your action form, when preparing the display (ie when you put the text
fields into the
request scope) instead of adding them as separate entries it would be better to
create a
collecti
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
reque
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 sol
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
Your original question was on how to survive without the name-attribute in
the 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 to have a
Hello,
I am using displaytag to display a table of records. I am able to add a
checkbox as the first column using:
The problem is that I am not able to set a unique value for each checkbox. I
am having a column in the recordset stored in a RowSetDynaClass that has the
unique values fo
Hi all
I have problem with RequestProcessor. I added this statement to
struts-config.xml:
where CustomRequestProcessor is:
//--
public class CustomRequestProcessor extends RequestProcessor {
protected ActionForward processActionPer
Yes, the flow is like this:
My struts config has this action for the search page:
This sends the actionclientForm to the actionclientaction class.
This class goes to the db gets the information then forwards to editClient.jsp
which has the action mapped:
> > >
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 PROTECTE
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 Creat
> -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:
>
> > > > > > > > >
Ok, so you have a different formbean coming in to this action:
> > > > > > > type="com.medina.web.action.UpdateClientAction"
> > > > name="createClientForm"
> > > > scope="session"
The bean named createClientForm is NOT of class CreateClientForm?
If you have a bean clas
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: RE:
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 pop
In your struts-config.xml, add a
section
Then in your action,
if (form != null)
{
localvariable = (CreateClientForm)form
}
now you can build your form bean properties as localvariable.set metods.
Vijaya
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
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 = (
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:
> -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();
>// popu
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: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
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 hav
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 t
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 'e
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 validw
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
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 or
90 matches
Mail list logo