SV: Tiles/Frames & Urls with Parameters

2004-07-05 Thread hermod . opstvedt
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

RE: ClassCastException when usig multiple web applications

2004-07-05 Thread Mathew Joseph
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

RE: Authorization and Authentication in Struts

2004-07-05 Thread ravi.vedala
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 ,

RE: Authorization and Authentication in Struts

2004-07-05 Thread Shilpa Vaidya
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 (

Re: Form tag problem - Another newbie tip

2004-07-05 Thread jthompson
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

Re: Form tag problem

2004-07-05 Thread Erik Weber
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

Re: Form tag problem

2004-07-05 Thread Erik Weber
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

Re: Form tag problem

2004-07-05 Thread atta-ur rehman
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

Re: Form tag problem

2004-07-05 Thread Erik Weber
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

Re: Form tag problem

2004-07-05 Thread atta-ur rehman
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

Re: Form tag problem

2004-07-05 Thread Erik Weber
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 "/

Re: Form tag problem

2004-07-05 Thread atta-ur rehman
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

Re: Form tag problem

2004-07-05 Thread Erik Weber
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?

Re: Form tag problem

2004-07-05 Thread Erik Weber
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

Re: Form tag problem

2004-07-05 Thread atta-ur rehman
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

Form tag problem

2004-07-05 Thread Erik Weber
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

Proper way to mark initial page load as such?

2004-07-05 Thread Timothy . H . Bessie
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

Authorization and Authentication in Struts

2004-07-05 Thread Hal Klimer
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

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
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

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
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

Re: Message Resources Confusion

2004-07-05 Thread Henrique VIECILI
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

Form submits but not 'data' when using bean as form property

2004-07-05 Thread Richard Aukland
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

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
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

Re: Using struts-nested tags

2004-07-05 Thread Rick Reumann
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:

AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
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

Tiles/Frames & Urls with Parameters

2004-07-05 Thread Pat Quinn
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

Message Resources Confusion

2004-07-05 Thread gdeschen
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

Re: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread Bryan Hunt
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

[OT] SecurityFilter: Custom Authenticator

2004-07-05 Thread Guillermo Meyer
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

RE: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread McCormack, Chris
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

why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-07-05 Thread ganesh gadi
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

RE: ClassCastException when usig multiple web applications

2004-07-05 Thread McCormack, Chris
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

ClassCastException when usig multiple web applications

2004-07-05 Thread Mathew Joseph
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

Using struts-nested tags

2004-07-05 Thread Paride Perazzolo
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

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Matthias Wessendorf
> 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

RE: problem using Commons Validator. please Help

2004-07-05 Thread Alvin Antony
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

AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread 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, jsf

RE: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread James Holmes
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

Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
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? ;-)

RE: problem using Commons Validator. please Help

2004-07-05 Thread Joe Hertz
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 "

Re: struts turkish character problem

2004-07-05 Thread Selim Hendrickson
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

problem using Commons Validator. please Help

2004-07-05 Thread Alvin Antony
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

Issue related to Form tag's action attribute value

2004-07-05 Thread Gopinath
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

RE: exception when I run struts application on JBoss

2004-07-05 Thread Matthias Wessendorf
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

RE: how to de-reference bean name using java method?

2004-07-05 Thread jthompson
Thanks Erez, great answer. Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+> | | Erez Efrati | | | <[EMAIL PROTECTED]| | | et.il> | | || |

exception when I run struts application on JBoss

2004-07-05 Thread Asim Ghosh
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