The tiles tutorial have been moved into the tiles-doc.war file, under
'tutorial'.
I think the error is issue because the servlet has failed to start. Are you
sure you use a jaxp1.1 compliant parser ? Does Struts1.1 example runs with your
configuration ?
Cedric
David Boardman wrote:
A
Hi !!
I'm new at structs and so i read the tutorial from the site
http://www.jspinsider.com/tutorials/jsp/struts/lesson1/l1b_struts.view
My Problem is here:
Were is the logonform integrated ?
In logon.jsp is the action of the form the longon.do.
I think I understand that:
action-mappings
Is it possible to internationalize backgroung images ?
I'm currently using background images in my body tag, and in some td
tags, and wonder if I can find a way to internationalize them.
The problem is that there not defined in an img element, but directly in
the body or the td element...
Thanks, Ted, for the reply.
Actually, I am not forwarding from Action to Action.
The mapping of the forward dummy resolves to a JSP
named dummy.jsp and not an action (*.do).
From an action, on submit, I would like to tansfer
control to a JSP to accept more inputs. Along with
this control
Hello,
I am not sure, if I got your question right. But I try
In addition to the action-mappings definitions, you should also define the form-bean
definition in your struts-config.
In your example it is something like this:
!-- logon form bean --
form-bean name=lesson1
hi Guys,
I bet this has come up before...
I need to include the output of an action in a jsp, using the jsp:include
tag lie this:
jsp:include page=/myAction.do flush=true
jsp:param name=USERID value=CARLOSUS /
/jsp:include
but I get an illegalstate exception, as the ActionServlet
hi Guys,
I bet this has come up before...
I need to include the output of an action in a jsp, using the jsp:include
tag lie this:
jsp:include page=/myAction.do flush=true
jsp:param name=USERID value=CARLOSUS /
/jsp:include
but I get an illegalstate exception, as the ActionServlet
whoa!
thanks alot...
does this hack work on all servers???
I have just tested it on tomcat 3.2, will try on Iplanet later...
::
Mikkel Bruun
Senior IT Developer
[EMAIL PROTECTED]
Direct: +45 32 88 22 73
Valtech A/S
Kanonbaadsvej 10
DK-1437 Copenhagen
Tel +45 32 88 20 00
I've just installed Struts on Visual Age for Java 3.5.3.
I'm trying to install Kyle Brown's employeelist example and i've run into a
problem.
initially, i got an error message missing message for key index.title
I added dummy entries to the ApplicationResources.properties, but i'm not
sure if
Title: SV: Including Actions via jsp:include
Hi,
I have one jsp which shows some links..
This link contains the filename (HTML file).
If i
click on this link, i will execute one more jsp. This jsp has some methods which
will get the file and show the content.
This
works fine if i have
Title: SV: Including Actions via jsp:include
you
have to use a servlet for this...print to the
servletOutPutStream
Jsp's
cant display binary files
:: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73
Valtech A/S Kanonbaadsvej
10 DK-1437
Copenhagen
Title: SV: Including Actions via jsp:include
I
never actually did it, but it would seem thatsetting the contentType to
something other than text/html
should
allow you to return any typeof data!
Mark
Schenk
| Ceci
Dear list,
given that I have a JavaBean Strutcture that exposes a tree of some
form. Each node contains a String and any number of children. I would
like to render such a Bean into a site-map like html page via jsp code.
The interesting part, though, would be a tree-pendant to
logic:iterate.
Title: SV: Including Actions via jsp:include
hi,
your
typical flow is something like,
u
click on a link which invokes a new window which inturn invokes someaction
class, which fetches the file may be from a file system or BLOB field of
database, and then u dont forward it anywhere... !!!
:-) The question is not, whether it works on different servers,
the question is, whether the original including of forwarding
Action works on some servers.
If the Action.perform returns null, then there is no forward and
no reason for such an exception.
The real problem with this solution is
Title: SV: Including Actions via jsp:include
Class
PropertyUtils is deprecated... what should I use instead of this
class??
What
sould I use instead of the deprecated method: copyProperties(java.lang.Objectdest,
java.lang.Objectorig) ??
Regards.
Title: SV: Including Actions via jsp:include
The class has been repackaged. It is now under the
apache commons.
--
gR
- Original Message -
From:
Inés
Pederiva
To: [EMAIL PROTECTED]
Sent: Monday, September 03, 2001 2:06
PM
Subject: Class PropertyUtils is
Has any one written a number format tag or date format tag for Struts?
I written a simple subclass of the org.apache.struts.taglib.bean.WriteTag , but
if there is something better ...
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
-
The PropertyUtil is now in the jakarta commons Library in the beansProperty package.
let's see :
http://jakarta.apache.org/commons/commons.html
arno
-Message d'origine-
De: Ines Pederiva [SMTP:[EMAIL PROTECTED]]
Date: lundi 3 septembre 2001 14:06
A: [EMAIL PROTECTED]
Objet:
Hello there,
I have a jsp including the lines below;
html:errors/
html:form action="/mainMenu"
lihtml:link href="#"
onclick="document.forms[0].submit()"click/html:link/li
/html:form
...
When I first click the link, I get an error from weblogic;
Pzt Eyl 03 15:44:43 GMT+03:00 2001:I
Sean,
I experienced this same problem (in VAJ 3.5.4). I solved it the same way
anyone else have a better solution? (Better explanation of what's wrong?)
Stephen :-{)
Hi !!
I have a jsp-site with this form:
html:form action=/LookupAction.do
When I want call the site I get a 500 internal server error.
Looking into the logs show me this:
03.09.2001 15:32:16 CEST Error HTTP
[WebAppServletContext(7676648,DefaultWebApp,/DefaultWebApp)] Root cause of
Luiz,
I had this problem too and the solution is...
In the http.conf we need the line (or similar depending of your o.s.)
include C:\jakarta-tomcat-3.2.1\conf\mod_jk.conf-auto
Insert them (after) the line:
JkMount /*.do ajp12
And modify too the line (in http.conf) where we have
Hi Wagner,
I've done all this.
The only issue is that the Apache doesn't recognize the .do
extension.
The Struts is working fine directly on the Tomcat (throught the
8080 port). And the JSP and Servlets are working fine with the Apache
(throught the 80 port), except for
Hello,
We are trying to find a clue for this typical case:
fromaform with research critiria, we want to create a page with the
list of results. We have an "ActionForm" associated to the form. The
"ActionForm" is submitted to theclass "Action" which shows the list of
results. But we want to
Is there a convenient way to work with the iterate tag, using the indexed attribute,
and data structures that are doubly nested?
I have a search form with a dynamic set of search attributes, and each search
attribute optionally has a dynamic set of conditions.
I have used scriptlets to
Instead of trying to add a parameter to the forward, it sounds like you would
be better served to simply add a request attribute to specify the formName.
In your action class you do this:
request.setAttribute(formName, action);
Then on your jsp page:
html:hidden name=formName /
That should
Hi,
My question concerns beans in the request scope and what happens to them
when validation fails. In fact I know they disappear, and that is my problem. I
do not want to use the session scope to store them for the reasons below.
THE CONTEXT
I am on an intranetproject where it has been
I'm having a look at the Struts validator, and I've got a
couple of questions:
1. There appears to be a load of whitespace in the
genertated Javascript, which bloats the HTML page. Is this normal, or is it
me?
2. I'm trying a simple 'required' validation as defined in
validation.xml on a
Beans that were in the request when the page was rendered are long gone when
you submit a new request from that page. Therefore, you must re-create them
and put them back in the request if the validation fails. Many people forego
validation in the form and do it in the action instead to
In the file subscription.jsp in the struts-example application,
I found the lines (from line 8 to 14):
%-- In real life, these would be loaded from a database --%
%
java.util.ArrayList list = new java.util.ArrayList();
list.add(new org.apache.struts.webapp.example.LabelValueBean(IMAP
The comment doesn't mean to imply that the database would be loaded from
the JSP.
In practice, the loading would take place within the scope of the
Action, and the portion to display passed to the JSP with the request. A
collection can be used for this. Another option is the ResultSet tags in
In the .tld files, every attribute looks like this. But I can't find
anything anywhere about the third one: rtexprvalue, and when to set it
true and false.
attribute
namevalue/name
requiredfalse/required
rtexprvaluetrue/rtexprvalue
/attribute
true means you can have:
mysimpleTag value=%=scripletVariable%/
false means you cannot have a scriplet variable as a value.
At least that's my understanding.
Matt
--- Pete Carapetyan [EMAIL PROTECTED] wrote:
In the .tld files, every attribute looks like this. But I can't find
anything
When using Tomcat 3.2.1 (came with Borland JB) under the Sun 1.3.1 JDK
on RH Linux 7.0, I find that Struts cannot seem to find my action
classes. It fails when the action servlet tries to do a Class.forName()
prior to instantiating an action class instance.
Due to my laziness, these classes are
Should I be able to retrieve a string that has been set by
request.setAttribute from within a bean:message/?
For example, in an Action I have:
request.setAttribute(registeredemail,email);
return mapping.findForward(waitforconfirm);
in the jsp that the waitforconfirm points to, this works
Hi-
Is there any way to configure the validator to check for
matched passwords?
For example:
fieldproperty=password
displayname=form.password
required=true
maskMsg=error.password.length
mask=^\w{6}$/
I just installed Tomcat4.0-b7 and have the examples
working. I tried running my webapp that ran fine
under Tomcat3.2 and it gives me these errors when
Tomcat starts:
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b7
register('-//Apache Software Foundation//DTD Struts
Configuration
38 matches
Mail list logo