Tom Ziemer wrote:
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return the
value beans (dom) from Hibernate to my Struts actions? If I do this,
I'd have to deal with
Marco Mistroni wrote:
In my case I chooseed to have a common interface for DTO domain, and I am
just using BeanUtils to copy Properties between the two (so I save the
hardcoded method copy)
I use in most cases a mapped form i.e. a form with a map and use as well
BeanUtils to copy the
Tom Ziemer wrote:
Hi Borislav,
unfortunately I cannot do this, because I have a rich client and a
(struts-based) web frontend. Consequently, my business layer must load
and initialize all dom objects that are requested, because I cannot
have an open session on my rich client that is using
Chris Pat wrote:
Hi Dave
Okay the code is below. What I am doing is creating
sampleRequest from the action, then calling isAllowed.
The sampleRequest is being successfully made and
persisted in the db. The isAlowed is failing. I got
both working from fine from the command line. I am a
Stanislav wrote:
bean:define id=value name=imeK scope=request /
html:text size=54 property=imeK styleClass=InputTable
value=%=value.toString()% /
Tnx, it works :-)
Alternatively, use an action to populate the form bean.
OK. I try to do this:
ZahtjevZaKreditForm
[EMAIL PROTECTED] wrote:
Hello, I'm currently having a problem with the Struts
org.apache.struts.upload.FormFile.
In particular, I want to upgrade my J2EE-Struts application with the upload
file functionality.
In one of the existing jsp I put this line of code:
html:form action=...
set it
starki78 wrote:
thank you!
I found out the following (part)solution:
this works and calls the dispatch action:
html:link action=/lookupdispatch2?method=nix/
/html:link
this doesn't work:
html:link action=/lookupdispatch2 paramProperty=method
paramName=nix
/html:link
Can you give me a
Deepa Khetan wrote:
Hi,
I am trying to add a parameter at runtime in ActionMapping of my Action
Class. I am using mapping.setParameter() for this. It gives an
IllegalStateException saying Configuration file is frozen. Is there a way in
which i can add a parameter at runtime??
Regards,
Deepa
C.F. Scheidecker Antunes wrote:
Hello,
Thanks for the info. I am still having problems sending email from a
struts action.
I've created a separate class emailClient to send the message. The
class is on the end
of the email.
I have mailapi.jar under /WEB-INF/lib/ version 1.3.3.01
java.lang.NoClassDefFoundError: javax/mail/Message
com.nando.struts.action.TestAction.send1Mail(TestAction.java:35)
com.nando.struts.action.TestAction.execute(TestAction.java:69)
Seems that you don't have mail.jar in WEB-INF/lib.
borislav
Deep Chand wrote:
I'm new to Struts. I've a form asking for customer data with fields
like name, address etc. What I want is this kind of flow/design:
Page1) Customer enters their info. Submit button will take them to Page2.
Page2) They are asked to verify the same info again with read only
[EMAIL PROTECTED] wrote:
Hi Bob, I'll try to give my 1 cent to the topic and also to answer you
more concrete because I believe you want some concrete answers, not
theoretical conversations.
Background: I just started a Struts project with Hibernate. I have chosen to
use the Data Access
Troy Bull wrote:
Hello
I am trying to get my form to dispatch to different functions inside
my action handler class. I followed this tip exactly :
http://www.husted.com/struts/tips/002.html (except i fixed a couple
type o's).
The problem is my dispatch parameter is not being recognized.
Hi all,
I'd like to set a label of submit buttons getting it from property file.
But seems that this is not possible.
One other problem I see is that value attribute has two purposes: to set
the label, and on submit to provide value for the request parameter. Is
there any way they to be
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
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very complex to configure. Is
Bryon Lape wrote:
My goodness, it is as long as I thought. I can at least cut and paste
this instead of doing all that typing.
is it so much?
Thanks. I'll let you know how it goes. I am running under iPlanet Web
Server 6.0 SP1, so things can goofy. It already will not find the
Bryon Lape wrote:
My goodness, it is as long as I thought. I can at least cut and paste
this instead of doing all that typing.
that's why I pasted you lines from my log4j.proprties file and it's sure
they are correct
borislav
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very
Bryon Lape wrote:
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I
get
nothing. Do I need log4j? In the Struts Cookbook I've found some
things
on
Dave Newton wrote:
Holy crap, edit your replies!
Dave
Sorry Dave, ussualy i do
Borislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Bryon Lape wrote:
just make a file search under the path where the server is installed
Please excuse my ignorance, but look for what? That is, what file name
should I expect to find? I did a search for *.log and *log* and didn't
find anything of use.
hm strange ... in this case I
starki78 wrote:
Do you think this framework is stable and good?
I have tested it and my first impression is not bad.
Is there someone who uses it for its purposes?
Ciao Christian
Hi Christian,
I use struts-layout from 4-5 months, and it saves a lot of develompent time.
One of the best
starki78 wrote:
thanks Borislav for your answer!
I can provide you some screenshots from 2 applications that I work on -
they are not finished, but may be can give you some ideas about the
power of struts-layout.
And I have a friend who did some miracles with struts-layout, but he
Hi all
Does somebody know if it's possible to get MessageResources diring
initialization of plugin?
I do some global initializations including reading some string from
resource file, so I need this resource as early as possible
Or maybe global initializations should not be in plugin (in
a k wrote:
In the process of writing an Action class, I realized that it needs
some application functionality (not general utility kinda
functionality) that is already part of a method in a different Action
class.
So, Action MyAction1 needs to access method myMethod2 in Action
MyAction2. Here
Fei Jiangnan wrote:
Hi there,
I am newbie to struts, and tried current release of struts with
Eclipse 3.1, they seems not working together, coule you please make me
some sense from the versions between struts and eclipse?
thanks in advance.
Fei
Leon Rosenberg wrote:
---Ursprüngliche Nachricht-
Von: Borislav Sabev [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. Juli 2005 18:54
An: Struts Users Mailing List
Betreff: [OT] olipmic rings metaphor
How do you classify Security and Authorization issues in this
metaphor?
In my
Rafael Taboada wrote:
Hi folks I'm using validation framework in order to validate my fields in a
form.
I have three fields in a search form:
strUsername
strFromDate
strToDate
But we have the rule that the user can fill strUsername or use dates range.
I mean he can search by username or he
Martin Gainty wrote:
Boris-
I see Security as implemented by RingBearer Frodo in Lord of the Rings
The caretaker of the ring travels thru all domains and access to the
other dimension (portal which contains final results) regardless of
any domain he travels thru
Begreife?
Martin-
Since I'm
Marc Walter wrote:
Hi!
In want to use the controller element maxFileSize in the
struts-config.xml in order to provide a global maximum file upload size in
my application. So I entered the value 2M (two megabytes) for test
purpose.
In my upload JSP I defined a submit button like this:
Take a look at Strus-Layout, there are a lot of suefull tags inluding
iteration tags with alternate colors, soring, paging etc
http://struts.application-servers.com/
Regards
Borislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Ted Husted wrote:
In my own work, I tend to think of an enterprise-grade application as
a set of overlapping rings, like the Olympics logo.
* http://www.olympic.org/
In the Blue ring live the view members, like custom tags or UI
components, and the HTTP request and response objects. This is
Nitish Kumar wrote:
This is a HUGE problem with BeanUtils and why I end up having to
register custom converters:(
good point, but where do I register my custom converters? I dont want to do
it in my action classes, and writing a plugin just to register my converters
would be a big overhead.
Senthilrajan VS wrote:
Hi all,
Is there any way in struts to download the page (view part) in Excel format.
Thanks Regards,
SenthilRajan VS
Take a look at POI http://jakarta.apache.org/poi/
Regards
Borislav
-
To
Craig McClanahan wrote:
Blame backwards compatibility. By the time this issue was raised,
there were huge numbers of applications already dependent on the
previous behavior, which would have been broken by a change.
However, this shouldn't have *any* impact on incorrect values in
forms. If
Rick Reumann wrote:
if ( errors != null !errors.isEmpty ) -- this part can probably be
shortened, I was too lazy to figure out what really gets returned if
validation passes.. a null or empty ActionErrors?
here is part of the code of RequestProcessor, so in both cases the form
is
Rafael Taboada wrote:
Hi folks, I'm doing my validation for my form fields...
I use validation framework, so I don't use validate method in my form bean.
The problem I have is the validate is called when I use for first time the
module. I mean, when I see for frst ime the HTML form, validation
Ted Husted wrote:
In my experience, there's at least two best practices for every
problem. Sometimes you waterfall, and sometimes you agile. Sometimes
you hibernate, sometimes you ibatis. Sometimes, you property, and
sometimes you map.
One-size-fits-all is the pointy-hair grail :)
Rick Reumann wrote:
I was just replying to a post about keeping your Actions clean and
doing the business logic in other classes.
One thing I didn't bring up, though, because I'm not sure how 'best
practice' it is, is the concept of passing your ActionForm and
sometimes the
Durham David R Jr Ctr 805 CSPTS/SCE wrote:
snip
So what happens is the Action looks like...
//EmployeeAction
execute(...) or dispatchmethod() {
EmployeForm empForm = (EmployeeForm)form;
//validate form, if success proceed..
boolean success = EmployeeActionHelper.updateEmployee(
Rick Reumann wrote:
Borislav Sabev wrote the following on 7/12/2005 3:20 AM:
In fact I'm a bit confused what exactly is the recommended design
pattern in this case ...
My conclusion is really to use Strings,
Yes, you should use Strings in your ActionForms. Then you have your
business
);
ImagesManager.setImagesStoragePath(arg0);
} catch (Exception e) {
log.error(e.getMessage());
e.printStackTrace();
}
}
}
Cheers
Borislav
Tony Smith wrote:
Thanks. Could you show me how to write such plug-in?
--- Borislav Sabev [EMAIL PROTECTED] wrote:
I think
Rivka Shisman wrote:
Hi all,
I have a MessageResources.properties file that contains all the messages
regarding form validation.
I wonder what should I do when I have a business/workflow messages (like
This entry already exist in the DB), should I use the same properties
file? If yes - how do
Rivka Shisman wrote:
Hi Erik
You said - My form class fields are always Strings (because of HTTP)
- I'm not sure I anderstand the meaning of this - why do the fields are
Strings?
I have recently started working with struts and my forms contain int,
short, boolean and so on, and it works
Rivka Shisman wrote:
Hi again
When you say that validation doesn't work when inserting ABC in an
integer field - do you mean when using struts Validator?
I'm not using the Validator - I just add if myInteger 1 in method
validate().
If I define myInteger as String - how do I check that it's
Dewitte Rémi wrote:
I answer myself. I achieved doing this :
tiles:useAttribute id=listQuestions name=listQuestions
classname=java.util.List /
%
java.util.Iterator i=listQuestions.iterator();
while( i.hasNext() )
{
String question= (String)i.next();
%
tiles:insert name=%=question%
Hm, interesting, I didn't try to leave the struts-config empty. The key
is in the source code of struts ... I'll debug it a bit ... because such
behaviour for me is a bit strange ...
--
Mit freundlichen Grüßen
Borislav Sabev
eventsoft GmbH
Max-Planck-Str. 3
85716 Unterschleißheim
Tel
Nitish Kumar wrote:
I think raghavendra is right.
Rivka, your code is working because you are using primitive type int and not
the wrapper type Integer.
In case of primitive type in case of any exception, it gives you a default
value.
Thanks and Regards,
Nitish Kumar
I don't think
Nitish Kumar wrote:
I think raghavendra is right.
Rivka, your code is working because you are using primitive type int and not
the wrapper type Integer.
In case of primitive type in case of any exception, it gives you a default
value.
Thanks and Regards,
Nitish Kumar
So after small
Hi all,
The problem I'd like to discuss is how Validator works with form
properties. IMHO there is a contradiction (or maybe I don't know how to
resolve this problem - in this case, please help me) with types of Form
properties. The end result is that if I want to use the Validator, all
my
Borislav Sabev
eventsoft GmbH
Max-Planck-Str. 3
85716 Unterschleißheim
Tel: 089 - 35 89 03 21
Fax: 089 - 35 89 03 70
[EMAIL PROTECTED]
www.eventsoft.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Jeff Beal wrote:
I think that if Mark Galbreath were still around, he'd reply with
Validator sucks or something similar.
Basically, your statements below are all quite correct. I will add
(in response to Point 1 below) that the BeanUtils library is what
Struts uses internally to copy values
Why don't you try Struts-Layout(http://struts.application-servers.com/)?
it's very nice library ..I use it and I have a special tag for this
layout:checkBox for every bean in the collection.
Borislav
Laurie Harper wrote:
Why can't you just change your JSP? In other words, why does the
Craig McClanahan wrote:
Is this with JSP by specification or it's a implementation issue? I hope
it's by spec ...
Sorry, my mistake, I wanted to write JSF.
It's not really a JSP issue, but a component issue. In JavaServer
Faces (or Tapestry), the components themselves maintain the
55 matches
Mail list logo