hi ,
> Yes, you can use any number of struts-config files; there is a
> servlet init parameter which accepts a comma-separated list.
I Have many struts-config files in one of my application and i initialized them
with a comma separeted List ...
EveryThing Works fine until it comes to ActionMess
Tuan,
(If this rambles since it is late at night for me, skip to the "WHY" section
below for suggestions)
What class does your below included Java come from? Is it from a subclass
of Action or ActionForm? I ask because of the following issues I have with
your code in Struts v1.2.:
o. Actio
David,
Thank you for the good link. Base on it, I have change the code to the
following:
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.strut
Tuan,
I think you should check out various wiki sections relating to the versions
you're using and the one you plan on switching over to. You probably want
to scroll down to the section marked "ActionError(s) and ActionMessage(s)"
in the page: http://wiki.apache.org/struts/StrutsUpgradeNotes11to1
I am learning Struts 1.2 and would like to find out what is the
replacement for ActionError knowing it's deprecated in Struts 1.2
if (firstName == null || firstName.trim().equals(""))
{
errors.add("firstName", new
ActionError("error.cust.firstname.empty"));
}
Thank you.
IMPORTANT -
Ple
I would say:
3) Create a class that will look up the DataSource via JNDI lookup and cache
that reference during initialization, and use that reference to get connections
to distribute in your getConnection method. Only if the DataSource (aka
connection pool) fails or is turned off would you nee
Hello all,
In order to access a Database on my Model layer, which one is best?
1) A DataSource declared on the struts-config.xml. Then get the
DataSource on your code inside either your actions or business classes.
2) Create a class that will load the database Driver ,establish the
connectio
Hi all,
Forget this last posting. I've found the class! :)
There was a problem on my archive.
C.F. Scheidecker Antunes wrote:
Hello all,
On the Struts: How to Access a Database document the way to set up a
Datasource is shown in the MySQL example.
However the DataSource class type that i
Hello all,
On the Struts: How to Access a Database document the way to set up a
Datasource is shown in the MySQL example.
However the DataSource class type that is used is the
org.apache.commons.dbcp.BasicDataSource.
I've downloaded commons dbcp version 1.2.1 and there is no
BasicDataSourc
Hi All.
I need some help. I have a collection of objects(A), where each object in that
collection, has a collection of objects(B), then each B has a collection of
objects(C). What the client wants, is to display the list of A's in a
table with each row having a radio button. When a radio butto
OK, Found an answer for anyone who is interested, If not delete :)
URL url = "" URL("http://localhost/helloworld.jsp");
URLConnection conn = target.openConnection();
conn.addRequestProperty("METHOD", "POST");
conn.addRequestProperty("Cookie", "JSESSIONID="+sessionId);
conn.connect();
Craig McClanahan gmail.com> writes:
> For Tomcat in particular, I'd encourage you to use the JNDI naming
> context mechanisms for defining initialization parameters and data
> sources.
I have done it in this way. I think it will be good solution (explanations in
other posts). Thank you for advi
Sorry for the off topic post,
I have a case where I am generating a struts form and placing it into a
session. I am having to create a inputStream based on a URL of a JSP which
uses the form, but the JSP cannot find the form in any scope. Does the URL
use a different request/session than the ac
The only difference i know, is that jsp:include actually creates a new
context for each page, so the included page writes directly to the
outputstream, and bean:include caches the result of the included page and
writes it out at once.
So if you are playing with flush-attribute or having uncaught
Dave Newton <[EMAIL PROTECTED]> wrote on 08/17/2005 02:33:03 PM:
> Laurie Harper wrote:
>
> > sajith kumar wrote:
> >
> >> In our proj we were using bean:include to include alternative jsp's
> >> based on some conditions thru action class
>
> I would also ask how was replaced by
> and sinc
Laurie Harper wrote:
sajith kumar wrote:
In our proj we were using bean:include to include alternative jsp's
based on some conditions thru action class
But when Concurrent users were acessing the system the application
didnt respond
We changed our logic by replacing bean:include with logic:eq
On Aug 17, 2005, at 12:34 PM, netsql wrote:
So 1.3 is NOT using the standalone tiles but the old tiles?
Correct.
Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello all,
I've managed to have successful authentication with securityFilter and
JDBCRealm.
I have a few questions that I was hoping you could clarify for me.
After the login is successful, is there any way to forward that to a
success page/action
so that I can add extra stuff to the sessio
sajith kumar wrote:
Hi all,
Is bean:include thread safe?
In our proj we were using bean:include to include alternative jsp's based on
some conditions thru action class
But when Concurrent users were acessing the system the application didnt respond
We changed our logic by replacing bean:include
So 1.3 is NOT using the standalone tiles but the old tiles?
.V
Craig McClanahan wrote:
Be warned, however, that a couple of changes in the Struts 1.3 version
of Tiles have not yet been ported over ... I hope to do that this
weekend.
Hello All,
I would love to hear your thoughts on this. I have an
app that serves US and Canada. The same form is used
to accept shipping address for both. Zip consists of
two text fields where the first one is required for US
addresses and both are required for Canadian
addresses. So far, only US
Craig McClanahan wrote:
On 8/17/05, Dave Newton <[EMAIL PROTECTED]> wrote:
I think storing it under the Tomcat config directories would be a really
bad idea, since they're application (not server) level configs.
Personally, I keep things like this in either web.xml, a struts config
file, or
On 8/17/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Konrad Billewicz wrote:
>
> >At the moment I wish to do it using web.xml or, maybe better, context file in
> >conf/Catalina/. Currently there are serveral things to change ie. data source
> >parameters.
> >
> >What do you think about it?
> >
> >
How could I upload images with struts
And in struts-config.xml what is the form-property type for form-bean
Thanks,
Massoud
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
On 8/17/05, Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 11:49 AM +0100 8/17/05, John Atherton wrote:
> >Okay I've found the place to go for all things Shale but my other two
> >questions still stand.
>
> first, a disclaimer: I've never written a JSF app let alone a Shale app.
>
> > > Then I ca
That's how I understand it as well. However, Shale doesn't provide the
framework, JSF does, right? Shale uses the extension points of JSF to enhance
it by offering services. I guess some of the services could be considered
frameworks as well. Clay is a framework for "... reusable view fragme
On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> Does anbody know where to get hold of the Tiles standalone .jar file. I
> have only found the source files in the SVN sandbox.
>
Nightly builds are available at:
http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles
On Aug 17, 2005, at 9:09 AM, [EMAIL PROTECTED] wrote:
I'm interested in the analogy, "Shale is to JSF as Struts is to JSP".
What is the connection between JSF and JSP then? I thought that JSF
was to JSP the same way Struts was to JSP, and Shale was more like the
Struts tag libraries on crac
Have you considered Spring and it's IOC framework? Works wonderfully with
Struts (even has a lovely plug-in to get the whole thing working together).
The configuration is only one aspect of the whole Spring framework.
Christopher Marsh-Bourdon
www.marsh-bourdon.com
-Original Message-
Stéphane Zuckerman wrote:
What I really dislike with struts tags is that attributes don't always
mean the same thing from tag to tag, which is disturbing. I'm mainly
thinking of the "name" and "property", and ".*Name" attributes too.
Ah, I'm glad to hear I'm not the only one that is wogged by
Konrad Billewicz wrote:
At the moment I wish to do it using web.xml or, maybe better, context file in
conf/Catalina/. Currently there are serveral things to change ie. data source
parameters.
What do you think about it?
I think storing it under the Tomcat config directories would be a real
OMG...
That's it. So sorry for posting a dumb question
:-)
On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think maybe you are executing "en.nextElement()" twice..? Once for your
> logging and once inside your try block..?
>
> Gordon Hu <[EMAIL PROTECTED]> wrote on 08/17/2005 10
I think maybe you are executing "en.nextElement()" twice..? Once for your
logging and once inside your try block..?
Gordon Hu <[EMAIL PROTECTED]> wrote on 08/17/2005 10:54:22 AM:
> for (Enumeration en = fileCounter.elements(); en.hasMoreElements(); ) {
> System.out.println("In action " + en.next
Le Goff, Yoann schrieb:
>Does anybody know how i can replace my tag by a struts one ?
>
>
>Y.
>
>
>
Have a look in the guide
http://struts.apache.org/userGuide/dev_html.html
--
Best Regards / Viele Grüße
Sebastian Hennebrueder
http://www.laliluna.de
Tutorials for JSP, JavaServer Fac
Hi Ashish,
Seems ok except maybe you forgot to set url to
ClassLoader.getSystemResource("approval.properties").
Also, googling gave me this link which you may find useful:
http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html
Regards,
Geeta
Ashish Kulkarni <[EMAIL PROTECTED]> wr
All,
I have created an actionForm and action to handle multiple file uploads.
I want to save each file I uploaded to my local drive so I created a loop to
do just that.
Below is the code snippet.
***
int numFilesUpload = 10;
Hi
is there a problem if i do some thing like below
URL url = null;
url =
this.getClass().getClassLoader().getResource("approvals.properties");
if(url== null)
{
ClassLoader.getSystemResource("approvals.properties");
}
Ashish
--- Ashish Kulkarni <[EMAI
> I'm interested in the analogy, "Shale is to JSF as Struts is to JSP". What
> is
> the connection between JSF and JSP then? I thought that JSF was to JSP the
> same
> way Struts was to JSP, and Shale was more like the Struts tag libraries on
> crack. Can somebody point me to a good explana
I had to build with Maven when I got started with it. I thought they
had started a nightly build, but maybe not.
Greg
On Aug 17, 2005, at 5:11 AM, [EMAIL PROTECTED] wrote:
Hi
Does anbody know where to get hold of the Tiles standalone .jar file. I
have only found the source files in the SVN
I'm interested in the analogy, "Shale is to JSF as Struts is to JSP". What is
the connection between JSF and JSP then? I thought that JSF was to JSP the
same way Struts was to JSP, and Shale was more like the Struts tag libraries on
crack. Can somebody point me to a good explanation of the di
Hi Stewart,
I had the same problem and I received a great answer on this mailing list
a few days ago.
The problem is caused by either one of these libraries that are
conflicting with Struts:
- jsp-api.jar
- jsp-2.0-api.jar
On my side, removing these libraries from my project (th
Hi
how do i find all the properties file available in
classpath??
Ashish
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
At 11:49 AM +0100 8/17/05, John Atherton wrote:
Okay I've found the place to go for all things Shale but my other two
questions still stand.
first, a disclaimer: I've never written a JSF app let alone a Shale app.
> Then I came across Shale. I've never used JSF so firstly, is this now the
Okay I've found the place to go for all things Shale but my other two
questions still stand.
Thanks,
John
"John Atherton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I was about to dive straight into a pretty standard Model 2 application
> for a client that I would h
Hi,
I was about to dive straight into a pretty standard Model 2 application for
a client that I would have ordinarily written from scratch. I've been
meaning to look at Struts for a while ... I now have and it's clearly going
to give me a leg-up when writing the "top half" of the application.
Using Struts 1.2.7 with the latest Tomcat 5.5.9 I get the following in
localhost..log when I first try to access my web application:
17-Aug-2005 11:02:02 org.apache.catalina.core.Stand-ardHostValve custom
SEVERE: Exception Processing
ErrorPage[exceptionType=java.l-ang.Exception, location=/erro
Hi
Does anbody know where to get hold of the Tiles standalone .jar file. I
have only found the source files in the SVN sandbox.
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to wh
Dave wrote :
As a followup, you may want to consider switching to JSTL for
straight-forward tasks such as this: where functionality is duplicated
between the Struts tags and JSTL it's generally recommended to go the
JSTL route. It's a trivial switch to make, and can be done mechanically
in mos
Does anybody know how i can replace my tag by a struts one ?
Y.
Ce message, ainsi que tous les fichiers joints est destine aux seules
personnes dont le nom est mentionne comme destinataire. Il peut contenir des
inform
Hello,
I'm thinking about the way of storing config variables in my Struts (at Tomcat)
application. Currently I have them hardcodded what was the big problem during
instalation in a different enviroment. These variables are ie. enviroment-
dependent DIRs, passwords (can be stored as plain text,
50 matches
Mail list logo