I migrate a Struts app from jdk 1.4 to jdk1.5
I have warnings I would like to solve :
1) the clone() function
I have a "Type Safety" exeption with this kind of code :
current.setUserRights((TreeSet) this.userRights.clone());
2) Cast make a warning :
TreeSet mySet = (TreeSet)
request.getSession()
Hi
i found the solution i was looking for :
http://wiki.apache.org/struts/StrutsDeprecatedActionErrors
Thank you for those who tried to help me.
Thibaut Lassalle
Thibaut a écrit :
Hi
I have all the time the same problem and there is a week i try to
solve it. It should be trivial but i
Dave Newton a écrit :
Thibaut wrote:
In the WEB-INF/user/struts-config.xml
type="com.cvdunet.controller.action.UpdateResponsesForRequestAction"
input="essai.html"
Your input page is an HTML file?
Yes it'
Hi
I did what you tell me to do. Here is the simpliest thing that does'nt
work :
In the WEB-INF/user/struts-config.xml
type="com.cvdunet.controller.action.UpdateResponsesForRequestAction"
input="essai.html"
name="candidateForm"
scope
I use the libraries i found in the struts-mailreader app in the struts
1.2.8 zip file.
But i still have commons-digester.jar 1.5 because my app use rss object ...
Can it be the problem ?
-
To unsubscribe, e-mail: [EMAIL PROTECT
Rick Reumann a écrit :
Thibaut wrote the following on 3/22/2006 10:18 AM:
I did but it still doesn't work ... still have the blank page instead.
What do the error logs say?
In my /usr/java/jakarta-tomcat-5.0.28/logs/localhost_log.2006-03-22.txt
there are just informations but no
hen looks like your input is wrong.
Change input to:
input="/missions_copyMailToBasket.jsp"
I believe this page is in the same dir as of close.jsp and mycv.jsp
Thanks,
On 3/22/06, Thibaut <[EMAIL PROTECTED]> wrote:
The problem is that if the validate(mapping,req) method ret
u for your help !
Thibaut
Mark Lowe a écrit :
validate="true" just means that the validate(mapping,req) method will
be called and forwarded back to the inputForward before you get to the
action. But as you call it in the action this shouldn't matter..
Are things going wrong in
t's wrong ?
[EMAIL PROTECTED] a écrit :
Hi
Howecome you have validate="false"? If you want validation, then set it to true
-Original Message-
From: Thibaut [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 11:41 AM
To: user@struts.apache.org
Subject: Validati
errors.add(ActionMessages.GLOBAL_MESSAGE, error);
return errors;
}
Can anyone help ?
Thank you
--
Thibaut Lassalle
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ok I understand
but why "form.set("partner_id",secteurDefault);" doesn't work ?
"
public ActionForward execute(..., ActionForm form,...)
{
...
form.set("partner_id",secteurDefault);
...
}
"
Where form is a DynaForm
Thank you
Laurie Harper a écrit
esn't work. Why ?
Second question : how do i put the form in a scope to be taken into
account by the jsp ?
Thibaut wrote the following on 1/19/2006 1:09 PM:
Hi,
I'd like to choose the default value of my html:select in the action
class. What is the parameter to set ?
Set
Hi,
I'd like to choose the default value of my html:select in the action
class. What is the parameter to set ?
Action :
request.setAttribute("partnerslist",
getPartnerListFromDataBase(dataSource));
JSP:
labelProperty="label"/>
Thanks.
-
Hi,
When I load my struts application with tomcat I have this information :
"
5 janv. 2006 17:57:25 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/home/toto/workspace/cvdunetV51/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2.
,
Raghu
On 12/30/05, Thibaut <[EMAIL PROTECTED]> wrote:
Hi
I try to print a dropdown but i make a mistake. I don't know where is
the mistake :
In the action :
"
ArrayList arrayTmp = this.getPartnerListFromDataBase(request);
request.setAttribute("pa
Hi
I try to print a dropdown but i make a mistake. I don't know where is
the mistake :
In the action :
"
ArrayList arrayTmp = this.getPartnerListFromDataBase(request);
request.setAttribute("partnerslist", arrayTmp);
"
Where :
"
private ArrayList getPartnerListFromData
hi
i'd like to update a record from a table from my data base : for
exemple, the object "Client"
I used struts 1.0 and now use struts 1.2.6 that why i'm a little bit lost.
The action i call is /accessToUpdateClient.do?id=9
In the action i do :
public ActionForward execute(ActionMapping mapp
hi
i have the solution
DataSource aDataSource = (DataSource)
actionServlet.getServletContext().getAttribute("dataBase1");
i found the solution here
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=001155
Thank you,
Thibaut Lassalle
Martin Gainty
Martin
you are in an action therefore you have getDataSource(request) available
but i am in a plugin therefore i don't have request element.
Any idea ?
Thibaut
Martin Gainty a écrit :
Thibault-
/*This is straight from the Struts doc available at*/
http://www.jajakarta.org/struts/stru
hi
Eclipse with the good plugins.
http://www.theserverside.com/news/thread.tss?thread_id=35683
R Rajendran a écrit :
Hi everyone,
Could anyone of you let me know the available Struts Development tools (IDE)
for Windows environment.
Thanks
Raj
-
bc:mysql://192.168.0.25/cvdunet" />
And in my plugin, i call this :
DataSource aDataSource = (DataSource)
actionServlet.getServletContext().getAttribute (Globals.DATA_SOURCE_KEY);
but 'aDataSource' is 'null'.
Do you know the rig
on.getAttribute(), avertisementForm);
return new ActionForward(mapping.getInput(), false);
-Thanks in Advance
Thibaut
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ins method which initialises the PlugIns found
in the config file
Is there a specific plugin you wish to use?
Bonne Chance,
Martin-
- Original Message ----- From: "Thibaut Lassalle"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, June 06, 2005 10
hi, i'd like to access to dataSource configured in struts-config.xml in
the Plugin init method.
But i don't have a clue how to do that.
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
hi, i'd like to access to dataSource configured in struts-config.xml in
the Plugin init method.
But i don't have a clue how to do that.
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Does anyone have documentation on how to migrate from Struts 1.0 to
Struts 1.2
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ces within your ActionServlet take a
look at
http://struts.apache.org/api/org/apache/struts/action/ActionServlet.html#dataSources
HTH,
Martin-
- Original Message - From: "Thibaut L." <[EMAIL PROTECTED]>
To:
Sent: Friday, May 27, 2005 7:49 AM
Subject: DataBase connection
hi, i
hi, i'd like to access mysql from the my own controller init method.
I usually do :
|dataSource = getDataSource(request);
myConnection = dataSource.getConnection();
but i have no request object in my init method.
Any idea ?
thanks.
|
-
28 matches
Mail list logo