it was the dtd that couldn't be found by silverstream . i had to put it in
the installation bin directory ..
thanks for your support !
Wolfgang
Title: RE: Struts DB example
Bill
Check
out TeaTimeJ Web TimeSheet www.teatimej.com. It is a STRUTS 1.0+
based application and it uses Castor JDO to maintain records in a MySQL
database.
Regards
Michael Mok
-Original Message-From: Bill G
[mailto:[EMAIL PROTECTED]]Sent:
Title: RE: Struts DB example
Thanks
Michael!
I'll
check it out.
Bill...
-Original Message-From: Michael Mok
[mailto:[EMAIL PROTECTED]]Sent: Thursday, October 04, 2001
12:34 AMTo: [EMAIL PROTECTED];
[EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: RE:
Struts DB example
Title: beginner's question
You should try to look in your /logs files in the
%TOMCAT% directory...
The jvm.stderr and jvm.stdout contains some info
about what is displayed in the DOS window... Look here first, and try to fix the
problem...
If it persists, contact me back... ;-)
Michael
I was wonder how to use ApplicationResources?
Its a properties file, but the users guide mentions it being a class, so
how does it work?
I was wanting to store my ApplicationResources.properties just in my
WEB-INF directory, and I don't think storing properties under classes is
good
hahahaa,
Sorry for laughing at you. You must be satrting with struts.
Well, it's a a .properties file, but if you look at the content, you should
see something that doesn't seem to be properties...
In fact you should look attentively the struts-blank app, and see how the
AppRessources.properties
Micheal
please could you tell me something more about castor JDO
Thanx
Amit
Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
struts 1.0, Java2 SDK 1.3
[I'm not on the mailing list, so please Cc me on any
response. Thanx!]
I've downloaded the binary distribution of struts 1.0
from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/
Hello everyone
Does anyone knows the steps to deploy a WAR application using struts under
Weblogic please
When compiling to create the web.xml and weblogic.xml, it returns an error
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/struts/action/Act
ion
Help me please
Ahmed
On Thu, 4 Oct 2001 14:03:04 +0530
Amitkumar J Malhotra [EMAIL PROTECTED] wrote:
Micheal
please could you tell me something more about castor JDO
Thanx
Amit
I'm interested too in Castor JDO, it will be cool i can have real-code examples to
understand the whole thing
Hi,
I have a couple of array lists which are used to populate various select box options on my jsp page. At the moment I populate the values of my array lists with values that I get from a database and then proceed to insert these array lists into the same scope that is specified in the config
html:radio property=radioButton /
getter and setter for the property radioButton and set your html:form
method=get action=bla
/html:form
define a variable like this (Form-Bean)
private String radioButton = nb1;
public void setRadioButton(String radio) {
this.radioButton = radio;
}
public
Hi Jeff,
I'm no guru - what i do with a problem like this is start removing
bits till the problem goes away. As it's in the form tag processing
take out bits within the form (like the html:select).
Sorry, this is the best help I can give. It's hard isn't it!
Good luck,
Keith.
--- Jeff Canna
sounds like a classpath issue to me. make sure your struts.jar is in your
weblogic classpath when the server is started.
ALAMI Ahmed - BOR wrote:
Hello everyone
Does anyone knows the steps to deploy a WAR application using struts under
Weblogic please
When compiling to create the web.xml
You wrote:
That was it! I changed the access rights of
/struts-example/WEB-INF/ from deny from all to
allow from all, and then it worked from apache
as well.
Hm... when I look at other Location tags, I see
that the usual default is deny from all.
I wonder what makes struts applications
Or put the struts.jar in the WEB-INF/lib directory of your war file.
Jonathan M Crater wrote:
sounds like a classpath issue to me. make sure your struts.jar is in your
weblogic classpath when the server is started.
ALAMI Ahmed - BOR wrote:
Hello everyone
Does anyone knows the steps
Hi,
When I forward from one action to another action, is it possible to find out( at run-time ) which action the forward came from?
eg
If class A forwards to class B. Can class B tell that it was forwarded to by class A?
Thanks
Chiji
From: Steven Valin <[EMAIL PROTECTED]>
Reply-To: [EMAIL
Hi,
Need a hint on how to do the following:
I have a bean which is a vector of items. Each item object has a name,
description price etc. When the user selects an item I create this vector
and pass it to a page which iterates through the vector and creates a table.
Something like:
name
I would have thought that you are going to have to try and read the first
element of the Collection prior to the iterate tag, and store the first
element in the page context so that you can use its name and desc attributes
to populate the table caption.
You could try with tags but I would use a
Hi,
I'm trying to develop a basic portal app using tiles. Each user may have
selected different components that they want to display in different
locations. At the moment the I'm thinking of implementing this by
dynamically building up a Definition for each user containing their
preferences -
I am using
html:textarea property="defaultMemo" cols="30"
rows="2" /. I want to validatemaxlength = 128. How Can I do
it.
Prakhar
I have something written that will do the server-side browser detection,
etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
script that I stumbled on a while back. :) It'd be a great idea for a tag
though - go for it! :)
Chris
Christopher Assenza
Phone: 412.201.6026
You
can't. There is no MAXLENGTH attribute for the TEXTAREA tag in
html.
You
can check the length in the form bean after the user has submitted the form, or
maybe you could use javascript.
Mark
-Original Message-From: prakhar
[mailto:[EMAIL PROTECTED]]Sent: 04 October 2001
I need to configure my application by Xml.
Is it possible to add personnal XmlTags in the Struts-Config.xml file
and manipulate them in a Action class with the Digester ?
Thxs.
Bruno
I have an application-config.xml.
But how my application could know the name of the file without using a
constants file ?
-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:41
À: [EMAIL PROTECTED]
Objet: Re: Adding Xml Tag in
Is it a problem, if you hard code it into a final static memmber of
a class?
--
gR
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 3:55 PM
Subject: RE: Adding Xml Tag in Struts-Config.xml file
I have an application-config.xml.
But
Is it possible to have multiple ActionServlets (each using a different Struts config. file) in the same web app? I.e., there would be two (or more) servlet definitions (and corresponding servlet mappings) in the web.xml file, each specifying a different Struts config. file? Would this work, or
Hi,
When I forward from one action to another action, is it possible to find out( at run-time ) which action the forward came from?
eg
If class A forwards to class B. Can class B tell that it was forwarded to by class A?
Thanks
ChijiGet your FREE download of MSN Explorer at
chiji nwankwo wrote:
Hi,
When I forward from one action to another action, is it possible to find
out ( at run-time ) which action the forward came from?
I would think you could just set a variable in request scope before you forward,
then read it in the forwarded-to action.
HTH,
Hi,
I am new to Struts.
I am having a form where in the user can enter the search criteria and
click the submit .
We need to show the search results in a new window as popup.
If I use actionMapping.findForward() in the perform method of Action
class it shows the results in the same window.How
You can set the target of the form to be a new window. The browser will
then be responsible for
loading the resulting page into a new window.
HTH,
Pete
[EMAIL PROTECTED] wrote:
Hi,
I am new to Struts.
I am having a form where in the user can enter the search criteria and
click the
Is
there a way to refresh/reload messages from a resource bundle once they have
been cached in memory?
Mitesh MehtaS1 Corp (http://www.s1.com)
Hello all :
I try to run struts with tomcat 4.0 and get this exception at the startup :
java.lang.NullPointerException
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at
I am trying to setup struts and vaj3.5.4 in WinNT.
Has anyone setup the WTE and if so - can I please get guidance to do the
same my end?
Thanks in advance.
Murlidhar.
This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient,
You can create an administrator action to peform this for you.
I think that the struts-example app might have an example of this.
You might want to check the archives, because this question has been
asked many times.
HTH,
Pete
Mitesh Mehta wrote:
Is
there a way to refresh/reload messages from a
I like the idea for the OS and Browser check. However I would suggest that
the checks be made separately and not within one tag. How about if we can
modify the logic:present to have two more parameters? ( that can also go for
notPresent ).
E.g.
logic:present os=unix
!-- the code --
In the form where you put your search criteria use the 'target' attribute.
Something like:
html:form action=/search target=_new
In 'target' you are supposed to tell the form to which frame it will be
forwarded, but if you set the target to a non-existent frame, it'll open a
new
Verify if your error-page tags are defined before any taglib tag.
Tomcat 4 not allows to declare taglib before error-page, even though tomcat 3 accepts
it.
-Message d'origine-
De: Viet Kevin [SMTP:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 16:52
À:[EMAIL PROTECTED]
Objet:
Antigen for Exchange found peter.alfors.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, Re: Refreshing/Reloading
MessageResources, was
sent from Peter Alfors and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
...
'copy the struts-upload.war to webLogic6.0sp1.'?
How you deploy the war file?
Are you using the Default Console?
- Original Message -
From: BinhMinh Nguyen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 6:55 PM
Subject: weblogic 6.0 and STRUTS problem
Hi
I
Alex,
Hi. Just a thought - why don't you take out the first row and place it as
another item in your form bean before you get to the page?
Not ideal, but would work!
Dave
Alex Colic [EMAIL PROTECTED] on 10/04/2001
08:16:52 AM
Please respond to [EMAIL PROTECTED]
To: Struts [EMAIL
It's not a problem for the file name but for the directory name of the file
configuration.
If the directory change, i don't want to recompile my app.
-Message d'origine-
De: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Date: jeudi 4 octobre 2001 15:57
À: [EMAIL PROTECTED]
Objet: Re: Adding
To get the first element of the Vector set the length=1 in the iterate tag
for example:
logic:iterate id=currRecord name=beanName property=vectorName
length=1
bean:write name=currRecord property=name/
bean:write name=currRecord property=desc/
bean:write name=currRecord property=price/
I have not looked at the Present Tag code or the design. However, I think if
it is designed to be flexible, present tag can be used to check the browser
and the os.
One way is to expand the Scope values. One more scope value can be added
as System where the present tag will search for values
Hi,
Does anybody know what I can do to resolve the following problem with the
file upload?
Summary of problem:
I am using the struts nightly build from 10-4-2001 and java version
1.3.1_01.
I have the maxFileSize set to 10M. The file I am loading is around 7M.
The file upload works great
Hi,
I'll be working on this problem today
- Mike
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: File Upload Problem
Hi,
Does anybody know what I can do to resolve the following problem
Title: RE: Struts DB example
Michael,
Is
there a .WAR file for TeaTimeJ that you'd be willing to let people play with as
an example of DB access andCastor JDO with Struts?
Nathan
Anderson
-Original Message-From: Michael Mok
[mailto:[EMAIL PROTECTED]]Sent: Thursday, October
Hi Tom, Thanks, my file uploads with no problem.
On Thursday 04 October 2001 12:38 pm, Tom Tibbetts wrote:
Hi Susan. Go to Bugzilla and look up bug #3702 and download the the last
two attachments and build them under the struts.upload package. This
should get you by until the code owner for
Hi Tricia,
try adding a .do to showEmailFriend (/util/showEmailFriend.do). That
should solve it.
--John
-Original Message-
From: Tricia Ong Cheah Yen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Pop-Up Window
Importance: High
There's talk about doing something with a os/browser bean that would
handle the detection, and then you could use a tag to expose that
information in the page if needed.
In any event, this functionality is not directly related to the
framework resources, and so would be best provided by a
What is the best approach for using the Validator to make sure input
text is under a specified length?
Are textareas supported by the validation framework?
Thanks
Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044
I noticed there is support in struts to allow a person to load a file
from their local station to the server.
Is there support to go the other direction? I have an application that
allows the user to download data to a file on their local system. I
would like to create the data on the server
Scott,
Yep, this is no problem. In your action simply open a stream, do what you want,
and then return *null* from the Action.
If you're utilising the regular download dialog, you'll want to set the response
content/header stuff. So in your action you might have something like:
I'm not sure if this is what you were asking about,
but you can use html:messages instead of html:errors
to give a little more control over displaying errors.
The html:messages tag iterates over the errors so you
can insert markup around an individual message. You
can also use the property
Hi Scott.
not that I know of. I ended up grabbing the ServletOutputStream from the
response and streaming my file to the client that way. On the JSP, I
create a link that points to action mapping I've designated to do the
download. Remember to set the content type of the file. For the
Hi Tom,
Not sure on how to stop it. Is it something to do with the checkbox on IE's
File Download dialog which says Always ask...?
Dave
PS I get 2 dialogs on netscape two!
Tom Tibbetts [EMAIL PROTECTED] on 10/04/2001 02:07:19
PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL
hello,
i was looking at the source code of
org.apache.struts.action.ActionServlet and noticed that it makes use of
double check locking:
...
protected Action processActionCreate(ActionMapping mapping,
HttpServletRequest request) {
// Acquire
Thanks for all the help. I got it working.
Alex
I have a question along a similar vein:
I have a pop up window that is used to populate a set of items in a main form.
This pop up window is used in several different places.
I have 2 ActionForm classes and separate Actions for the main and the pop up
form.
I need an approach on how to close
The always ask... checkbox for me is checked and greyed. If I choose
save to disk, then it saves fine and exits, but if I choose to open with an
application, then the box comes up twice. Now, if webservers can create
the proper headers for downloads, I should be able to as well. I just
An init-param entry in your web.xml should be the solution.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 2:55 PM
Subject: RE: Adding Xml Tag in Struts-Config.xml file
I have an application-config.xml.
But how my application could
Title: RE: Problem integrating STRUTS and WEBLOGIC 6.0
The problem is in weblogic6.0. Read these messages for details.
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg02086.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg02611.html
-Padma
-Original
In response to:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15960.html
Dave - what regular expression would I use to say any characters, just less
than 1000 characters?
Thanks,
Matt
__
Do You Yahoo!?
NEW from Yahoo! GeoCities
Read under Numeric quantifiers
http://gnosis.cx/publish/programming/regular_expressions.html
On Thu, 04 October 2001, Matt Raible wrote:
In response to:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15960.html
Dave - what regular expression would I use to say any
Does anyone know if it's possible in xml configuration files (or my jsp using
tag libraries) to make my application only accessible via an https connection?
I know I can use javascript on my form-login page to do a redirection, but I'm
hoping there's a cleaner way.
Thanks,
Matt
I'm reposting to fix the typo public void setgetErrdesc text below is
corrected. I'm still having the same parsing problem as before.
You know, if I reformat the XML string to look like this:
loginerr errnum=18 errdesc= Your smallcorp site login has expired!!
/
...it works fine (I can
The technique appears to work but after the download I want to forward
to another page and it appears that if you return a forward to struts it
has a problem because you have already used the response.
Do I have to return a null when I am done with the download?
Scott Ryan
Developer
First
It has come to my attention (and I notice several threads in the archives)
that one include generally doesn't work well with Struts. I've tried to
work around it in a whole bunch of ways. Then I had this idea:
Is there any reason that actions have to be forwarded instead of included?
If I had
Technically, the nightly releases are pre-betas. When the time comes,
there would be a formal beta (or release candidate). But I don't think
we are anywhere near that point yet ;-)
BinhMinh Nguyen wrote:
Hi,
I am currently using Struts 1.0 and very happy with
it.
But when I tried
Using TC3.2.1 I was able to view all request parameters on the system.out
stream.
Does anyone know how to configure TC4 to provide this data?
David Bolsover
1 Stephouses,
Hollywood Lane,
Mellor,
Stockport,
Cheshire,
SK6 5LR
Tel: +44(0)161 427 6920
Fax: +44(0)161 427 6922
Mobile : +44
Title: RE: tomcat 4.0 and struts problem
Hi,
There was a similar problem discussed last week. My solution at the time was similar, and a bit dodgy :)
I've just read the Tomcat 4 Class Loader HOWTO today and that explains the problems - as you've said its all to do with XML parsers.
I think
Hi,
I am having a tough time trying to install Struts on WebSphere Application
Server 3.5.3 Advanced under Windows NT.
Has anyone tried installing Struts in Windows NT with Websphere Application
Server 3.5.3 Advanced?
I followed exactly all the instruction given in
Hi,
You mention Struts and WebSphere. I have the same goal, however my approach
is to get Struts to work in Visual Age for Java 3.5.2 with the WebSphere
test environment first and them move what I learn to the WebSphere Server.
Each document has locations of where to download the Struts and the
Title: RE: Struts DB example
Castor has a mailing list you can subscribe to from http://www.exolab.org. The examples it comes with are quite good, and the list will be helpful in getting them configured for you.
As far as using it with Struts (as I do), I've placed a wrapper around the
Ramakant,
I am not exactly sure when you're getting this message. I am using Tomcat
3.2.3 and this is what I did.
1) Copied the struts-example.war file to C:\jakarta-tomcat-3.2.3\webapps
folder.
2) In C:\jakarta-tomcat-3.2.3\conf\server.xml, I added the following lines;
Context
Can anyone tell me where the following should be placed in the web.xml file?
session-config
session-timeout30/session-timeout
/session-config
Also, does anyone know how to turn on logging in the console on Tomcat 4.0.
I tried posting these questions to the tomcat-user group,
Title: Error: MAPPING configuration error for request URI
Hi,
I'm getting this error out of either struts or Tomcat. I'm a bit confused - the number of them (13) at a time, matches the number of action mappings I have, so it appears to be Struts related, but grepping the source doesn't
Do you have a web.xml in the servlets/web/web-inf directory?
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 05/10/2001 11:21
AM -
Problem with action servlet
George,
how about posting your stack trace etc, and let everyone help you :)
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
JavaNews: http://www.multitask.com.au/JavaNews
- Forwarded by dIon Gillard/Multitask Consulting/AU on 05/10/2001 11:28
AM -
Installing
Hi,
Is it possible to use client-side newsgroup to access struts forum ?
Such as:
news://newsgroups.borland.com/borland.public.jbuilder.corba-rmi
Thanks,
Alex Lin
Hello Everyone,
I am newbie in struts, could some one tell me as to how to go about it, I mean
the material that is available online , Do I need to know UML first ?I have a
fair knowledge of servlets and jsp ,I have already downloaded the struts files
from ASF site.
any tutorials and url's
How to go about it:
- read the resources link from the struts home page
http://jakarta.apache.org/struts/userGuide/resources.html
- see ted husted's home page
- try a simple app for yourself
- read the struts-example app
- read the mailing list archives
- practice
Hi Matt
Here is the code I have written to redirect connection from HTTP to HTTPS
and vice versa
/*
*
*
* Function to perform HTTP and HTTPS redirection
* Author : Michael Mok ([EMAIL PROTECTED])
* Version : 1.0
*
*
*/
public static String
BinhMinh,
Here's what I did to run this on Tomcat 3.2.3:
1) Copied the struts-upload.war file to \jakarta-tomcat-3.2.3\webapps
folder.
2) In \jakarta-tomcat-3.2.3\conf\server.xml, I added the following lines;
Context path=/upload
docBase=webapps/struts-upload
84 matches
Mail list logo