you can find it in
http://www.us-eh.com/craiger/articles/struts/
Max
--
Da: Nick Afshartous[SMTP:[EMAIL PROTECTED]]
Risposta a: [EMAIL PROTECTED]
Inviato: lunedì 7 maggio 2001 22:11
A:[EMAIL PROTECTED]
Oggetto: Struts power point presentation
Hi,
Someone
Hi,
the problem is the logic of Tomcat. If you deploy the application as *.war file
in the webapps directory of Tomcat, at start time a directory with the same
name as the *.war file will be created and the contents of the *.war file
unpacked into this directory. So far so good, all entries in
Hi Stephen,
Your solution sounds like its just what I'm after. I would greatly
appreciate a look at the code.
Jon.
-Original Message-
From: Stephen Schaub [mailto:[EMAIL PROTECTED]]
Sent: 04 May 2001 23:34
To: [EMAIL PROTECTED]
Subject: Re: Bean:message with args
Is there a way to
Hi Matthias,
Wir sind auch in einem Projekt wo wir die Actionreihenfolge festliegen könnten - ich
hätte gern Deine Erweiterungen zu Struts.
MfG,
Will Mee, Hamburg
Matthias Bauer [EMAIL PROTECTED] on 07.05.2001 10:20:40
Bitte antworten an [EMAIL PROTECTED]; Bitte antworten an
[EMAIL
Which /lib did you put struts in? If you want it to be available to all apps
running under jboss it should go in /lib/ext, but really it should go in
/WEB-INF/lib of each of the web apps you develop.
jim
- Original Message -
From: Harden ZHU [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Make sure you put your war file in the jboss/deploy directory and not the
tomcat/webapps directory as you would if you were running tomcat by itself.
Richard Backhouse
Oak Grove Software
Quoting Harden ZHU [EMAIL PROTECTED]:
Any special setup for jboss? I put struts app under tomcat. And
...I would also be interestedhowever I cannot access this URL !
Lewis
-Original Message-
From: LORENA MASSIMO [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 07:49
To: '[EMAIL PROTECTED]'
Subject: R:Struts power point presentation
you can find it in
Not able to open the webpage
-Original Message-
From: LORENA MASSIMO [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:49 AM
To: '[EMAIL PROTECTED]'
Subject: R:Struts power point presentation
you can find it in
http://www.us-eh.com/craiger/articles/struts/
Max
--
Da:
Hello,
Anyone of you encountered the following error while trying to start the WTE?
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
Not registered, use system identifier
Parse Fatal Error at line 0
I have some HTML tags that have struts form data associated with them of
the form input name=data.value. For example: input name
=data.employeeName/input. I seem to be having difficult referencing
these in Javascript due to the .'. Javascript thinks employeeName is a
property of data rather than
Can anyone tell me when is the final release date for Struts
1.0 Final Release?
Thanks,
Yang Lu
just curious... what about a minor enhancement to do it like this:
bean:message key=prompt.password.sent
bean:write name=someBean property=email/
bean:write name=someBean property=otherAttr/
/bean:message
the listed internal body tags would be handled as
arg0, arg1, arg2, etc.
not that
This is the same classloader bug that WAS has. On the Resources page, go to
the Struts project and create the folder structure for
org.apache.struts.resources. In that folder, add the 3 DTDs from the
struts.jar.
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: [EMAIL
Hi,
I'm trying to activate two actions for one request. After the login-action
the viewCategory-action should be activated. For this I've defined a
forward-statement in the action definition of login (see below). My problem
is, that after finishing the login action nothing happens. I don't get
Hi Marco,
You need to tell struts that the second action should be handled by the action servlet
(e.g. by using the '.do' extension, if you are using the default configuration). Try
actionpath=/login
type=de.softlab.bookmarkmanager.action.LoginAction
name=loginForm
Struts uses a connection pool. So when you do a getConnection() you're
actually pulling one out from a pool of shared connection objects, so
there is no real problem with generating a new connection.
In my application I have manager objects will deal with data beans, and
these managers have
Try
forward name=success path=/viewCategory.do/
instead of
forward name=success path=/viewCategory/
--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
hum... strange
This link is present in the Resources page of the struts user guide
--
Da: Lewis Henderson[SMTP:[EMAIL PROTECTED]]
Risposta a: [EMAIL PROTECTED]
Inviato: martedì 8 maggio 2001 14:25
A:[EMAIL PROTECTED]
Oggetto: RE: Struts power point presentation
I'm rather new to JSP/tags, so I don't know how difficult it
would be to implement your solution. I tend to prefer my
solution because it doesn't require as much typing.
Stephen
- Original Message -
From: Chris Butler [EMAIL PROTECTED]
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: [EMAIL
Test
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
What is the suggested method for singleton,
application scoped object initialization? Where how does it
happen?
I want to create a singleton containing shared
cached lists to be used in populating html:options with.
Thanks.
Hi,
I've got the following property:
String[] data.
I want to iterate the array and display each String in a text input field in
a table. I can get the data to display using iterate and a bean:write tag as
follows:
struts_logic:iterate id=element name=testGrid property=data
You could probably use a separate servlet and set it to load on startup
after struts. The servlet could read a list of URLs from a configuration
file and then use the URL or URLConnection class to hit each of the URLs.
Of course, that's a poor man's way to do it. It would be more elegant if
I have two struts-based web apps installed under a single instance of Tomcat
(Struts Beta 1, Tomcat 3.2.1 connected to IIS). They are defined within
server.xml as follows:
Context path=/cdl
docBase=d:/projects/cdl
crossContext=false
jakarta taglibs has a utility:for tag - http://jakarta.apache.org/taglibs
Mac Ferguson
Senior Developer,
Communicopia Inc.
-Original Message-
From: shunhui zhu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Iterate certain number of
This makes a lot of sense. Could you please describe the steps to deploy the
application with the deploy.tomcat Target of the Struts build.xml? Thanks.
Ying
-Original Message-
From: Uwe Pleyer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:13 AM
To: [EMAIL PROTECTED]
Subject:
Hi,
I have a form with two buttons. If the user clicks one button the form is
submitted via the standard action defined in the form tag. If it is the
second button, I change the action and submit the form. The problem is that
I have a text box on the form that when I check its value in the
Hi,
- Application Servers like WebLogic have Startup/Shutdown classes. Those
classes, when implemented, are automatically called when the app server is
starting/shutting down. Don't know about other app servers/servlet
containers. See the petstore admin (weblogic changed version) reference
Title: RE: javascript and struts
Try thg following
document.form[data.emplyeeName].value
-Original Message-
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:39 AM
To: [EMAIL PROTECTED]
Subject: javascript and struts
I have some HTML tags
Sorry if this is posted twice. I don't think my first one made it
through...
I have two struts-based web apps installed under a single instance of Tomcat
(Struts Beta 1, Tomcat 3.2.1 connected to IIS). They are defined within
server.xml as follows:
Context path=/cdl
I usually need 'wrap=virtual' as an attribute for my textareas. It
isn't part of the HTML spec, but it's supported in both Netscape and IE,
and it's pretty useful. I wonder how people are dealing with the lack of
a wrap attribute in the struts textarea tag.
--
William Jaynes | University of
Hi Alex,
Can you put a
alert(workrequest.wrNumber.value);
in function doWRModify(wrNumber)
after you assign the value to wrNumber?
Is the form name, workrequest (View Source to check)?
My JavaScript might be rusty but aren't all of the lines supposed to
start with
I create many of my application scope lists in an
initialization servlet, analogous to the DatabaseServlet in the Struts example
app.
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 10:51
AM
Subject: Application Scoped
Thanks! That worked.
Hi all,
I searched the archive and realized there was no answer to the following
problem that many people (including me right now) had:
when I tried to view a JSP using Tomcat, I got the following error:
org.apache.jasper.compiler.CompileException:
Nevermind, I found a solution in the Tomcat
archives regarding this. I created a dummy servlet that initializes my
singletons.
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 10:51
AM
Subject: Application Scoped Object
I asked this question a few weeks ago and believe the
answer is to write a servlet, override init() and
destroy(), and set up the servlet to load the servlet
at server startup.
With Servlet 2.3, you can add ServletContextListeners
in the web.xml to do the same thing.
Calvin
--- Jeff Trent
Hi all,
I figured out what was wrong with this, and I am posting the result to be
archived. It seems like another 5 people or so had asked that question in
the past but got no answer. The reason is that the WEB-INF must not be
misspelled in lowercase. If you're using Windows NT you won't notice,
Here's a quick write up. Let me know if you have
problems with it. I tried to use an example that is
as real world as possible and that cannot necessarily
be fixed with some user realm/role solution.
Calvin
--- Ted Husted [EMAIL PROTECTED] wrote:
Feel free. If you would like to document it,
Hi. I have a set of radio buttons. However, if I check one of them, I am not
able to uncheck it!
Any ideas what I am missing?
Many thanks,
Dave
--- Vanderlei Silva [EMAIL PROTECTED] wrote:
The
problems with this approach are: the DAOs are not a
member of the Business
objects, but work in parallel with them. Thus, the
controller deals with
both the business objects and the DAOs, and makes
all the control, serving
also as a
Why not have your Managers create a connection as well
as taking in a connection?
Calvin
--- Shunhui Zhu [EMAIL PROTECTED] wrote:
That opens up lots of questions I also have, I'm
sure many of you have
some
solutions to these:
(1)I went through a similar exercise, I first
followed the
Any idea why the following...
--Snip: ActionForm BEGIN--
// List of values
private List specialdatetypeList = new ArrayList() ;
// Specified by: interface Specialdate
public List getSpecialdatetypeList ( ) { return
this.specialdatetypeList ; }
Hi,
I am trying to setup tomcat and IIS in win2000, followed the
tomcat-iss-howto instructions
(http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.ht
ml)
Port for the webservers: tomcat - 8000 and IIS - 8080
While try to access the url
When validate() returns an error collection, the
framework takes me back to the input page (page1). How do I override
this? I have a multi-page input wizard as shown below. I'd like to
stay on the page that resulted in the error instead of going back to page
1.
action
path="/someWizard"
Hi,
when I start tomcat , this Messages come:
ERROR reading D:\all\struts\webapps\bo-shop1\WEB-INF\web.xml
At Illegal character at end of document, #x3c;.
ERROR reading d:\all\struts\webapps\bo-shop1\WEB-INF\web.xml
org.xml.sax.SAXParseException: Illegal character at end of document,
#x3c;.
I put struts.jar in /WEB-INF/lib of the web app.
-Greg-
-Original Message-
From: Jim Downing [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:55 AM
To: [EMAIL PROTECTED]
Subject: Re: JBoss and struts
Which /lib did you put struts in? If you want it to be
available to
Sub-class ActionServlet and override the init() method.
Also a good idea to override the destroy() method to clean up allocated
resources. Additionally the reload() method does the destroy and init
actions to re-load the servlet.
public void init() throws ServletException {
Are you sure the radio buttons all have the same name?
If not, they will all be treated seperately.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 11:42 AM
Subject: Unchecking radio buttons?
Hi. I have a set of radio buttons.
Hi,
when I start this program this message comes:
action: Error in readForm: javax.servlet.ServletException:
MultipartIterator: cannot retrieve boundary for multipart request
What is the cause ?
...
if(contentType!=null)
{
try
{
servlet.log(MultipartIterator!!);
Ok there has got to be a better way to fix it than this:
html:select property=specialdatetypeLinkno
logic:iterate id=specialdatetypeEntry
name=specialdateForm property=specialdatetypeList
type=com.trams.struts.cbplus.SpecialdatetypeForm
html:option
I'll presume that you mean, (1) you check a checkbox, (2) hit submit (3)
page redisplays with checkbox checked (4) you uncheck it (5) hit submit
(6) page displays with checkbox still checked. The problem is that an
unchecked checkbox doesn't return any request parameter, so there's no
way for
Hi Anthony,
I believe you may need to declare the getters that return the ArrayList to
return a Collection. I don't think that an ArrayList would work.
Alternatively, you may make the getters return an array, and convert the
ArrayList to an array when it gets returned. However, I believe the
Yeah can somebody send an explaination as to why this happens ? Thanks a
lot.
cheers,
Amar..
-Original Message-
From: Sundaram Ramasamy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:13 PM
To: [EMAIL PROTECTED]
Subject: tomcat 3.2.1 and IIS problem
Hi,
I am trying to
instead of mapping.findForward(mapping.getInput() )
use mapping.findForward("page2 or page3")
;
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 3:17
PMTo: [EMAIL PROTECTED]Subject: Override
Input Form / JSP when Errors Are
I know. Struts doesn't handle unchecked boxes very well. In fact, it
doesn't understand them at all.
What you do is grab the current value from the DB display it, and then
manually set the value to false from either a Reset() action in your FORM or
directly from your JSP.
If you don't
Hello All,
We cannot have an attribute name in the form bean as:
String aBookkeeping;
I get an Exception:
javax.servlet.jsp.JspException: No getter method for property aBookkeeping
of bean org.apache.struts.taglib.html.BEAN
I do have set/get methods for above as,
typically when you click a radio button that is the default behavior one
or the other is always checked. The only reason it would not automatically
be checked when you initially view the page, is because you do not have the
'checked' attribute set within your tag. Checkboxes, unlike radio
What version of struts are you using (nightly-build)?
The current production releases version 0.5 and 1.0-b1
dont allow you to use an ArrayList you have to use a vector instead.
-Original Message-
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:50 PM
To:
Is it just me or has the list received this message well over 10 times?
Chris
-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Potential Security Flaw in Struts MVC
Curt,
I don't dispute what your
check the bean naming rules (previous messages in this list highlight the
problem). Problem arises from lower/upper case combination with first two
letters.
DAve
Nageshwar Charka [EMAIL PROTECTED] on 05/08/2001
04:07:09 PM
Please respond to [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
Yeah. Check the mailing list archives. Somebody has explained the problem
with a solution.
cheers,
Amar..
-Original Message-
From: Nageshwar Charka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 4:07 PM
To: '[EMAIL PROTECTED]'
Subject: Form Attribute limitation
Hello All,
We
Hi,
thanks your hints below solved the problem.
Alex
quoted message:
Date: Tue, 8 May 2001 10:46:52 -0700
To: [EMAIL PROTECTED]
From: Abraham Kang [EMAIL PROTECTED]
Subject: RE: why is this form not being properly submitted?
Message-ID: 002e01c0d7e6$dd825510$[EMAIL PROTECTED]
Hi Alex,
Hi,
suppose you have an object in the session. If the user access a page that
uses this object you want data to be displayed but if this object is not in
the session you want the page submitted so that the user will end up on the
next page. A sort of a wizard app.. page 1 to 2 to 3 where you
Hi, I am trying to use struts to show a couple of icons.
The following html works:
IMG SRC=./Images/cancel.gif ALT=Cancel NAME=btnCancel
onClick=doCancel();
but this does not?
html:image src=/Images/cancel.gif alt=Cancel property=action
alue=cancel/
In the struts way the form is submitted
Check the archive.
http://marc.theaimsgroup.com/?l=struts-userm=98900256403524w=2
Wayne
[EMAIL PROTECTED]
-Original Message-
From: Nageshwar Charka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: Form Attribute limitation
Hello All,
We
I've been using the awesome Emacs ECB and JDE for my Java (and now Struts)
development work and really love it :-)
Just wondering if anyone else on the list uses this and how they handle
debugging in JDEbug?? I can debug with it fine by starting Tomcat from
within JDE, but there's a lot of
Your src is different in each case. The first one includes a . at the
beginning, the second does not.
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 13:50
To: Struts
Subject: icons not showing up?
Hi, I am trying to use struts to show a
thanks for the replies.
Yes, I need the checkbox capabilities, not radio buttons.
Question with these, though - is there an equivalent to the checked attribute
in HTML reference speck?
I am creating checkbox with the following: html:checkbox property=notFolders
value=true/, and underlying
Hi,
In Jakarta virtual directory properties, I checked scripts source access
open, then rebooted my machine. Now its working.
Cheers
Sundaram
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:56 PM
To: '[EMAIL PROTECTED]'
Can someone point me to a good reference for the mechanism
of displaying errors using strut's custom tags?
Thanks,
Brett
Title: RE: html:text default values? how?
Why don't you use Struts and the MVC design pattern? You should have an action class that populates your form bean, then forwards to login.jsp. Struts will get the value from the form bean and display it on your page.
-Original Message-
From:
String referrer =
request.getHeader(Referrer);
requestDispatcher requestDispatcher =
request.getRequestDispatcher
requestDispatcher. forward(referrer);
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 5:12 PM
Subject: Re:
Emacs is geek overload. Try textpad, jbuilder(which is free), or webgain
- Original Message -
From: Jon Brisbin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 4:50 PM
Subject: Struts debugging in Emacs/JDE
I've been using the awesome Emacs ECB and JDE for my
All you really have to do is to manually set the checkbox value to false
after you display the current value:
ie:
html:checkbox property=mycheckbox / // notice that no value is set
% MyForm.setMycheckbox(false) %// do this after you display the
above line in same JSP
where:
Title: RE: Struts debugging in Emacs/JDE
Actually, Emacs is one of the best editors you could use.
-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts debugging in Emacs/JDE
Emacs is geek
All of the files inside my struts.jar file are dated 2/23/2001 2:32pm. I
use ArrayList all the time with logic:iterate, just not with
html:options.
Anthony
-Original Message-
From: Mehta, Shail [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 12:59 PM
To: '[EMAIL PROTECTED]'
Emacs is geek overload.
nooo, emacs is geek heaven :-) it's like Coke or Pepsi. you have your
favorite, i have mine :-)
i've tried nearly every ide for java out there and none have the power and
functionality of emacs/jde, including the debugging capability, all with an
acceptable user
Brett,
the doc in
jakarta-struts\src\share\org\apache\struts\taglib\html\package.html gives an
overview and indicates where to find the struts supplied examples.
Just remember to add the message texts to your ApplicationResources
properties file.
Nige
-Original Message-
From: Procek,
that would definitely work. however, it adds another class to the mix
of things. something that was easy was made difficult to do. basically
for something using just JSP is a cinch.
my options are: add the new action and a new class, maybe add a new
action that doesn't validate the form but
Title: RE: html:text default values? how?
It is the way Struts is intended to be used. You should read up on the MVC/Model 2 design pattern. If you strictly follow this pattern you should never directly access a jsp page, instead you should always go through an action class.
-Original
I'm still having problems despite reading a bunch of materials on this
stuff.
I copied the related code snippet from various files I have. I'm
guessing that I'm
missing something obvious. I'd really appreciate if someone can lend a
hand.
Here is what I have so far:
To be specific go the following url and just click the Thread -- link
repeatedly to follow the thread
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05429.html
-Original Message-
From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Sent: Friday, 4 May 2001 12:08 a.m.
Brett,
this works for me ...
ActionClass..
ActionErrors errors = new ActionErrors();
//validate that the suplied newPassword and confirmPassword match
if(newPassword.compareTo(confirmPassword) != 0) {
errors.add(ActionErrors.GLOBAL_ERROR,
Given the following code snippet:
String operation = request.getParameter(op);
if (operation==null) {
// Maybe it's multipart
java.util.Hashtable multipart =
form.getMultipartRequestHandler().getTextElements();
operation =
How can I am receiving this message again and again in two days?
I have received over 10 copies of this message, at the rate of once every 3
hours. Is this a mail bomb?
Yi-Xiong
-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 11:15 AM
To:
has anyone tried this on w2k server ?
Yong Chen
-Original Message-
From: Sundaram Ramasamy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 4:26 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat 3.2.1 and IIS problem
Hi,
In Jakarta virtual directory properties, I checked scripts
Interesting approach. Let me see if I can
explain this back to you to make sure I understand what you are
saying:
Does your Wizard.jsp look something like
this:
template:insert
template='/template.jsp' template:put name='header'
content='/header.html' / template:put name='sidebar'
Are you suggesting that I put the redirect in my
base input jsp on the condition that errors exist? No offense, but this
seems to be a hacky approach.
Are we saying here that there is no suggested
struts method to handle this situation?
- Original Message -
From:
Jonathan
The following code:
html:select property=combobox2 size=1
html:options/html:options
/html:select
appears to be generating the following compile error:
Body is supposed to be empty for html:options
Anyone have any clues as to why this compile error occurs?
There is
The error message you are seeing is not strictly accurate (which is a
problem with your JSP container). The real problem is that the
html:options tag should not have a body at all, not that the body is
empty. In other words, what you should have in your JSP is this:
html:select
Hi there,
This is sudhir from India, and have just joined the mailing forum. Can
anybody help me in knowing all the Basics about STRUTS, and how can i use
it.
Thanks and Regards
Sudhir M.
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09,
92 matches
Mail list logo