Hi
Its the & sign in your URL - You have to escape it. This has to do with
the XML digester and not with Struts it self
Hermod
-Opprinnelig melding-
Fra: Pat Quinn [mailto:[EMAIL PROTECTED]
Sendt: 5. juli 2004 17:46
Til: [EMAIL PROTECTED]
Emne: Tiles/Frames & Urls with Parameters
Hi Gu
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 javax.servlet.htt
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 ,
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 (
Speaking of newbie tips, I've been banging my head with struts/JSTL for the
past two weeks and discovered this gem today.
<% if (image.trim().length()>0) { %>
...
This lets me grab an object out of a form bean and switch to JSP script
mode so that I can use the full force of Java rather t
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 found
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 y
okay, before i leave for the day, for path based mapping, you need
something like:
controller
/do/
then all your urls must be like:
localhost/app/do/login
that's how i understand it. you may wanna have look at struts docos for
this parameter.
ATTA
On Jul 5, 2004, at 4:57 PM, Erik Weber wrot
Thanks for helping.
I assume you mean this part:
controller
/
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 action parameter value . . .
atta-ur rehman wrote:
Okay, now you need to show
Okay. this all i have in my web.xml and it works:
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
2
detail
2
2
action
*.do
hope this helps.
ATTA
On Jul 5, 2004
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, now you need to show your web.xml!
struts-config.xml looks fine. I'd suggest you try it with .do extension
first and then try path mapping in web.xml
ATTA
On Jul 5, 2004, at 4:40 PM, Erik Weber wrote:
I have tried mapping the controller servlet to all kinds of path
prefixes
I have tried mapping the controller servlet to all kinds of path
prefixes including "/login" and "/login/*" and "/". None of them result
in the correct action parameter in the form. I don't want to use
extension mapping. I want to use path mapping. Is this where the problem is?
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 c
Hello Erik,
Is it possible for you to show your struts-config.xml file?
ATTA
On Jul 5, 2004, at 4:01 PM, Erik Weber wrote:
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 e
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
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 the
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 w
Oops...I left off the link.
Here it is:
http://forum.java.sun.com/thread.jsp?forum=427&thread=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 1:3
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 Me
The answer is, (someone correct me if i am wrong!)
No, Globals.MESSAGES_KEY key only holds the default MessageResources. If you look you
will find an attribute named 'systemErrors' wich contains the MessageResources object
of app.resources.SystemErrors
And if you use this bundle for error mess
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 iterating
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
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 follows:
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
b
Hi Guys,
I'm using tiles and frames together but when i try to pass a url value with
parameters struts fails during startup with the following error:
ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line 109
column -1: Next character must be ";" terminating reference to entity
Greetings,
I am somewhat unclear with the Message Resources.
I have defined in my struts-config:
In my Action class I have the following code:
if (getSPName() == null) {
MessageResources errorMessages = (MessageResources)
request.getAttribute(Globals.MESSAGES_KEY);
String erro
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:
Th
Hi:
I want to use SecurityFilter and I need to implement my own
Authenticator, because neither FormAuthenticator nor BasicAuthenticator
fits my needs.
The current scenario is that I will receive a post with a digital
signature and all the information authenticated from other site (as a
login servic
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 PROTEC
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 5.0.16
Please paste in a sample action and a sample tile-def. The more info the easier it is
to help you out. Also the name of your deployed app (context name).
Chris McCormack
-Original Message-
From: Mathew Joseph [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 15:07
To: [EMAIL PROTECTED]
Subjec
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.
java.l
Hi folks,
I'm new to the list, so forgive me if I'm not respecting Netiquette or
asking off-topics.
I'm trying to render pieces of html using the following syntax:
from struts-config.xml the definition of the form follows:
into the jsp I wrote (MyBeanContainer has the method getListaDann
> 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, jsf-impl.jar, jstl.jar). Though it`s not running.
Hi
i guess you need standard.jar too
see jsf-deployment-guide:
http://java.sun.com/j2ee/javaserverfaces/docs/De
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 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, jsf
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 [mai
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>
Is there anybody having the same problem or better knowing the solution? ;-)
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 "
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 Serv
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 suck
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 di
look in your web.xml
struts need this:
/WEB-INF/struts-config.xml
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
...
> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 05, 2004 9:25
Thanks Erez, great answer.
Regards,
John
[EMAIL PROTECTED]
Ph (09) 372-5010
|-+>
| | Erez Efrati |
| | <[EMAIL PROTECTED]|
| | et.il> |
| ||
|
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
11:23
46 matches
Mail list logo