Hi,
i did an attempt to define a WizardActionForm base-class that contains a special
automatic reset-method. The extending Form-class has to deliver a hashmap containing
all reset-values (name=property, value=reset-value). On the form-page a hidden-field
enumerates the properties contained the
www.kgbinternet.ca
Not free but for $10 Canadian you'll get jsp and servlets with Tomcat (3 or 4
your choice) in a shared JVM. $20 setup charge gets you MySQL database, and
for $20 a month instead of $10 you get a private JVM.
Alternatively www.blacksun.ca have similar deals around $30
With struts1.1, you need a jaxp1.1 compliant xml parser. Try to upgrade your
xml parser.
Cedric
Lee, Dennis wrote:
Hi,
I can successfully use Struts 1.02 with WAS 3.5.4, but when I try to upgrade
to Struts 1.1b, the ActionServer cannot be initialized.
I got the error message from
When is it bad form to use form beans?
For example, if you are processing a web page with several form
fields and the only goal of the process is to get the information
from the form fields into the data base, is it ok to send a form bean
from the Action servlet directly to a class in the
I have an application that consists of many JSPs that all include login.jsp.
Login.jsp's submit button submits the login form to login.do.
In LoginAction there is naturally code line return mapping ...
How can I implement my application so that no matter where I am I don't get
forwarded to page
Hi,
does someone uses the workflow extension from
http://www.livinglogic.de/Struts/exampleApp.html
Any comments are welcome.
Thanks
Dirk
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
How can I use different controller in one application? I need the
controller-servlet from struts and that one from
http://www.livinglogic.de/Struts/exampleApp.html
Is that possible?
Thanks !
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Maybe you can add a hidden param formName in all your JSPs.
html:hidden property=formName value=Name1/
Then in your action class check which JSP page HTTP request came from and forward back
to corresponding page.
Don't know better solution.
Maris
-Original Message-
From:
Hi All,
I am wondering about a design issue since I can not figure out why Craig
implemented in that way. Any light or opinion would be appreciated.
The point is that usually, AFAIK, results from database queries are planned
to be stored in ArrayLists of beans. This ArrayList of beans is sent
I recently came across an application that required struts-nested.tld.
I'm currently using struts 1.0.2 is this tld from a newer version of
struts? Or from a proprietary package maybe?
Thanks
Rob
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
I've been using the struts logic tags to determine whether or not an img
tag should be placed.
I have the following
logic:equal name=foo property=bar value=val
img src=images/foo.jpg
/logic:equal
The page source shows the following
img src=images/foo.jpg
However my log files say the
I have the following
logic:equal name=foo property=bar value=val
img src=images/foo.jpg
/logic:equal
The page source shows the following
img src=images/foo.jpg
However my log files say the following is being requested.
/context/do/images/foo.jpg
As a result the images
Try
a href=mailto:bean:write name='article' property='email'/Contact
Us/a
Niall
-Original Message-
From: Justin Harvey [mailto:[EMAIL PROTECTED]]
Sent: 15 April 2002 20:48
To: [EMAIL PROTECTED]
Subject: html:link and mailto?
Newbie question here.
If I have a bean called
Subject: Re: Presentation Layer Design Question
From: Vic Cekvenich [EMAIL PROTECTED]
===
Can't speak for Craig, but the Beans give me a way to isolate the DB
layer. I use CachedRowSet to hold Result and have meta data at any time.
It is one step and does not do mapping.
Since the DB layer is
Subject: Re: When is it bad form to use form beans?
From: Vic Cekvenich [EMAIL PROTECTED]
===
Not clear to me... so hth:
Mike Duffy wrote:
When is it bad form to use form beans?
I have about 1:1 relationship pages/formsbeans/actions.
For example, if you are processing a web page with
We have a similar situation where we wanted the user to be able to login
from several different pages using the same login form, and we wanted to
return them to the same page from which they logged in.
We have a hidden field called nextURL in which we populate the current URI.
This value is used
I have not seen that but I have impression, that IBM for the moment favours
Struts.
See :http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg246134.pdf in
Chapter 12
also struts is included in the WSAD Auction example application.
Y.
-Original Message-
From: Will Spies/Towers
Hi All,
Have anybody faced any kind of problems with these kind of syntax in
struts?
It is working very much fine on local machine but giving some
problems(standard Page can not be found problem) in production...
Any ideas..please do send..it looks strange to me..
this piece of code is
For my $0.02 worth I think using the form-bean in the database layer of your
application is a bad idea any time. By doing so you are directly tying your
presentation layer to your database layer. Any changes to one now have to be
measured against the other. Granted most changes to your
Is there any way for debugging to get a reference to the ActionErrors
instance that is saved into an http request with saveErrors(req, err)?
I'm having a problem with html:errors / not displaying errors that
should be in it. It's not an ApplicationResource properties problem
since I've used
you call
saveErrors(request,errors)
while errors are your ActionErrors ??
-Original Message-
From: rob [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: html:errors how to confirm the errors are there?
Is there any way for debugging to get
Hi
I am using struts with websphere 3.5.5. In one of the application server i have kept
the struts-config.xml in default_host\webapplicationame\servlets . It is working fine.
The same setup is not working in other machine . In that server the apploication is
looking for the strits-config.xml
Struts Console version 1.8 is now available.
http://www.jamesholmes.com/struts/
http://www.jamesholmes.com/struts/struts-console-1.8.zip
This release adds support for the most commonly used
new 1.1 config file elements and fixes an outstanding
JDeveloper bug.
Changes with Struts Console v1.8
Hi!
When I try to run the example web applications of Struts in JBuilder the
next error message appears:
Error: 500 Location: /WebApp/logon.jspInternal Servlet
Error:javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
-
Foreword : this mail is introducing a discussion about the
limitations and responsabilities a web-MVC-framework
shoud take into account. Maybe should I cross-post this
to dev-list ? Anyway, thanks for your participation. As I'm
really interested in this debate, I
As for whether EJBs is going to be required in the near future for you
to get a job, who's to say?
Sadly, companies are very biased towards people who don't have specific
product experience in many cases. Don't take this the wrong way but EJB's
are not all that difficult. I have read a
Just to interject with a USEFUL reply, after several years of using nothing
but Log4J and my *monstrous* brain for server side debugging, I have started
using Eclipse with Sysdeo's tomcat plug-in and JDK1.4 (for hot code replace
while Tomcat is running), in spite of a couple of limitations
Hi I need to be able to accomplish the following:
bean:message key='banneradtag' arg0='???' /
The part above with the ??? needs to be retrieved also from my message
resources. So what I need to do is something like:
bean:message key='banneradtag' arg0='bean:message
Hi,
I visited the following site.
http://archive.covalent.net/jakarta/struts-user/2002/04/0272.xml
Iam getting the same message in my log file. (connection reset by peer: socket write
error)
Can you pls. pass me the resolution?
It would be of great help.
Thanks in advance!!
Regards
Vijaya
hi there,
actually we r converting jsp pages to struts compliant. in the process of doing so we
r facing problems.we r stuck up at the problem given below:-
input type=text name=%=objParam.m_strColumnName%%=intInsideLoopCounter%
size=%=intLength+1% MAXLENGTH=%=intLength%
Hi, maybe you can set your key in the action that calls your JSP,
MessageResources msgres = getMessageResources();
String key = msgres.getMessage(article.getChannel());
session.setAttribute(key,key); //or request
JSP :
String key = (String) session.getAttribute(key);
bean:message
I had some problems with the location of the xml files on OS/390. It was caused
because one server had Servlet 2.2 full compatibilty turned off.
When appserver.compliance.mode=false the default value
InputStream input = getServletContext().getResourceAsStream(config);
found the
Great, I was looking forward to get the new version of
Struts Console with support for the new config
elements.
I got it from your site, but there is a problem when I
run it and try to open or create a new file. I am
using jdk 1.4.
java.lang.IndexOutOfBoundsException: Index: -1, Size:
1
Hi..
Firstly i am new to struts.
I am designing an application which needs to populate a table in the index
page.
Previously what i had done was, in a servlet first populated a collection by
calling a Manager class, then setting the collection in a request object,
and then forwarding it to the
Hello all,
I have a situation that I do not know where to start looking. I have struts
1.02 running with tomcat 3.3 and apache 1.3.22. Everything works great
except for the fact that if I leave the application overnight doing nothing
and try to go to my index.jsp the struts-config.xml file
It would appear that you can not maintain saved errors in the http
request across a forward to an action before displaying it on a .jsp page.
The following diagram helps to illustrate:
X - action 1
Y - action 2
J - view (jsp page)
X - Y - J
If an ActionErrors instance is created, an
I obviously missed part of this discussion -- a negative side effect of
trying to do my job while keeping up with this list. And I don't have a lot
of time to respond to this fully. However, I find it necessary to disagree
with the contention that JavaBeans are Session Beans, DAO classes are
In an action, how to forward the user to the input page ?
ActionMapping.findForward(input) doesn't has a ActionForward for this.
I use :
RequestDispatcher rd
= request.getRequestDispatcher(mapping.getInput());
rd.forward(request, response);
Is there a better way ?
--
To
I don't have a direct answer for you Rob, but what we did was to create a
custom tag that looks for errors in all scopes. Once it is rendered, then it
removes it from all scopes. This allows me to propogate error from page X to
page J by placing them in the session scope. There may be some
I may not be the best person to address your concerns, but I'll give it
a shot.
In our shop we've developed applications that have several hundred
components and screens. There is no out-of-the-box installation for
us. No two clients desire the same behavior and customizations on the
fat
I am developing a security mechanism that will provide this automatically.
It requires 2.3 compliant container. But allows for many things that normal
security does not. Please read RE:Struts security written by Phase Web and
Multimedia in the archives to learn more.
Brandon Goodin
Phase Web and
Does anyone have Struts documentation designed for those who would modify
the View layer only, for style, etc. I doesn't seem like it would take much
-- a SIMPLE explanation of Struts, how to get information on tag attributes
and behavior, what kind of changes can/can't be made to JSPs without
Thank you for the reply Robert,
Because saveErrors() signature requires the request object I assume that
the errors object have a request scope and I'm dealing with that
appropriately.
For the time being your solution is the one I'l have to use (which have
already been using) but to be
I am wondering if you can set validate=false on the
second mapping (Y)?
maybe because it is going through validation again?
sandeep
--- rob [EMAIL PROTECTED] wrote:
It would appear that you can not maintain saved
errors in the http
request across a forward to an action before
displaying it
I believe the only tag related documentation is here.
http://jakarta.apache.org/struts/userGuide/index.html
under the heading 'Tag Lib Documentation' though this is likely not what
your looking for.
Rob
McAfee, Tom wrote:
Does anyone have Struts documentation designed for those who would
TWIMC:
I am going to serve template SWF (Flash) html files which will reference a
template SWF file, template.swf which in turn will hold an array of SWF
photo images, photo1.swf, photo2.swf. The template SWF file will reference
the photo SWF files directly, because they will be in the same
Neither of the Actions use validation. The attribute is not even
defined in the struts-config.xml for the actions.
The actual struts-config.xml entries for the two actions are:
action path=/viewResource
type=gen.ViewResourceAction
name=ViewResourceForm
Heck, we'd love it if our employer would buy an App Server but they won't
so we're using Struts
since it's free. But we've found out that it's very powerful and very
easy to work with.
Struts is cool, eh? If you want to use a free app server, check out
www.jboss.org
It's open-source, fast
From your perform() method
return new ActionForward(mapping.getInput());
Providing you defined the input=foo.jsp attribute in your action ...
/ in struts-config.xml.
Nicolas De Loof wrote:
In an action, how to forward the user to the input page ?
ActionMapping.findForward(input) doesn't
On Mon, 15 Apr 2002, Niall Pemberton wrote:
This is exactly what DynaBeans were invented for.
I have spent quite some time looking for such an automatic bean creation
facility, and apparently it is something which is quite unique to the
Struts project in that there is a working solution.
---Original-Nachricht---
Von: Struts Users Mailing List
Datum: Dienstag, 16. April 2002 18:24:52
An: '[EMAIL PROTECTED]'
Betreff: Struts Doc for Web Designers
My tutorial is supposed to be easy to understand. No special emphasis on the
View, though.
Hi..
I am designing an application which needs to populate a table in the index
page.
Previously what i had done was, in a servlet first populated a collection by
calling a Manager class, then setting the collection in a request object,
and then forwarding it to the index page which will get
Hi, check the iterate, nested tags or display tags at
http://edhill.its.uiowa.edu/display/
Enrique Almonte
Datapro Inc.
- Original Message -
From: Roshan Paiva [EMAIL PROTECTED]
To: 'Struts Users Mailing List' (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 12:48 PM
Subject:
Thanks..
Where do i populate the collection? should i continue populating it in a
servlet before forwarding it to the jsp .. and then use a iterate tag to
display it? or is there another way i should follow in struts.
Thanks and Kind Regards
Roshan
-Original Message-
From: Enrique M.
Sorry for the inconvenience everyone. This bug
slipped through without my knowledge. I'll have a new
version up this afternoon with a fix.
-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/
--- Frederico Schuh [EMAIL PROTECTED] wrote:
Great, I was looking forward to get the new
Joseph,
Have you done any testing against HP Application Server?
It is also free.
I would be interested in any comments that you may have!
Robert
-Original Message-
From: Joseph Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Tue, April 16, 2002 11:29 AM
To: Struts Users Mailing List
Hello all,
Apologies if this has been covered before. I couldn't find anything in
the FAQ, and searching the archives was excruciatingly slow.
Anyway, I'm trying to find out if there's a way to use a message resource
in an html:submit tag attribute. I'd like to be able to do
My mailer stripped the html out of my previous post. Sorry
about that. Let's try it again:
--
Hello all,
Apologies if this has been covered before. I couldn't find
anything in the FAQ, and searching the archives was excruciatingly slow.
Anyway, I'm trying to find out
Yes, it has when I asked that very qeustionS
html:submit property=submit
bean:message key=global.action.label.save/
/html:submit
-Original Message-
From: Dante Briones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: Internationalizing
html:submit property=whatever
bean:message key=login.label /
/html:submit
-Original Message-
From: Dante Briones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 2:51 PM
To: [EMAIL PROTECTED]
Subject: Internationalizing html taglib tag attributes
My mailer stripped the
My pages all use a common .css file defined in the head /head tags
of my pages.
head
link rel=stylesheet type=text/css href=ns.css /
/head
This however causes me woes with regard to relative paths. If I leave
it as it is the browser tries to do gets such as:
/context/do/ns.css - which is
Hi
I have a common base class called EtrackAction that checks for a valid
session. All action classes subclass this base class. What I want to do is -
if a valid session does not exist (which may occur due to sesison timeout) I
want to forward the request to another site which is actually a web
rob wrote:
So I'm not the first to suffer from this, whats the solution?
Can't you use absolute paths in this case?
e.g.: link ... href=%=request.getContextPath()%/css/my.css
--
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
Life is too short to drink cheap beer
--
here is how i do it:
link rel=stylesheet charset=ISO-8859-1 type=text/css
href=html:rewrite page=/style/something.css /
also works well for all your other include-type stuff (javascript, etc.)
SCRIPT language=JavaScript
src=html:rewrite page=/js/something.js //SCRIPT
a
-Original
Are you using JBuilder 6 enterprise? I've found that some things work if
you use Tomcat 4, but nothing works if you use Tomcat 3. It seems that
jbuilder has it's own classloader so the problems I've been having in
JBuilder 6/tomcat 4 have to do with not finding classes. For example, if
I have
At 03:55 PM 16/4/2002 -0400, you wrote:
Yes, it has when I asked that very qeustionS
Are you referring to this:
· From: Bill Page
· Subject: RE: what does RT Expr
· Date: Mon, 01 Apr 2002 06:19:59 -0800
that sounds like run-time expression answer given earlier. Given that I
Hello,
I have a form which requires some beans to be present in the request, in
order to populate several dropdown boxes on the form. This occurs in an
edit action which then returns an ActionForward to the form JSP. That
much works fine.
However, when the user tries to save their
Greetings:
I have been following this list for a while now and it seemed fairly clear
to me what some of the options for using form beans are.
I know that Struts does not force you to do to much it seemed that the
overriding theme was to try keep form beans ignorant of the datasource.
The
I am new to Struts but I had a similar problem and pointed the input to the
action that prepares data for the page:
action path=/itemInfo
scope=request
name=editInfoForm
parameter=NEW
validate=false
Thank you so much. I tried this initially with these action mappings:
action path=/editTransaction
type=com.wellsfargo.pcsweb.controller.EditTransactionAction
name=transactionForm
input=editTransaction.jsp
scope=request
forward
From reading this, it seems author is interested in promoting an
architecture designed to eliminate the advantages of object oriented
development and make maintenace a hair-pulling experience.
Combining the FOrm bean, MOdel, and COntroller components together results
in what I'll call a
RequestDispatcher dispatcher =
context.getRequestDispatcher(http://authtest.internal.ca.com/;);
dispatcher.forward(request,response);
getRequestDispatcher(String path) requires you to supply the path that is
relative to the context root.
Try to do getRequestDispatcher(/) and see how
Thanks Victor. I happened to solve the problem just 5 minutes before you
mail came in. This is what I did in my relogon.jsp (i used the redirect
tag) -
--
%@ page import=javax.servlet.*,javax.servlet.http.* %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
/HTML
logic:redirect
/HTML
logic:redirect href=http://authtest.ca.boeing.com/
/HTML
Yep this will work as well, however actually you might want to use forward
instead of href. forward is the logical naming an ActionForward that you
define in struts-config file. This way your forward will be context sensitive
Subject: Re: Struts vs EJB, thoughts?
From: Vic Cekvenich [EMAIL PROTECTED]
===
EJBs, as I have said before sometimes have negative impact on design,
productivity and performance.
SHURTLEFF,ROBERT (HP-FtCollins,ex1) wrote:
Joseph,
Have you done any testing against HP Application Server?
Subject: Re: Java Pro Article: Thought I have form beans figured out...
From: Vic Cekvenich [EMAIL PROTECTED]
===
I agree that MVC segregation and separation is key to productivity; and
key to good design.
Combining or omitting one is not good for web apps.
[EMAIL PROTECTED] wrote:
From
Hi guys,
Need help with select option
I have a formBean called RegionForm
RegionForm contain attribute selectedregion:String and
regions:ArrayList.
regions:ArrayList is collection of object of class
Region.
Region class has attributes id and String.
I wish to display on the form select
__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi all
Struts uses reflection to populate the attributes into JavaBean, eg
html:text property=someAttribute/
At runtime, if someAttribute is not present we get an exception.
It would be really nice if we had a Struts Compiler that takes in 2
arguments:
- classpath
- source path
The compiler
79 matches
Mail list logo