Is it a good idea to synchronize DispathAction to make sure all requests
to DB and results which come back don't overstep each other ?
Pls help.
Following is some detail of what am I doing in my application.
I have few operation I want to synchronize.
In my app following steps I am
How do I invoke another DispatchAction from one DipatchAction ?
For e.g
If I want to call diceSetUp.do?dispatch=diceWebSetUp
from
public class SectorAction extends DispatchAction {
public ActionForward getSectorsFromQ(ActionMapping
Hi !
I want to find out what is best thing to do when it comes to
Exception Handling?
I have my Application specific AppException I create many
different sub-class of AppExceptions based on different conditions
in my application.
In struts config I am trying to
In my jsp I am using users ArrayList which is collection of User bean on
server side.
My drop down list works fine as under when I use only one display userNameShort
in my example.
html:select property=userIdNew
option value=-1Choose User.../option
Thanks Michael :
I can do what you suggested of creating read-only attribute in User
class.
But all over I am using BeanUtils to copy back and forth Users
properties to UserForm properties.
Is there a cleaner way so even after my adding/deleting properties
in my User
Rick:
What is benefit of using standard jstl over html:option.
One benefit is to problem like mine.
Any other ?
Digant
Rick Reumann [EMAIL PROTECTED]
03/01/2006 04:32 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List
We are using tomcat 1.4.30 which in turn has jsp 1.2 version.
JSTL EL works differently in this version meaning For outputting text you
should not using${someVar} but should use c:out
value=${someVar}/
Now I have following problems in making ActionForm pass value to Action .
1. Drop down
No, I am using jsp version of EL
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
Do i have to use struts-el for making life easier, especially when
using checkbox or radio button controls?
What's the best way to get struts-el jar/tlds ?
Thanks.
in struts 1.2.8 I see
struts.jar
that may not be containing struts-el.jar.
Can anyone send link to contrib ?
Thanks.
Dave Newton [EMAIL PROTECTED]
02/27/2006 02:26 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc:
would struts-el v1.3.0/ will work with struts 1.2.8 and tomcat 4.1.30 ( JSP
1.2) ?
Michael Jouravlev [EMAIL PROTECTED]
02/27/2006 02:48 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc:
Subject:
No ! I don't have specific need for it.
I didn't copy struts-el.jar from standard struts 1.2.8
What is good prcatice ? Should I copy everything under
contrib\struts-el\lib to MY WEB-INF/lib ( in tomcat 4.1.30) ?
I see struts-html.tld, struts-login.tld are under both directories
Thanks Niali:
Do you have any examples or pointers for writing reset method of
ActionForm ?
Should checkbox attribute in question in my ActionForm be Boolean
or it can be String type?
Right now I have it as String and value coming from DAO are
Y/N which I change it to
I have problem with checkbox property not communicating with my Action.
I have String property with Y/N in FormBean populated from DAO , I
convert it to yes/no before sending it to form and I do conversion
back from yes/no to Y/N after I receive from form and send it to
DAO.
What is missing
Hi:
I am trying to put in editable checkbox inside HTML table, but it
doesn't seem to work.
any ideas where am going wrong ?
Thanks in adv.
Digant
table class=borderAll border=1
tr
thfmt:message key=label.imntDescr//th
thfmt:message
I have users list created in my dispatch action and populated in request.
in my form this works.
tr
td class=tdLabelfmt:message key=label.endDate/:/td
tdhtml:text property=endDate size=40/ html:errors
property=endDate//td
/tr
I am using tomcat 5 which I believe has jsp 2.0
I am getting exception of users getters/setters not defined exception.
it assumes users as one of the attribute of my form instead of Collection.
Digant
Michael Jouravlev [EMAIL PROTECTED]
02/21/2006 01:08 PM
Please respond to Struts Users
I have html:text property=bucketName disabled=true size=40/
I populate html:text with data from DB.
I want to disable input for this property, but
when I get form data back in Action form bean does not have data for this
property bucketName
How do i retain data after disabling input in
Thanks Craig:
I worked for what I wanted to achieve.
Only with read-only property setting, it does not grey out input
text field.
I have to find out what to set so that it changes appearance when
read-only property is set.
Thanks.
Digant
Craig McClanahan
My understanding for making Struts action thread safe you shouldn't have
instance variable in any action class. Correct ?
( it should be OK if you have read only variable ). But to make app for
flexible, so in future you can change value of variable and pass it around
helper functions, I made
Laurie:
Thanks for your response.
You are right big mistake !
Even if Java has pass by value, if you want to make it work like
pass by reference you need to have Valid object ( one which is
instatiated).
Also I wanted initialize method to do work of accessing
I Know this is not right group to ask this question !
But I am desperate !
I had working struts application in eclipse 3.1.1 with SysDeo tomcat
plug-in.
I was able to step debug until I refactored Tomcat project name to
different name.
Now my app(tomcat) comes up through eclipse but I am
Thanks for your suggestion !
But I got it solved this way !
1..I made sure new Project is xml file is created and referenced in
{TomcatDir}\conf\Catalina\localhost or server.xml,, which ever way you
launce your app.
2. in my eclipse workspace tomcat project directory (dot).tomcatplugin
Hi!
I have a Struts Application developed using Eclipse SDK 3.1.1 and
Tomcat Plug-in 3.0.0
I have defined application root in eclipse while creating Tomcat
Project as /dice.
In eclipse workspace I see all jsp/lib/classes/ folders are all
under /dice directory.
How do I add war task in Ant build file from eclipse ?
[EMAIL PROTECTED]
02/09/2006 02:07 PM
Please respond to Struts Users Mailing List
To: user@struts.apache.org
cc:
Subject:RE: Struts application WAR file creation.
[EMAIL PROTECTED] asked:
How do I make sure first time DispatchAction is invoked it calls some
initialization code !
I have Business object Dao service class which I want to instantiate
before any of the action forward or any methods from myDispathAction
is called .
My current dispatchAction look like this ...
What changes do I make in struts-config to initialization method is
called like constructor of DispathAction .
from index.jsp I call
c:redirect url=diceSetUp.do?dispatch=diceWebSetUp/
subsequent jsp has following lines to call another action
c:url var=url scope=page
I put it into session and request.
kalpesh modi [EMAIL PROTECTED]
02/07/2006 03:52 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc:
Subject:Re: DispatchAction question !
What do you do with the
Hi!
In our app we need to communicate to our application server using
DB connection and Sonic MQ.
As per one of earlier suggestion I am trying to write Plug-In for
creating DB and Q connection and keep for the session life.
So any request made by user can use same DB
To start with I want to keep in session,
Once functionality is tested ! I want to make it better by writing BaseDAO
to get connection from DB /Q
Dave Newton [EMAIL PROTECTED]
01/31/2006 11:27 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List
Is getResources part of org.apache.struts.util.MessageResources
if it does I don't find getResource in it I find getMessageResources which
is expecting config as parameter.
What should I supply as config from Action class ?
Hubert Rabago [EMAIL PROTECTED]
01/31/2006 11:29 AM
Please
copy tools.jar from jdk directory to {TomcatBaseDir}/common/lib
to make it work.
vinicius [EMAIL PROTECTED]
01/31/2006 02:13 PM
Please respond to Struts Users Mailing List
To: user@struts.apache.org
cc:
Subject:problem
How should I read multiple different properties file in struts
application, so by name of the property file I can distinguish what type
of properties are defined in the property file.
For e.g. 1. Messages.properties 2. ApplicationBO.propertis and so
forth.
Any help is appreciated !
Hubert:
Thanks for your response !
As I haven't got any answer for my 2nd question, if you can
respond with this thread or newer thread would give me jump start on issue
of application properties file.
In my application I need to read from application
I am relatively new to struts based application development , I have basic
app up.
Now based my application requirement.
I have to do following
1. I have to put different browser request in a Request Q(SonicMQ)
and then get reply by reading from Reply Q.
I already have utility
Is there a way to get handle on Application property file handle in action
class.
What I mean is if I specify in struts-config.xml
message-resources parameter=DICE null=false/
and drop my DICE.properties file in WEB-INF/classes directory
Shouldn't I be able to read this property file from my
Somehow I am getting ActionForm is null when one of the Action is
called.
How can I find out if ActionForm object was created after jsp forwarded to
ActionServlet. ?
Here is my details.
web.action.SectorAction has
public ActionForward setUpForInsertOrUpdate(ActionMapping mapping,
Hello Struts world !
I am new to Struts and was wondering if there is any good short
Struts Tutorial which will help me get jump started with Struts and
also what it best plug-in available for Eclipse for struts .
Thanks in advance !
DJ
This communication is for
37 matches
Mail list logo