I want to know about this too. I think this may be old.
- Original Message -
From: Hartmut Bernecker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 05, 2001 1:50 PM
Subject: dynamically build HTML forms
Hi,
I came across the following statement:
The Struts framework
Result sets ARE tied to the connection in a way. Some DB drivers throw
exceptions when you try to manipulate data while you still have a pointer to
rows. At work we were trying to manipulate a stream which was pointing to
an output parameter in a stored proc while the connection was open. The
I am interested in the code. Please send.
Hello Struts users,
We are currently evaluating Struts and other web (MVC) frameworks and
would like to ask you some questions:
- Is there some struts-config XML-generation from some
modeling tool (Rose for instance) ?
We would like to
Mike. Dude. That IS the way to do it.
1) check to see if you ACTUALLY GET the 2 sessions (if you can get them, do
a session.toString() to see that they are not the same session indeed)
2) you should be sending the serialized data from the unsecure session into
the secured session:
if you are
You can use the ActionForward to send you to a jsp page which contains a tag
(or tags) which do any one of the following:
1) A Tag/Action calls business objects which in turn get xml, transform the
xml using a stylesheet, and slaps the resulting html in the space where the
tag sits on the jsp
look at it closer Jeff. It does not touch the escaped url string itself,
but rather the actual characters de-coded from the url using the decoding
you specify. Also, you decide the appropriate mapping. Go to the xml file,
make your own mapping, and call it instead of the one I did called
Hello all. I am still only a few months
playing with struts but I would like to ask if you wouldn't mind
puttingmore detailed debugging in the framework. I personally am
studying the framework by reading about it, but most importantly by watching how
it performs step by step. I do this by
is this template tag part of Struts?
template:put
...
Thanks Pete. However it just seems strange that Struts just offers one big
resource file for each Local. I have developed 3 international sites, and I
can safely say that when a set of resources are associated with a particular
page it is much easier to manage than 1 resources for all pages.
all pages.
HTH,
Pete
Jonathan Asbell wrote:
Thanks Pete. However it just seems strange that Struts just offers
one
big
resource file for each Local. I have developed 3 international sites,
and I
can safely say that when a set of resources are associated
Ive got it working under WL 6. If you want to know anything just email me
personally at [EMAIL PROTECTED]
- Original Message -
From: Firmin David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 01, 2001 6:26 AM
Subject: RE: Any body trying struts wit weblogic?
There have
the Exception
javax.servlet.jsp.JspException: JSP compilation of /inc/template2.jsp
failed: weblogic.utils.ParsingException: nested TokenStreamException:
antlr.TokenStreamExc
eption: Could not include inc/imports.jsp
at
See the character filter I donated last week
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 01, 2001 9:31 PM
Subject: Re: filtering unwanted characters
On Fri, 11 May 2001, Ian Kallen [EMAIL PROTECTED] wrote:
Apache 2.0
Can any one of you put together a list? We need to
know:
1) what can currently be thrown out (assuming I
have the most recent evenings build)
2) what are, and where canweobtain all
of the recently contributed pieces which are under consideration, being worked
on or tested (the Token
You all probably know about this but I thought I
would send it anyway.
http://www.beachnet.com/~hstiles/cardtype.html
MOD-10 is an algorithm that is used by almost any
credit card company togenerate / validate credit cards.How it
works?First you have to know what kind of credit card you
I decided to NOT use the Struts.jar, but instead
use the Struts source files, and then add my own directories below the classes
directory for that particular web app. That way I could tweak Struts and
have a better way of replacing updates to the classes. My setup is like
this:
1) Struts
jeez. You are up early!
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 6:30 AM
Subject: Re: newbie to struts - confirm hierachy( packages - webapps)!!
Some people like to keep the source Java files at a separate location,
http://www.acoin.com/i18n/
http://www.cs.uu.nl/wais/html/na-dir/internationalization/programming-faq.html
http://www-106.ibm.com/developerworks/java/library/j-rbmgr/index.html?dwzone=java
Links to developing internationalized
websites
Cheers
yarranet.net.au - papers on multilingual web publishing.url
cs.uu Programming for Internationalization FAQ.url
developerWorks - Harnessing internationalization.url
IBM International Text in JDK 1.2.url
IBM java classes for Unicode.url
I have boiled down action forward to a few exact
situations. I would only want to do any of the following
situations:
1) take me back where I was
2) take me back to where I was trying to
go
3) take me to a specific page
4) take me to a default page
I dont believe there is currently a neat
Hello all.
I am just trying to understand an aspect of a
multipart request. When you submit after using an input of type "file", do
you have to provide an immediate location for the file to be serialized to, or
can you store it in a java object (in a bean's field) as a binary object until
the ActionForm
save (and validate) the binary data sent via input type file.
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL PROTECTED]
Sent: Saturday, June 09, 2001 10:55 PM
Subject: Re: uploading file requires immediate serialization location
I am not sure why all of a sudden I am getting this
Exception on startup
=
Call
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)javax.servlet.UnavailableException:
Missing configuration
interested see this article:
www.onjava.com/lpt/a//onjava/2001/04/05/upload.html
Available servlet packages http://www.servlets.com/cos/index.html
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: Jonathan Asbell [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 10, 2001 3
If I have a5 page "wizard" (five consecutive
form pages) and one bean, where the first three forms are regular requests and
the fourth and fifth are each multipart forms, how do I use a bean with these
pages? Do I:
1) fill bean with the form values from page 1,2 and
3 ?
2) then for the
So do you simultaneously write to a file while reading a String parameter
when you process a form? What parts of the multipart request do we save in
the bean, and in what scope?
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL
Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL PROTECTED]
Sent: Monday, June 11, 2001 1:55 AM
Subject: Re: uploading file requires immediate serialization location?
String parameters are not written to a file. Only the bodies of file
upload
parts
Thanks Mike :^)
- Original Message -
From:
SCHACHTER,MICHAEL
(HP-NewJersey,ex2)
To: '[EMAIL PROTECTED]'
Sent: Monday, June 11, 2001 10:15
PM
Subject: RE: Concepts in working with
multipart request
Jonathan,
Hello
all.
I wanted to
know if I
Darryl, you need to get away from the pc a little more
;^
- Original Message -
From: Darryl Pentz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 6:19 AM
Subject: RE: Handling Multipart forms (sort of Wizard)
Thanks, that'll be great. Look forward to the post.
I had a similar problm that went away after I
deleted the temp war files (the servlets that are generated from the
jsp)
- Original Message -
From:
Chuck Amadi
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 4:56
AM
Subject: errors during parsing""
Hi Jon. i was reading about this form based auth, and I wondered if you
could explain some things to me. Is form based auth just a combination of
an element declared by the web.xml and a line or two in the java code?
- Original Message -
From: Jon.Ridgway [EMAIL PROTECTED]
To: [EMAIL
should be
for UNIX/LINUX
/struts-bbnpa/WEB-INF/classes
or
for Windows
c:\struts-bbnpa\WEB-INF\classes
- Original Message -
From:
Chuck Amadi
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 8:26
AM
Subject: help with package
struts-classpath
Hi, i have
Ted, One thing I am not understanding is why we are bouncing requests all
over using various servlets, as in the case of validation. What are the
consequences and or benefits of one servlet triggereing another etc. It
seems as though this can create confusion because you dont know what is
Hello all.
I wanted to know where you are doing type
conversion. The reason I ask is because to some extent one may choose to
do slightly deeper validations in the ActionForm for reasons of
expectation. The question remains as to the exact level of "light"
validation we should do in the
mappings.
The requests are all still handled by the ActionServlet. The server-side
validation happens within a subclass of ActionForm. The client-side
validation is generated by a custom tag. It snaps into the existing
flow, and nothing bounces around.
Jonathan Asbell wrote:
Ted, One thing
for me, which happens within the Action.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Jonathan Asbell wrote:
Hello all.
I wanted to know where you are doing type conversion
collegue's complaint about the ActionForms because they
did not contain the types he was expecting, but rather just Strings. Where
are you personally doing conversions?
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL PROTECTED
Jonathan Asbell wrote:
Well, just one hitch when doing the business validation in the Action.
If
you are developing in an enterprise environment, you probably want to do
these kind of validations in a business object because, as pointed out
in an
eariler thread, you may need data from
Yee!
: ^ }
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 12:42 AM
Subject: Re: Iterate tag update?
I just checked in a change to the iterate tag which allows you to access
the
current index as a scripting variable.
- Original Message -
From:
Greg
Murray
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 1:49 PM
Subject: Re: Can not read i18n properties
file
Hi all,
Ihave encountered this behavior in the past .properties files must be
converted to ascii using the java
Chuck, send me your directory structure and name of
your server and I will tell you what your classpath should be.
- Original Message -
From:
Chuck Amadi
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 5:03
AM
Subject: Re: help with package
struts-classpath
try struts-example (with the hyphen)
- Original Message -
From: Grant Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Phil Lentz (E-mail) [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 9:36 PM
Subject: struts and weblogic 5.1 sp9
Hi,
I've been trying to get the struts working
Craig, can you explain point number one Expose the data as JavaBeans *other
than* the form bean. Is it that you are not using the form bean?
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 1:19 PM
Subject: Re:
Why dont you do what ANT does? You can include an external reference inside
the struts-config which acts like an include. Digester will parse
struts-config.xml which will have external references to your external xml
fragments.
- Original Message -
From: Oleg V Alexeev [EMAIL
Martin, I have been trying to find out how to handle this for months.
Thanks
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 12:44 AM
Subject: Re: Options tag - 'selected'
The reason you see 'selected=selected' is for
Hello all. The bean:message tag just
came up in a thread and I still dont know what areas the bean.tld stuff
isspecifically designed to handle as a whole. Where is it that one
wants to use this collection of tags' funcionality? How should we be using
it and how should we not be using it?
I was on this track in another thread where I was saying...
What if ActionForm was an inner class to a Value object. Or, what if a
Value object had a reference to an ActionForm which when filling with
parameters we did ActionFormValue.getActionForm(), filled it, complete does
it exist
What you have here is:
1) an immutable from the web tier
2) an immutable from the enterprise tier
3) a need to update each other
Maybe they are immutable as far as standard get/set methods.
However, they can also implement an interface which uses separate secondary
fileds which start with the
I will be implementing new scopes using Struts for
our unique needs, and they need to be application server
independent.
Onescope will work
across (between) web-applications: Ex.user logs on, and an object
representing the users values and state is placed into a scope where ALL WEB
second scope. Can you elaborate.
Thanks.
cheers,
Amar..
-Original Message-From: Jonathan Asbell
[mailto:[EMAIL PROTECTED]]Sent: Monday, June 25, 2001 8:24
AMTo: [EMAIL PROTECTED]Subject:
Implementing 2 new scopes using Struts
I will be implementing new
You must configure your web application to DECODE the utf8 encoded stuff.
In weblogic I make this entry in the web.xml file:
web-app
context-param
param-nameweblogic.httpd.inputCharset./*/param-name
param-valueUTF-8/param-value
/context-param
/web-app
I'm not sure what you need for tomcat
I think I will do the following:
1) Identify which Locals I am supporting and declare them within web.xml
fr_FR.properties
es_ES.properties
es_EN.properties
en_EN.properties
2) On loading the servlet, for each Local I will search for .properties
files and create a FileInputStream
I have been looking at the documentation and I am
still not comfortable with understanding what certain attributes represent in
the Bean Logic tags. I am particularly confused
with nested tagsand these attributes:
id=
name=
property=
Could one of you kind gentlemen help with a concise
Hello. In places where there are no forms and
thus did not configure an ActionForm for a particular Action,does the
ActionForm object which is passed to the perform method have a "null"
vlaue?
Hello all. I was reading aboutthe
struts problem with i-Planet and wondering if I have the same problem. We
are using i-Planet as a web server along with weblogic 5.1 as an app
server. I am not sure which i-Planet version we have but I will find out
tomorrow. My problem is below..
Did you see my post last night? Supposedly
iPlanet implemented a piece of the servlet spec incorrectly and you need to
upgrade it with a service pack for the ActionServlets processPath() method to
get the correct value for request.getServletPath(). Mikkel, send me your
number and e-mail me
struts_function.gif
make sure struts.jar is in your classpath in kregedit.
Also, if you have any ActionClass or FormClasses that
you're calling from action, you'll need to make sure
the full path to
\iPlanet\ias6\...\APPS\...\WEB-INF\classes is in your
classpath. It's a bug in iPlanet, but this workaround
works
This is a common problem when configuring struts on weblogic. Reason is that
the parser could not fetch the
file(http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd) from the
web.
The easiest way is to alter the request to your local file.
For example:
FROM:
!DOCTYPE struts-config
I wanted to know what you finally decided on
regarding my recent documentation submission. Also, I wanted to know if
you saw the pictorals and thought they were accurate.
Ona side note, I have been
struggling with a struts component that seems simple, yet I am stuck and cant
understand it.
I think you may have misunderstood the problem. .do IS triggered, but the
Struts mapping object registered under the path may not be found. In
other words consider:
/charts/display.do
/news/display.do
/events/outdoors/display.do
I want ANY occurence of display.do in the path to trigger a
Hello all. I just got back and was reading
the e-mails about workflows. By the tone and lack of dialog I think that
we are not sure how we really want todesign workflows still. So lets
have more discussion on the subject. When its clearer we will better know
what we want to do.
Here are
I was wondering if there is a way for an xml doc to
look for a dtd in 2 or 3 places. Can you do this:
!DOCTYPE
struts-configSYSTEM "file:///c:/bea/wlserver6.0/config/Wcom/applications/mydomain/WEB-INF/struts-config_1_0.dtd
"file:///c:/dtds/struts-config_1_0.dtd
"struts-config_1_0.dtd
This thread appeared on the list earlier this
week.
QUESTION - JonathanCan someone tell me if there
is a way to configure an action to match a pathregardless of how deep it is
in a directory?ANSWER - TedNo. There is not a way to do this,
without changing the way Struts isprogrammed to
You wrote
==
To run multiple Struts-based apps in the same servlet container, you must
copy the struts.jar file into the /WEB-INF/lib directory of each
individual web app (along with copying the TLD files).
Having struts.jar outside of
tags tied to beans?!!!
If you want the value of a control to be dynamic and determined from an
object other than an ActionForm, then use bean:write
input type=hidden value=bean:write ... /
Jonathan Asbell wrote:
Yes I know, but I want some of the attributes to be dynamic
3 issues
1) Maybe the build is bad, but I had to recompile
ActionForm and put it in my applications classes directoryto get rif of
the "Cannot find ActionMappings ActionMappings or ActionFormBeans collection"
while using Weblogic 5.1 sp10
2)When I forward from a jsp page outside of the
IN YOUR ACTION
ActionErrors errors = new ActionErrors();
if (myBoolean){errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(error.password.mismatch));
IN YOUR RESULTING JSP PAGE
html:errors property=username/
- Original Message -
From: storck [EMAIL PROTECTED]
To: User Struts
in my jsp page http://localhost/sports/trivia.jspI
have a Struts form html:form action="/processTrivia.do"
Considering this, the following is
true:
1) the directory I am currently in is
"/sports"
2) the request I am submitting to is
"/processTrivia.do"
When I create my mapping inside
similar method. However, I don't
recommend any of these, especially if you have multiple web
applications.
Cheers,
Brett
-Original Message-From: Jonathan Asbell
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:38
AMTo: [EMAIL PROTECTED]Subject: ~~
you using?
Cheers,
Brett
-Original Message-From: Jonathan Asbell
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 11:53
AMTo: [EMAIL PROTECTED]Subject: Re: ~~
Confusion with triggering an Action ~~
My default web application is not "/s
with that older method before.
Cheers,
Brett
-Original Message-From: Jonathan Asbell
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, 23 October 2001 12:17
PMTo: [EMAIL PROTECTED]Subject: Re: ~~
Confusion with triggering an Action ~~
currently weblogic 5.1 sp 10
I have the below form. In the ActionForm
class for this form I am testing for a valid username. The code is like
so: errors.add("username", new
ActionError("error.username.required")); In my mappings I have the
response going back to this same page if anything is not valid. But how do
I
How exactly do I implement it? The doc say
"The application context-relative path to the action", but this is not clear to
me. I am having the same trouble implementing the "input" attribute.
Can anyone make this clear for me: What should the value
be?
Incidentally, can antone tell me the difference between id, name, and
property? (org.apache.struts.taglib.bean)
- Original Message -
From: James Howe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 12:01 PM
Subject: Re: Required vs. optional name attribute
At
Doesnt this issue depend on the character encoding? That is, high ascii
values (128-255) are control characters in some encodings, which I assume
you want to get rid of. Than, there is the 0-31 characters in ascii which
are control characters of which you want to get rid of all except tabs,
If a form is made up of three consecutive pages and
I want to validate page by page, how should I go about doing this? Do I
use threeActionForms and one Action? Do I use the validation the
ActionForm offers for basic validation? Do I fill one ActionForm's
validation method with "if/then"
Anyone know why struts uses forward instead of
redirect?
It is not clear to me exactly whatthese values
could or should be. I understand that the ".do" is stripped of the
request, so does that mean I only have to match everything up to the ".do"
? Why is a "/" used? To me this means "root", and in fact in the
Login example the path changes from
It sounds like you have a classpath problem. I bet you either have a
system classpath (ie a classpath set in your
settings/controlpanel/system/advanced/environmentvariables assuming it
is a pc) which conflicts with the classpath you start up when you run your
server. Either way it seems
Title: Reducing the burden on ActionServlet.
Isnt it true that if you have 10 users you would
have 10 instances of the ActionServlet? I believe it is not a singleton
and that you always have an instance of the servet for each threaded
request.
- Original Message -
From:
the web app, which should never be in the class path to begin with.
It
is more likely a bug with the app server.
Jonathan Asbell wrote:
It sounds like you have a classpath problem. I bet you either have a
system classpath (ie a classpath set in your
settings/controlpanel/system/advanced
Our companymanages almost 100 related sites,
some with 3 million+ /month viewership. In thinking about how I would
approach the ActionServlet I am suspicious that the lookup time of the
ActionMapping might become unsatisfactorywhenyou reach a certain
number of mappings. Does anyone have any
After studying how the token mechanism works, I
understand the following:
1) The token is a unique identifier (value) which
may be found in the Session and Request, which is used with certain form
submissions.
2) It is created, ifit does not already
exist, by an Action object that wants
I can see in the mail list that theinclusion
of Thors "autobean" into Struts is still under consideration, but in the dev
list and in Ted's clippings form the mail list I get the impression that it has
been implemented already (refering to the section "Automatic/Extended
Properties,
85 matches
Mail list logo