Re: tiles ForwardAction

2004-09-06 Thread brenmcguire
Sure you can, but you have to satisfy some requirements: 1) Use the Tiles controller instead of standard Struts controller, i.e. in your struts-config.xml you must specify: but I think you already did it because you are using Tiles :-P 2) Have a elements in your struts-config.xml, either global

RE: load() exception

2004-09-06 Thread David G. Friedman
Chad, I meant have you verified that you included the resources file NAMED in the war's WEB-INF/struts-config.xml file AND verified it's path? -David -Original Message- From: Chad Shryock [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 12:08 AM To: 'Struts Users Mailing List

RE: load() exception

2004-09-06 Thread Chad Shryock
Yes, my struts-config.xml file is in the correct place. All of my resources are specified. -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 11:55 PM To: Struts Users Mailing List Subject: RE: load() exception Chad, It reads "error p

RE: load() exception

2004-09-06 Thread David G. Friedman
Chat, It reads "error parsing resource path" so have you verified that your application resources are specified in your cementjob.war's WEB-INF/struts-config.xml file and that it exists in the correct WEB-INF sub-folder listed within your WAR file? Regards, David -Original Message- From:

load() exception

2004-09-06 Thread Chad Shryock
Hello, I am using WSAD to develop a Struts 1.1 application. I am using Tomcat 5.0.27, WSAD 5.1.0. I am deploying the war file via the /manager/html application provided by Tomcat. This is the error I am getting: 2004-09-06 22:23:41 StandardContext[/manager]HTMLManager: install: Installing web ap

Re: Struts 1.2.2/1.2.3 struts-examples.war not working

2004-09-06 Thread Niall Pemberton
This problem occurs when the examples are run locally, without a connection to the outside world. I agree that the struts-config is an issue, but the problem you're encountering is before that in the web.xml, which has a similar DOCTYPE... http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Just for

RE: Simple log4j.properties HELP

2004-09-06 Thread David G. Friedman
Can you show us your commons-logging.properties file, which should set up the sending of log messages to log4j? Regards, David -Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 7:31 AM To: Struts Users Mailing List Subject: Simple log4j.proper

Re: Is this some kind of pattern? is this good at all? (MORE INFO)

2004-09-06 Thread Leandro Melo
I just would like to briefly describe some nice features of this approach. - With this approach i definetly solve my earlier problem that i posted on question "1:N relationships - ActionForm x DTOs". - With this approach i got no coupling between my ActionForm and DTOs. - With this approach i ha

Is this some kind of pattern? is this good at all?

2004-09-06 Thread Leandro Melo
Hi, keeping in mind that more than one action form may have to validate and/or reset the same fields, i decided to this. I already have a MyBaseActionForm which incorporates all some methods that i need in my application. I don't use Validator, as i prefer to use java classes for validation ligth

Auto-Submit Form when loading JSP page

2004-09-06 Thread Tom Holmes Jr.
I am a Struts newbie, and I have made great strides with the book: "Jarkarta Struts for Dummies" by Mike Robinson and Ellen Finklestein. They have an application called MusicListCollection and I have been using that to help me figure out Struts. One of the pages is called musiclist.jsp, this is a

1:N relationship - ActionForms x DTOs

2004-09-06 Thread Leandro Melo
hi, unfortunatelly i got my action forms coupled with my DTOs . This is a very common disucussion in which i don't want to go to the merits of it right now. I just need a solution for a specific problem, but if this solutions requires going back to the first point, it's ok. I'm used to have jsps

RE: Struts 1.2.2/1.2.3 struts-examples.war not working

2004-09-06 Thread Longson, Robert
The problem seems to be that in the various struts-config.xml within the struts-examples.war the DOCTYPE is: http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd "> when it should be: http://struts.apache.org/dtds/struts-conf

Re: Struts 1.2.2/1.2.3 struts-examples.war not working

2004-09-06 Thread Erik Weber
Not sure, but I notice the ConnectException. It appears that the XML parser is having problems using HttpClient to open a socket connection. Perhaps the DTD URL (or some other reference) is wrong in web.xml? Just a guess, Erik Longson, Robert wrote: When I drop the struts-examples.war file into

tiles ForwardAction

2004-09-06 Thread Michael Kastner
Hello, is ther any way I can forward to a tile-definition? Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Javascript: Access is denied when I try to upload a file

2004-09-06 Thread Frank Zammetti
Nothing is wrong... the browser is exercising some security so that scripts cannot initiate an upload without direct user intervention. I don't mean to toot my own horn (well, ok, yes I do! :) ) but I am generally considered a JavaScript/DHTML guru at work (but not at home?!?)... I've been tryi

Re: another easy (I hope) beginner question

2004-09-06 Thread Erik Weber
Tim Cross wrote: Hail gurus, especially Robert Taylor at mulework.com, who, in spite of his claims not to be a guru, set me right on my last easy beginner question (as did my friend and former colleague Ciaran Kenny back in Boulder - the same answer came in from both gurus within an hour of each o

Re: another easy (I hope) beginner question

2004-09-06 Thread Vic
Not sure what your are trying to do or what your question is, can you pleas exaplin again? (my guess is taht jstl and a cached dao that outputs a collection is going to be the answer, but I am not sure of the question or the perofrmance issue you see) .V (Muleworks looks cool! ) Tim Cross wrot

Struts messages are not displayed in JSP

2004-09-06 Thread lixin chu
Hi, I gies a strange problem, the messages are not displayed. here is the code in my Action: messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage ("templates List error")); saveMessages (request, messages); In JSP: however, the messages are not displayed when t

Re: Line Breaks and Formatting Text

2004-09-06 Thread Tom Holmes Jr.
Great! Thanks for the help, I appreciate it very much! Now, the question I have is ... which is the preferred method? The JSP only solution looks like it does use a scriptlet to set the pagecontext. The first solution (which I use the replaceall), I am not sure if I want to do that because othe

another easy (I hope) beginner question

2004-09-06 Thread Tim Cross
Hail gurus, especially Robert Taylor at mulework.com, who, in spite of his claims not to be a guru, set me right on my last easy beginner question (as did my friend and former colleague Ciaran Kenny back in Boulder - the same answer came in from both gurus within an hour of each other). Here's thi

Struts 1.2.2/1.2.3 struts-examples.war not working

2004-09-06 Thread Longson, Robert
When I drop the struts-examples.war file into my tomcat webapps I get the following error in my tomcat 5.0.19 log file on startup: 06-Sep-2004 17:53:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /struts-examples from URL file:C:/jakarta-

RE: Line Breaks and Formatting Text

2004-09-06 Thread Daniel Perry
If you choose to keep the replaceall, then use: Or, for a jsp only solution: <% pageContext.setAttribute("linefeed", "\n"); %> Daniel. > -Original Message- > From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] > Sent: 06 September 2004 17:08 > To: Struts Users Mailing List > Subject: Li

RE: Data Sources

2004-09-06 Thread Matthias Wessendorf
will be removed in Struts 2.X (aka Jericho) see: http://struts.apache.org/faqs/database.html and Wiki for Struts2.X: http://wiki.apache.org/struts/StrutsJericho Hope that helps you. Regards, Matthias > -Original Message- > From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] > Sent: Monday,

Data Sources

2004-09-06 Thread Tom Holmes Jr.
I was just curious I am using Apache 2.0.50 JK2 (2.0.2) and Tomcat 4.1.30 on Windows 2000 for now, and I hope to port this all to Linux in the future. Before I started using struts, I was putting the database resource into the Tomcat server.xml configuration file, and then it also had to be

Line Breaks and Formatting Text

2004-09-06 Thread Tom Holmes Jr.
I am a Struts newbie, but not in writing web-applications or JSP pages. I am writing a simple app that is taking data from my database and displaying the data in my JSP page, that works. I got the date formatted how I want, and that's fine. The text data that I want to display has some linefee

RE: Muiltiple resource files,

2004-09-06 Thread Matthias Wessendorf
define yours in struts-config.xml in Action.clzz: MessageResources sqlResources = getResources(request,"sql"); btw. keep in mind that Action's job should not be accessing databases: http://struts.apache.org/faqs/database.html Regards, Matthias > -Original Message- > From: Ruben Cepe

Muiltiple resource files,

2004-09-06 Thread Ruben Cepeda
Hello everyone, I want to load a resource file for my sql statements, how would I go about it? * Ruben Cepeda [EMAIL PROTECTED] * _ Don’t just search. Find. Chec

Re: action conf with tile ?

2004-09-06 Thread Chuck Chopp
liooil wrote: Sorry, Completion : note if i code my tile like in the following, "authenticationLayout" tile does not exist as a JSP file ... OK, all you have there are the XML-formatted definitions used by your webapp. You still need to have a JSP that uses the "tiles.tld"

Controller in Struts-conf.xml !!

2004-09-06 Thread Eric Chow
Hello, Struts can't support multi controllers, right What do you think if it is better to support more than one controllers ??? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: where to go next (after submit)

2004-09-06 Thread Dietmar Krause
Return Receipt Your document: Re: where to go next (after submit)

RE: To Show Web Home Page That Consists of Tiles

2004-09-06 Thread liooil
was it the end of the thread? I am curious about the solution, cause, of course, i'm currently stuck on same issue. let me know if you find a solution. Thank ypu > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 11:27 AM > To: Struts

Re: action conf with tile ?

2004-09-06 Thread liooil
Sorry, Completion : note if i code my tile like in the following, "authenticationLayout" tile does not exist as a JSP file ... liooil wrote: > The point is i precisely do not want that the execute method to be > processed. Because the end user has not submited anything

Re: action conf with tile ?

2004-09-06 Thread liooil
No, how should i do that? Have you got a sample code ? Thx, liooil wrote: > The point is i precisely do not want that the execute method to be > processed. Because the end user has not submited anything yet and should > not see an html page with an error caused by an exception thrown because >

Re: action conf with tile ?

2004-09-06 Thread Chuck Chopp
liooil wrote: The point is i precisely do not want that the execute method to be processed. Because the end user has not submited anything yet and should not see an html page with an error caused by an exception thrown because of default fields (even blank ones) ... right ? I just said this does no

Re: Easy Struts

2004-09-06 Thread Darryl Pierce
On Monday 06 September 2004 07:49 am, James Holmes wrote: > As far as I know, Easy Struts does not work with Eclipse 3. Struts Console > does though. It provides similar functionality (Easy Struts is based on > Struts Console) and more. > > http://www.jamesholmes.com/struts/ But, be warned: if y

Re: ExceptionHandler handles, but no error output in JSP(tiles)

2004-09-06 Thread O. Oke
--- Michael McGrady <[EMAIL PROTECTED]> wrote: > O. Oke wrote: > > >Help please! > > > >I have just integrated ExceptionHandler into > >struts-config.xml file. It now > >appears to handle exceptions (because stack trace > is > >no longer displayed in browser, when there is an > >error) but no e

RE: Easy Struts

2004-09-06 Thread James Holmes
Hi Michael, As far as I know, Easy Struts does not work with Eclipse 3. Struts Console does though. It provides similar functionality (Easy Struts is based on Struts Console) and more. http://www.jamesholmes.com/struts/ -James -Original Message- From: Michel Van Asten [mailto:[EMAIL P

Re: Easy Struts

2004-09-06 Thread Christoph Kutzinski
Michel Van Asten wrote: Hi, Just to have a look at Easy Struts... I install Eclipse 3 and after I try to install Easy Struts... but at this time I got a warning about a not installed plug-in " Easy Struts plugin (0.6.3) requires plug-in "org.eclipse.update.ui.forms"." any idea ? It is probably on

Easy Struts

2004-09-06 Thread Michel Van Asten
Hi, Just to have a look at Easy Struts... I install Eclipse 3 and after I try to install Easy Struts... but at this time I got a warning about a not installed plug-in " Easy Struts plugin (0.6.3) requires plug-in "org.eclipse.update.ui.forms"." any idea ? how can I get this plug-in Regards Mi

Re: struts servlet chaining and immutable request?

2004-09-06 Thread struts Dude
- Original Message - From: "Woodchuck" <[EMAIL PROTECTED]> To: "struts" <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 5:01 AM Subject: struts servlet chaining and immutable request? > hihi, > > in my Action object, i am doing servlet chaining by forwarding to > another ".do" ins

Simple log4j.properties HELP

2004-09-06 Thread struts Dude
Hi guys I can't seem to get the following simple log4j.properties file to work. I have log4j-1.2.8.jar and commons-logging-1-0-3.jar in WEB-INF/lib of my web app. Also the following log4j.properties in class folder of web app. - log4j.rootCategory=info, stdout log4j.logger.com.template=d

request in actionform validate()

2004-09-06 Thread Sebastian Ho
Hi A quick question.. I should be able to get request attributes from the request parameter in validate right? In my case, there is nothing in my request but in my JSP I already have the hidden fields. And what about request attributes in the same JSP, it seems like they were gone if validation

Re: ActionError in Struts1.2 ???

2004-09-06 Thread calandraca
ActionErrors is not deprecated, but saveErrors(HttpServletRequest request, ActionErrors errors) is. According to 1.2.2 javadoc you should use saveErrors(HttpServletRequest, ActionMessages) instead, dispite ActionErrors is a subclass of ActionMessages. I don't mind because it has all functionallity

MessageResources and JSTL ???

2004-09-06 Thread Eric Chow
Hello, In struts-conf.xml, we can define more than one Message Resources: In JSTL, I have to add a for use in How can I defein JSTL to use Struts' message resources setting without setting the context-param in web.xml ??? Eric ---

domain was null - error

2004-09-06 Thread Viral_Thakkar
500 Internal Server Error java.lang.NullPointerException: domain was null at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.rmi.RMIServer.addNode(RMIServer.java:735) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.rmi.RMIServer.getConnection(RMISe

Re: action conf with tile ?

2004-09-06 Thread liooil
The point is i precisely do not want that the execute method to be processed. Because the end user has not submited anything yet and should not see an html page with an error caused by an exception thrown because of default fields (even blank ones) ... right ? I just said this does not happen on b

Re: map-backed ActionForm

2004-09-06 Thread Shinobu Kawai
Hi Claudia, > and the ActionForm: > > public class ProjektDDEForm extends ActionForm{ > >private Map enten; > >/** Creates a new instance of ProjektDDEForm */ >public ProjektDDEForm() { > >} > >public Map getEnten(){ >return enten; >} > >public void setEnt

RE: whats going wrong ? - Problem Solved

2004-09-06 Thread Viral_Thakkar
Yup, you are rite. -Original Message- From: Yves Sy [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 1:03 PM To: Struts Users Mailing List Subject: Re: whats going wrong ? The ActionServlet does not see your struts-config or a struts-config for a specific module. Check your pat

Re: action conf with tile ?

2004-09-06 Thread Lai Boon Hui
To get the behaviour that you desire you can write another action-mapping to just direct to the jsp page. When you call the action http://localhost:8080/banking/login.do the execute method will be processed. --- liooil <[EMAIL PROTECTED]> wrote: > Hello world, > > i'm trying to modify a simp

Fw: html:multibox problem!!

2004-09-06 Thread RamKumar
I guess no one has seen this post. So resending it again. Hi, I have a question and 4 choices.You can select multiple answers for single question. I want to do skiplogic for this question .i.e. when the users selects choices 1 & 3 go to 5th page.Like this there will be multiple combinations(we li

map-backed ActionForm

2004-09-06 Thread Claudia Woestheinrich
Hello, my JSP-Code is: ..  <%=ent.getDde ()%> Anzahl: and the ActionForm: public class ProjektDDEForm extends ActionForm{ private Map enten; /** Creates a new instance of ProjektDDEForm */ public ProjektDDEForm() { } public Map getEnten

action conf with tile ?

2004-09-06 Thread liooil
Hello world, i'm trying to modify a simple and sample banking webapp from : http://examples.oreilly.com/0596006519/ To reach a login page, their parameter in struts-config.xml is like : I've neerly the same need, so i did neerly the same : The only difference i see

Re: whats going wrong ?

2004-09-06 Thread Yves Sy
The ActionServlet does not see your struts-config or a struts-config for a specific module. Check your pathnames in web.xml and that it matches the physical location of your struts-config files. -Yves- On Mon, 6 Sep 2004 12:40:33 +0530, Viral_Thakkar <[EMAIL PROTECTED]> wrote: > 500 Internal Ser

Re: whats going wrong ?

2004-09-06 Thread Lai Boon Hui
Seems to me that there is a problem with your deployment descriptor files. My first guess is the web.xml file then probably the struts-config.xml file. Helps if you post these as well. --- Viral_Thakkar <[EMAIL PROTECTED]> wrote: > 500 Internal Server Error > java.lang.NullPointerException >

Re: Message-resources parameter setting for struts 1.2

2004-09-06 Thread Lai Boon Hui
Thanks for the quick reply. I am just curious why the struts-blank.war for struts 1.2 uses MessageResources at the message resource setting when there is no MessageResource.properties file inside the resources folder. So is there a mistake there and that the resource setting should have been resou

whats going wrong ?

2004-09-06 Thread Viral_Thakkar
500 Internal Server Error java.lang.NullPointerException at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl et.java:1003) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja va:955) at org.apache.struts.action.ActionServlet.in