If you don't wnat to be tied to the DynaBean api either you could defin your
own custom DTO interface that defines the data that your model layer
requires.
then you could have your ActionForm implement your custom interface. Then
you could just pass the action forms into the layer as the custom
agree that seems like a good way to approach it :)
Cheers
Jin
I would use the tools that are out there when you can...especially when
they
are free.
My 2 cents.
robert
-Original Message-
From: Jin Bal [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:10 AM
I've recently had to make the same decision and looked at (among others -
castor,hibernate) the ones you specified.
I ended up going with OJB because it seemed the simplest to start with.
One of the main things that attracted me to OJB was the idea of clean
transparent persistence - that is your
Try searching the OJB mail archive - it has been discussed extensively there
- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 18, 2002 1:36 PM
Subject: Re: Which O/R layout most used with Struts
I've recently
Your action could write the html from your DTO directly to the response,
without the need to forward to a JSP.
this would go along the lines of:
snip
inStream = docLib.getDataStream();
ByteArrayOutputStream out =new ByteArrayOutputStream();
byte[] buf = new byte[4096];
int i = -1;
Try putting the poolman.xml in the WEB-INF/classes folder
HTH
Jin
- Original Message -
From: Ferran Parra [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 10:46 AM
Subject: Poolman 2.0.4 Struts tomcat4.x
Hi
I was wondering if
Try this (or something close) in your Action code :
String contextRoot = getServlet().getSerlvetContext().getRealPath();
Torque.init(contextRoot+/WEB-INF/TORQUE.properties);
NB: getServlet() should work in 1.02. I think this may have changed in
1.1b2 - check the API docs to see how to grab a
CreateUserProfileForm etc must extend from ActionForm then
UpdateUserProfileForm can extend from CreateUserProfileForm.
Your forms must have a base type of ActionForm
HTH
Jin
- Original Message -
From: Charles [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
How about a little helper class that sits in between them ?
That ought to do the trick.
HTH
Jin
- Original Message -
From: Darren Hill [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 7:03 PM
Subject: RE: Extending Action and
Have you tried putting struts.jar into:
C:\java\jakarta-tomcat-3.3.1\webapps\strutsShop\WEB-INF\lib
?
I might have missed something in your post so forgive me if this is
irrelevant
HTH
Jin
- Original Message -
From: angela mcgrenra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
I have worked on the underlying software for this site(quite a while ago
now) and I believe it uses Resin although that could well have changed now
- Original Message -
From: Nick Sharples [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 11,
You could write a custom tag to do just this as I have done, which accepts
date objects or strings for the individual field names.
Alternatively there is a calender taglib in the jakarta taglibs I believe
HTH
Jin
- Original Message -
From: Dejan Bosanac [EMAIL PROTECTED]
To: [EMAIL
Returning null will acheive the effect that you desire
HTH
Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 3:46 PM
Subject: Want ActionForward to be ignored, just using HttpServletResponse
I have an Action subclass that will be
IMHO
It's better that any db access layer does not know how to get a database
connection, it just gets given them by the client calling it. This way if
you need to change the way you grab db connections the db access layer is
none the wiser and no code changes are needed
Jin
- Original
cannot load servlet name : action :null
Looks like the initialisation of your actionservlet is throwing a NPE.
Try checking the servlet.log file in
%TOMCAT_HOME%/logs
This will usually give more information and maybe even a stacktrace. Also
set the debug param and detail param in the web.xml
You could try changing the logic that sets the myAgents Vector into the
session to either set the list or set a zero length list rather than
null...just a thought. Try explicitly setting the scope in your bean write
tag
HTH ;-)
Jin
- Original Message -
From: [EMAIL PROTECTED]
To:
I *think* the problem may be your container's implementation of :
InputStream input = getServletContext().getResourceAsStream(config);
where config is the struts-config.xml
When I tried to use struts with Resin I encountered the same problem (never
worked how to fix it started using tomcat).
Looks like they're both trying to bind to port 80 Resin won't allow that
- Original Message -
From: Egger Oliver [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 10:17 AM
Subject: running two instances of resin
hello,
testing with
You're probably already doing but just in case:
when you get your datasource use the static method in the PoolMan class
(PoolMan.findDataSource)
This will return you a datasource from poolman.
The fact that it works when you put the datasource tag back in the struts
config xml suggests that it
Equally cheesy would be to set request attributes and get the receiving
action to check the attributes before checking the req params. It's dirty I
know, but it may be slightly preferable to constructing query strings on the
server and creating a new request...
Just a thought.
HTH
Jin
how about
src=something.do
- Original Message -
From: Henry Lu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 15, 2002 1:34 PM
Subject: frame page src=?
How to specify src path in the frame tag under struts?
I did the following and it didn't work
- Original Message -
From: Henry Lu [EMAIL PROTECTED]
To: Jin Bal [EMAIL PROTECTED]
Cc: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 15, 2002 2:15 PM
Subject: Re: frame page src=?
No it doesn't work either. Could you show me a working examples
phone: (734) 936-2063
University of Michigan Medical Center fax: (734) 763-4372
On Fri, 15 Feb 2002, Jin Bal wrote:
What kind of errors do you receive?. Can you call something.do from
the
url bar? are you using extension mapping or path mapping?
We use extension
I asked a similar question re potential problems with multiple action
servlet instances(no reply). I think the issues may have something to do
with the actionservlet resources but I'm not sure and would be **very**
interested in finding out as I'm using this approach using struts 1.0.
Jin
You could dispense with changing/extending the controller by creating an
abstract action layer that defines a new abstract method such as
performAction() which returns an actionforward obj like perform() .
Your perform method in the abstract class then carries out the validaton if
it is ok it
I've suddenly started receiving a parse error : null when I try to access
any page that contains a reference to struts logic tld.
Any ideas guys/gals?
The only thing I've changed recently is changing struts-confix.xml and
web.xml to reference dtd's on my own system.
Please Help!
Jin
--
To
How do I cleanly switch off or force struts and the web.xml to validate the
dtds that are on my local machine as opposed to trying to resolve the url
declared in the xml file (which sometimes can be unavailable).
I've commented out the doctype declaration as a stop gap measure but this
isn't an
your config files
validated for some reason you can turn this off by
setting the validating init-param for the
ActionServlet in your web.xml file to false.
-james
[EMAIL PROTECTED]
http:[EMAIL PROTECTED]/struts/
-Original Message-
From: Jin Bal [mailto:[EMAIL PROTECTED]]
Sent
We have got round the problem of passing javabeans into other frames by
using javascript to set variables in the other frames(the alternative to to
using jsp:includes and jsp usebeans). This is one of the possible issues
that you may run into (as we have) when using frames.
IMHO I think it's
One possible way to do this would be to specify two instances of the
actionservlet in the web.xml each pointing at it's own version of
struts-config.xml.
The content of the xml will essentially be the same and will call the same
actions except that the formbean definitions would be different
A nice design for an action such as this is to create a BinaryRenderAction
which receives as request parameters the db reference of the image so it or
soime business delegate/DAO can retrieve it, and a reference to the
mime-type so that it can set the header in the response.
This way the action
try using single quotes the readonly attribute and double quotes inside the
scriptlet thus-
snip -
form:text
readonly='%=true %'
property=kontofuehrung1data.knelimitregion1
styleClass=N100
-snip
HTH
Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday,
The Keiuken package is within a larger project called cappucino.
Unfortunately all the docs are in japanese but if you look at the code you
can get the gist
HTH
- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent
html:text property=companyName value=%=rs.getString(1);%
try removing the semi-colon from the scriptlet (;) as you are using the %=
construct.
regards
Jin
- Original Message -
From: Sudhir S. Shetty [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December
Hi,
Does anybody know how to prevent the struts console from quadruple spacing
(!!) the lines in my struts-config file in jbuilder 5 pro. It's rather
difficult to work the file for those who don't have the plugin.
Thanks in advance
Jin
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
in the final 1.1 release. If it's not, let me
know and I will fix it.
BTW, this bug is because of a bug in JDOM (which I use
for manipulating the config file XML).
Thanks,
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- Jin Bal [EMAIL PROTECTED] wrote:
Hi,
Does anybody
I'm afraid the it's still broken
- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 1:48 PM
Subject: Re: struts console
I shall download it now, thanks
- Original Message -
From: James Holmes
I would say so, That is to say that if you call commit in the session bean
then the operations carried out in the DAO will be committed and conversely
if you roll back.
HTH
Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 4:58 AM
IMHO the DB should never be accessed by anything in the JSP itself, Tag or
otherwise. I believe that one of the purposes of having actions is to
enable delegation of things like DB access to specialised layers which can
then be pluggable. Also, using actions allows processing to be wrapped
Use the jsp:usebean tag instead and specify scope=session , the one
you've been trying to use is for including files such as other pages.
HTH
Jin
- Original Message -
From: Mohammed [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 11:49
ignore what I just said I need to learn to read properly ;o)
- Original Message -
From: David Cypers [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 12:19 PM
Subject: RE: %@ include File = %= includefile% % is there a way doto
this
Mohammed
- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 1:23 PM
Subject: Re: %@ include File = %= includefile% % is there a way
doto
this
SourceBean mysourcebean =
(SourceBean
Hi
I have subclassed the ActionServlet multiple times to provide slightly
different initialisations. These multiple instances have been mapped in
web.xml and each assigned it's own extension mapping (*.xxx, *.yyy ...)
Are there any major issues with doing this with regards to resources stored
Sounds like the document/context root on the server you deployed it on is
set differently. You need to point your server to the context root of you
app.
In tomcat for instance you ca edit the server.xml so that \ after the web
address will point at any directory you want so that calling
In you action class you can set an object into the request using
request.setAttribute(). This object could be of a generic type that you
could examine in the jsp using a jsp:usebean tag to extract the object from
the request. The action class always forwards the request object it has
back to
Alexander is right you can forward to another action in this way.
It may start to get a bit complicated when you need to introduce request
parameters for the action you are forwarding to and you may find yourself
creating query strings inside the action class which I believe someone
(either Ted
It seems like the ActionServlet cannot find an instance of an Action class.
From you snippets it seems that you haven't registered your implementation
of the Action class i.e
type=org.apache.struts.example.LogonAction as an attribute within the
action tag
- Original Message -
From:
?
Cheers
Tony
Jin Bal wrote:
It seems like the ActionServlet cannot find an instance of an Action
class.
From you snippets it seems that you haven't registered your
implementation
of the Action class i.e
type=org.apache.struts.example.LogonAction as an attribute within the
action tag
One way would be to create an abstract layer underneath the action layer
that defines an abstract method similar to the perform() method. Then you
could 'wrap' processing around the call the the abstract method which your
concrete subclasses implement.
- Original Message -
From: [EMAIL
Hi All,
Will the ActionServlet populate an action form instance from a GET request
or does there have to be an HTML form that submitted the POST request?.
Thanks in adv
Jin
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
50 matches
Mail list logo