Whenever I start my application after redeploy I get the error given below.
But on a subsequent refresh of the page the browser displays the jsp on the
screen exactly fine. This happens for every jsp in my application. Does any
body know why this happens ?
May 3, 2001 12:03:36 PM GMT+05:30
Where should I put .properties file(s) in my WAR ?
Should they be in the application .jar (where I put the classes that use the
properties files, ie. the helpers used to implement the struts Actions), or
in the META-INF somewhere?
When I run the application under Forte it works fine with the
Andre,
Though PoolMan is now version 2.0.1, your code could be interesting. If you
find it again, thanks to put it on this list or send it directly to me at
[EMAIL PROTECTED]
On the other hand, I do not understand why you had to stuck the poolman
instance in the init method, maybe it was
Hi,
if I deploy my EJB-applikation using struts (struts.jar is stored in the
.war-file in WEB-INF/lib) as .ear-file (on WLS6.0 SP1 running on NT4.0 or
Win2000) I get exceptions like:
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at
Hi,
I am new to struts.
I did the download of the release of strust (1.0b1).
I use winzip, and now I have a directories structure.
But where to begin ? What I have to do to create a new application ?
Thanks
geoffrey...
Hi,
u copy the struts-example.war to tomcat\webapps and then type the url
localhost:8080\struts-example. u should get a pge which is the home page for
the
example application that comes with the struts
thanx
manabendra
-Original Message-
From: Geoffrey Van Nuffelen [SMTP:[EMAIL
my guess is that this can be avoided with web.xml.
in web.xml you set the patterns which do URL/servlet matching...
can you provide more details on the forward called
and your pattern matching in web.xml?
c
At 04:00 PM 5/2/2001 -0400, Mindaugas Idzelis wrote:
When you create a new
There is an pretty good example in the source directory src/upload/* or
webapps/struts-upload.war
- Original Message -
From: Graeme Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 03, 2001 2:15 AM
Subject: File uploads and Struts
Anyone here know where I can find a
Hi,
I'm new to struts, we're planning to use it to access an EJB tier. I'm
bothered by what seems to be an inefficient and difficult to maintain
pattern were using as a consequence:
A large portion of what our app does is pretty standard - getting a record
out of a database, presenting it to
Hi Jim,
There has been discussions about this on the mailing list. I suggest you have a look
at the archive at
http://www.mail-archive.com/struts-user%40jakarta.apache.org/. Look for EJB and
specially communicating with EJB.
Jean-Noel
- Original Message -
From: Jim Downing [EMAIL
Hi,
I've just installed struts on tomcat 3.2.1. I could start tomcat without
any problems but when I tried browsing to struts-example, I get the
following error:
Internal Servlet Error:
javax.servlet.ServletException
OhBoy. I would never do this. The main reason is that if ou are
internationalizing your app, you never know what the next language you are
going to support in your application. So if you wrote for some particualr
languages and you want to include an other language you need to rewrite the
whole
Hi,
I have a Struts application that has been up and running in production
for about 2 months now. I decided to upgrade to the latest nightly build to get
up to date. The old version was Feb 18 nightly build. Now my application and
the example application will no longer run. They both
pleeaaasssee help
What i have is this...
html:form action=/eFilerAdd
center
.
.
.
tr
th align=center
Hi Alec,
If I understand what you want to do, you're trying to iterate over two collections at
the same time, and not over nested
ones. That can't be done in Struts now.
However, you can modifiy the html code to do something like this:
table
trtd
table
logic:iterate id=cols
Hi,
I'm trying to generate a table of data from a 2 dimensional array of Strings
called ( String[][] data ). I am trying to use the struts tag
logic:iterate to loop through the data and generate the table. As it is a
2 dimensional array I have nested the iterate statements as follows:
Hi,
For anyone interested I managed fix my problem with the following:
struts_logic:iterate id=rows name=contributorList property=data
scope=page
tr
struts_logic:iterate id=element name=rows
tdstruts_bean:write name=element//td
/struts_logic:iterate
Very good Jon. One last question -- have you tested far enough to see if
Error messages display in JSP's? I think you might have to set another
classpath on the servlet engine or the workspace classpath to get that to
work -- it's not working so far in my system...
Kyle
Jon.Ridgway [EMAIL
Richard,
What does the array look like? Can you post the logic for that array?
On Thu, 03 May 2001, Richard Murray wrote:
Hi,
For anyone interested I managed fix my problem with the following:
struts_logic:iterate id=rows name=contributorList property=data
scope=page
tr
Hi Kyle,
Yes error messages are OK. One thing I did have to change was under point
7), the servlet-path should read :
servlet-path*.do/servlet-path
the / in front seems to have caused a problem.
Jon.
-Original Message-
From: Kyle Brown [mailto:[EMAIL PROTECTED]]
Sent: 03 May 2001
Title: RE: i18n...
I concur, Resin is an excellent app server. If you need EJBs as well, you can also use JBoss with Resin.
-Original Message-
From: Paul Tindall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: i18n...
Jason,
I
Does anyone out there know whether I have to change somekind of document base in
Tomcat 3.3? I have moved to it from 3.2 and none of my images are showing up,
including those with struts html:image tag.
Any help appreciated!
Dave
Could someone explain a little more about when you would want to use either
the include or forward attributes of the action tag (used in
struts-config.xml) instead of the type attribute? An example or two
would go a long way to clarifying when and why someone might want to use
either include
Sean,
You would probably not write the task as a Servlet. Instead, as part of your
startup you'd put the task in application scope. Remember that Servlets/JSPs
that talk to the task are going to do so from different threads (potentially at
the same time). The task would probably manage its
Hi, I have a class which has a method 'Columns' which is a one dim array of
Strings. How can I check to see if that method returns null. I want to write
out one message if it is null another if it is not.
Thanks for the help.
Regards
Alex
I'm new to Struts also and I faced the same problem recently... and my
solution was to use this
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:submit
bean:message key=Submit/
/html:submit
Maxime Soucy
Ad-Opt Technologies
- Original Message -
From: Kris Vandenberk
Why do you want to translate the submit value ? Try this then and it will
work. Constants is a java file. This name will be send back to the server if
you press this button. The message appearing to the user is
internationalized.
html:submit property= '%=Constants.SUBMIT %'
bean:message
if(classinstance.Columns()==null)
//do something
else
//do something
NOTE: There is a difference between checking if an
array is null and checking if the elements within the
array are null. The above example checks the array
itself.
scott.
--- Alex Colic [EMAIL PROTECTED] wrote:
Hi, I
You should just have to put it somewhere in the
classpath (i.e. web-inf/classes)
scott.
--- Matthew O'Haire [EMAIL PROTECTED] wrote:
Where should I put .properties file(s) in my WAR ?
Should they be in the application .jar (where I put
the classes that use the
properties files, ie. the
A reference to the DataSource is stored in the ServletContext object... You
can get it from that.
- Original Message -
From: Ying Teng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 03, 2001 11:28 AM
Subject: RE: database connection
What you described is true. Now my
The ServletContext object of databaseServlet or the ActionServlet? Could you
be more specific? Thanks.
-Original Message-
From: Vivek Bhaskaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: Re: database connection
A reference to the
I am having difficulty with the HTML output when using nested iterate
tags. After reviewing the archives, I can see others have had a similar
goal but I didn't see any working solutions.
For some reason all of the output from the inner bean:write is being
printed before the body of the
I have just started to evaluate Struts as a possible platform for development.
When I tried to run the struts-example I got the following error (reading the
mail indicates other newbies are having similar problems):
Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:
I had
this problem last night on Windows ME, JDK 1.3.1. The exact same project
files worked fine on Win2k and FreeBSD without having to mess with the classpath
like that.
I have
found that Windows ME has issues with it's environment space. Some issues
clear up when you execute "COMMAND /e
Hi Scott,
I work with Matt.thanks for the response. We have located the properties
file in WEB-INF/classes both at that directory level and at the directory
that the classes reside in (WEB-INF/classes/sub-directory/actualcode.class)
but we still get the same error. Even tried adding $TOMCAT
Title: RE: locating .properties files
You shouldn't be adding WEB-INF/classes to your classpath. This should be running as a web app.
You should have the following in your deployment desciptor and you should have ApplicaionResoruces.properties in the WEB-INF/classes directory:
servlet
There is only one ServletContext for the entire Web Application.
-Original Message-
From: Ying Teng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 5:05 PM
To: [EMAIL PROTECTED]
Subject: RE: database connection
The ServletContext object of databaseServlet or the
John,
If I subclass servlets does that mean they always run within their own
thread? The reason I ask is that this process I am talking about is a
connection to a remote server. The calls to and from this process are
asynchronous and thus the remote server can send messages to this process at
Title: RE: locating .properties files
I have the same problem ... I need to keep the
properties file in two places or else something gets wacked. Haven't had
the patience to research it any further...
- Original Message -
From:
Jason
Chaffee
To: '[EMAIL PROTECTED]'
Hello All,
Have not seen this posted yet, wanted to update people. There is a whole
chapter on Struts in the new JSP second edition book:
http://www.amazon.com/exec/obidos/ASIN/1861004958/smw-20
There is also a reference to an example at the WROX site. It is a Struts
shopping cart example:
40 matches
Mail list logo