To make the following line work
c:out value=${Constants.HOME_DIR_KEY}/
You must store an instance of a class under the token name of
Constants in the session context and better yet in the servlet-context
so every page in your application would have access to it. Putting it in
the request or page
hello everybody,
i m running a code packed in .ear file. When i try to copy the .ear file in
$JBOSS_HOME/server/default/deploy
in receive this expection :
11:23:03,125 INFO [Server] JBoss (MX MicroKernel) [3.2.4 (build: CVSTag=JBoss_3
_2_4 date=200406040847)] Started in 17s:485ms
Thanks Erez, great answer.
Regards,
John
[EMAIL PROTECTED]
Ph (09) 372-5010
|-+
| | Erez Efrati |
| | [EMAIL PROTECTED]|
| | et.il |
| ||
|
look in your web.xml
struts need this:
/WEB-INF/struts-config.xml
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
Hi All,
I have an application which is using Struts and is deployed on weblogic
server say myApp. The application is working fine for a client directly
hitting the weblogic server. But we have an application environment wherein
the iPlanet web server(redirectServer) is providing virtual
Hi friends,
I am running out of ideas. I already ask about this here but with out success. I
tried it also on mailing list for jakarta-commons but got rdirected to again here. I
repeat the problem once again , when I starts the application everythings works fine
except the validator, it
Merhaba Eyup Bey,
We experienced a similar problem about a year ago. Below is the code we
used for solving the issue. Hope it works for you too.
I belive there is a problem with the ActionForms with different
encodings, therefore we wrote this small request preprocessor.
You could also use a
You could always put the DTD on a webserver your machine actually can
get to and avoid the pathname issue that way.
But if the choice is between deploying your project with the same DTD
that is in the Struts build, or the project requiring a modification to
(and then having to maintain) a custom
Hi @all!
The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.
During startup of the server the following exception is thrown:
05.07.2004 12.19 Uhr CEST Error HTTP BEA-101216 Servlet: faces
failed to preload on startup in Web application:
Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to? The JSF jars are not packaged
inside the .war files.
-James
http://www.jamesholmes.com/JavaServerFaces/
http://www.jamesholmes.com/struts/
-Original Message-
From: Albrecht, Michael
Hi James!
Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to? The JSF jars are not packaged
inside the .war files.
Yes, I`ve done this. Not directly, but I`ve unzipped the war-file and zipped
after copying the three-jsf-jars into (jsf-api.jar,
Hi,
thank you for the reply. That with the webserver is a good idea, i am gonna try it
out. I also wondor that, why the struts-config and tiles-config is working. just
for a try i removed the network cable and this time it throws exception only from
validator module ie. struts and tiles are
Hi,
We have deployed a ROOT application and another application called 'AM' in Tomcat
4.1.30. Both applications use struts. In struts config file as well as tiles
definition files we have given all paths relative to context. Following exception is
thrown, when action class is accessed.
Hi List.
I've small doubt why we need to configure tomcat with apache
webserver.
what is the neccessity of integration tomcat with apache web server.
and also pls give me the steps to integrate it in details.
I am using
OS :: windows 2000 Server
Apache HTTP Server v2.0.49
tomcat
This is the third time this has been posted isn't it ?
IIRC it was answered quite well the second time it was asked. Look in to modjk and
read the tomcat faq/manual.
Chris McCormack
-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:20
To: [EMAIL
Ganesh,
After looking on google for aprox 60 seconds I found this page
http://jakarta.apache.org/tomcat/faq/connectors.html
Check on google first in future and stop expecting us to do your job for
you.
This list is run by volunteers, not by your personal assistants.
--b
McCormack, Chris wrote:
Greetings,
I am somewhat unclear with the Message Resources.
I have defined in my struts-config:
message-resources parameter=app.resources.ApplicationResources/
message-resources parameter=app.resources.SystemErrors
key=systemErrors/
In my Action class I have the following code:
if
Hi @all!
There`s still a problem with the struts-faces.war example.
The hint of Matthias was correct and very helpful: The BEA Weblogic 8.1 is a
J2EE 1.3 compliant app server and so the jstl.jar has to be another one.
There`s also a problem with the ServletContextListener. This listener has to
Paride Perazzolo wrote:
Hi folks,
I'm new to the list, so forgive me if I'm not respecting Netiquette or
asking off-topics.
Welcome to the list. Not off topic. Comments inline.
I'm trying to render pieces of html using the following syntax:
from struts-config.xml the definition of the form
Michael,
on my website, there is an hello-world
with tiles, struts, jsf
www.wessendorf.net
(follow the link of java forum stuttgart)
if there are any problems in it, please let me know...
i run it in tomcat4.1.X which is a j2ee-1.3-webcontainer
as well
Cheers,
Because the EL-package is
Hi,
As a relative newbie to struts I have managed to get a long way using
the info on here, but am now stuck;
I have a large form which has a collection of beans as one of its
properties. In one of my JSP files I wish to expose one of the beans
in this collection. I identify the bean by
Yes, the problem is a bug with Weblogic 8.1. Weblogic is not properly
implementing the servlet 2.3 spec. To fix this you will need to use the
hack servlet. Following is a link to a thread on the JSF forum that
explains what you must do to get JSF apps working under WebLogic.
-Original
Oops...I left off the link.
Here it is:
http://forum.java.sun.com/thread.jsp?forum=427thread=503652
-James
JSF Resources and JSF Console GUI Tool
http://www.jamesholmes.com/JavaServerFaces/
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004
I have a question on how to implement authorization and authentication with the
Struts framework. In several DB tables we have users, groups, permissions,
acls, etc where the security information is stored. We would like to integrate
this information, in the best possible way with Struts. From
At work we have a situation where we have a common
action delegating to some sub-actions. The delegating
action sets up some parameters, and the child action
ALSO sets up some parameters specific to itself that
are required for the initial page display.
However, there are other things done in
Could someone please tell me what would cause the html:form tag to
ignore the value I specify to the action parameter, and instead, rewrite
the action parameter value to be equal to the context root of the
application?
For example, my web app login page is:
http://localhost:8080/Test/index.jsp
1) Typo: I meant that my login page is:
http://localhost:8080/Test/login.jsp, not index.jsp.
2) I am finding that playing around with the servlet mappings in web.xml
is having an effect on what is rendered as the value of the action
parameter, but I still cannot make any sense of it.
If anyone
form-beans
form-bean name=loginForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=username type=java.lang.String/
form-property name=password type=java.lang.String/
/form-bean
/form-beans
action-mappings
action path=/login type=LoginAction name=loginForm
scope=session
I should make one more correction. Actually when I mapped the controller
Servlet to /, the correct action parameter did show up in the form,
and things worked correctly. However, I don't want to use / as my
controller mapping -- I would rather do something more specific. But
/login and
Okay. this all i have in my web.xml and it works:
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
Thanks for helping.
I assume you mean this part:
servlet-mapping
servlet-namecontroller/servlet-name
url-pattern//url-pattern
/servlet-mapping
The above code works (hooray), but if I try to change the url pattern to
anything more specific (such as /login, or /login*, or /login/*) I get
the wrong
okay, before i leave for the day, for path based mapping, you need
something like:
servlet-mapping
servlet-namecontroller/servlet-name
url-pattern/do//url-pattern
/servlet-mapping
then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at
I finally figured it out, thanks to your help.
I was trying to match what the controller servlet was mapped to in my
action parameter to the html:form tag, when in reality, I should have
been doing the opposite. The html:form tag apparently prefixes the
controller path token to whatever action
Well I have found the answer to the relative URI problem with the
html:img, html:rewrite and html:link tags. Now those are quite useful!
Unfortunately, the O'Reilly Struts book was of no help to me with any of
these matters. If any newbie reads this and wants to get up to speed
quickly, I
Hi ,
On these lines you can do Authorization and Authentication in Struts.
But it calls the tomcat 404 page, I am still doubtful as how to call a
customised page in this regards.
Can anyone help.
The below portion of code i believe should help in the given context.
Shilpa
private boolean _403
Just FYI :
JGuard is an open source JAAS implementation.
Regds
r-a-v-i
-Original Message-
From: Shilpa Vaidya [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 9:50 AM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: RE: Authorization and Authentication in Struts
Hi
Hi
The context name of my application is am .
Here is the sample code of action class, struts-config, tiles-def web.xml ...
ACTION CLASS ***
//--- servlet ---
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import
37 matches
Mail list logo