Object mapping..

2003-10-07 Thread virupaksha
Dear All, Can any one please tell me why we require object mapping with database in model of MVC architecutre. my doubt is, we can communicate with database by directly our bean..why we have to use object mapping with OJB(Object Relational mapping) or whatever..i just want to know what is

Re: error code 404

2003-10-07 Thread Peter Ondruska
I'm sorry I didn't pay attention. The error code Struts returns when action does not exist is not 404 (No Found) but it is 400 Bad Request. Now if I add appropriate error page for error code 400 everything works. - Original Message - From: Peter Ondruska [EMAIL PROTECTED] To: [EMAIL

Re: Object mapping..

2003-10-07 Thread hgosper
Why object mapping? It is a design pattern that helps with separation of concerns in the database application. Look up Data Access Object in google for more information. Heya Gosper CSC Australia 212 Northbourne Ave, Braddon ACT 2612 Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100 MOB: 0401

ssl question

2003-10-07 Thread Stephane Grenier
Hello all. I can't seem to find the cause of this particular problem. Perhaps someone can point me in the correct direction. On my local box I'm using sslext with the url being the ip of the box. I have no problems going in and out of ssl. The problem has only risen since I moved to the

Re: ssl question

2003-10-07 Thread Stephane Grenier
As well, it appears that when sslext:pageScheme is set to false, it acts as any on the production box. Any suggestions are appreciated. Thanks Stephane - Original Message - From: Stephane Grenier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October

Performance constraints

2003-10-07 Thread Rohit_Arora
Hello All, Can some one help me and tell me abt -- the performance constraints that come due to the use of struts framework. -- the constraints that come due to the use of actionservlet. -- How does the action servlet take care of multiple requests for the same web application ? Is it that

wrapping action invocations

2003-10-07 Thread Nathan Coast
Hi, Apologies if this is a duplicate, I posted a few days ago but it doesn't seem to have made it to the list. I'd like to introduce a layer between the action servlet and the action classes to perform generic processing - authorisation, error handling etc. I have 2 solutions: 1) subclass

RE: Performance constraints

2003-10-07 Thread Navjot Singh
-- the performance constraints that come due to the use of struts framework. -- the constraints that come due to the use of actionservlet. I have hardly noticed nay perf loss on using struts. Naturally, every framework has some overheads but you got to trade off with the maintence and scalablity

RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Navjot Singh
you may wish to look upon JAAS if you have so many diff roles and user per roles. Anyway, struts lets you specify role atrribute (that takes comma sep values, i guess) for each action. If you can extend RequestProcess class and modify the processRoles() method so you can redirect to any page if

FW: retrieving values from multiple=true select box

2003-10-07 Thread Manav Gupta
No takers for this? M -Original Message- From: Manav Gupta Sent: Monday, October 06, 2003 5:42 PM To: Subject: retrieving values from multiple=true select box Hi, I'm sure this has been resolved by a thousand ppl before me, but I'm unable to find an answer to it. I did google, but

html:submit

2003-10-07 Thread harm
Hi all, How can I name a submit button. I need a name for it, because I want to access it from Javascript. I render the submit button as follows: html:submit styleClass=button value=send! onclick=closing=false; document.correctionForm.action='/advertentieoverzicht/store_correction.do'; / This

[OT] deploying a war Problem on weblogic 6,1

2003-10-07 Thread tarun.matai
Hi All, While deploying a war file on weblogic 6.1, I am getting java.lang.reflect.UndeclaredThrowableException error can any one help me solving this problem. Regards Tarun DISCLAIMER: This message contains privileged and confidential information and is intended only for the

Re: workflow extension question

2003-10-07 Thread Matthias Bauer
Adam, sorry that I obviously did not make myself clear enough. Look at the following definitions: global-forwards: workflowViolation_wiz1step1: violatedWizard1Step1 workflowViolation_wiz1step2: violatedWizard1Step2 displayWizard1Step1 primaryWorkflow: wiz1step1 newState: displayed nextState:

Tools for Testing

2003-10-07 Thread Dirk Behrendt
Hello! There are tools for automatic testing the Struts application? Dirk

RE: [OT] deploying a war Problem on weblogic 6,1

2003-10-07 Thread Butt, Dudley
you need to set the permissions in the config.xml or weblogic.xml to enable the use of reflection... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 10:24 AM Subject: [OT] deploying a war Problem on weblogic 6,1 Importance: High

RE: [OT] deploying a war Problem on weblogic 6,1

2003-10-07 Thread tarun.matai
Hi, Can you please guide me how to set the permission to enable the use of reflection in config.xml or weblogic.xml Regards, Tarun Matai -Original Message- From: Butt, Dudley [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 3:00 PM To: 'Struts Users Mailing List'

Forwards with parameters

2003-10-07 Thread Jason Meredith
Chaps I have a link with some parameters that a user selects to update a specific record, something like this - action/names?action=PageEditparamOne=101paramTwo=BOBparamThree=Joe When a user updates the record, I want them to be able to go back to that record with those parameters (this will

Reusability of Popup Windows Exception

2003-10-07 Thread Frederic Dernbach
I'm trying to implement my first popup window. I'd like to implement a search window for an entity (called signal in this case) that I can reuse in different areas of my web application. This search window has several criteria and one submit button in order to perform the database lookup and

Wizard with a Twist

2003-10-07 Thread Bob Lee
All, I have requirements do develop a wizard like application where you can have multiple questions (up to 3) on a single page. When there are multiple questions, the first appears, you select an answer, and the next one appears. If you change the answer to a previous question, all of the

Using set-property attribute in action class

2003-10-07 Thread Nisith Dash
How can i access the propery of a bean which i have set in the struts config file using set-property in my action class. thanks, DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the

DynaValidatorForm

2003-10-07 Thread Glenn Holmer
When you're using DynaValidatorForm and the page has two buttons (e.g. Commit and Cancel), how do you not validate if the user hits the Cancel button (which on my page, also submits, but the action checks the value of the submit button)? Do I have to write a Form subclass to do this? Can you have

[help] nest logic:iterate problem!!

2003-10-07 Thread
Dear: How to processes nested iterate tag? Im meeting a nest iterate problem. Ex: logic:iterate id=list1 name=list type=java.util.ArrayList tr logic:iterate id=itemlist name=list1 property=item type=java.util.ArrayList td width=14%

Re: DynaValidatorForm

2003-10-07 Thread Adam Hardy
If your buttons have values set then you can test to see which button value was submitted. Even better though with struts you can use the built-in cancel button without needing to do that. html:cancel/ and then check action.isCancelled(request) Adam On 10/07/2003 01:49 PM Glenn Holmer wrote:

Re: DynaValidatorForm

2003-10-07 Thread Glenn Holmer
Adam Hardy wrote: If your buttons have values set then you can test to see which button value was submitted. Even better though with struts you can use the built-in cancel button without needing to do that. html:cancel/ and then check action.isCancelled(request) But those would be done in the

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
Glenn, - Use a descendant of DispatchAction for your form's action, - Have two separate methods in the action class for your two buttons (one for 'commit' and one for 'cancel'). - In the struts-config.xml file, specify attribute 'validate' to 'false' for your form's action.The form validation

Creating a bean!!!!

2003-10-07 Thread Zakaria khabot
Hi, I have created a formBean : form-beans form-bean name=bookForm type=books.Book/ /form-beans But the class Book isn't known as an element of tke package books. and I received this exception : javax.servlet.jsp.JspException: Exception creating bean of class books.Book: {1} void

Re: [help] nest logic:iterate problem!!

2003-10-07 Thread Frederic Dernbach
You can look at the struts-layout library that solved this problem in its layout:collection tag. Source code of the library is available at http://struts.application-servers.com/ . Fred Le mar 07/10/2003 13:52, a crit : Dear: How to processes nested iterate tag? Im meeting a nest iterate

Re: workflow extension question

2003-10-07 Thread Adam L
Matthias: Thank you for the clearer explanation. If I understand this now, if I change all my current workflow violation forwards to be of type ForwardNextStateViolationAction (they are all currently just plain actions with a forward, no type specified), then the existing workflow will

Re: Wizard with a Twist

2003-10-07 Thread Adam L
For what it's worth, check out the workflow extension, http://www.livinglogic.de/Struts It takes a bit of tinkering with to fully understand and appreciate its power (check the archives for a very recent dialog between myself and its designer, Matthias Bauer). It's very simple in concept and

Re: Creating a bean!!!!

2003-10-07 Thread Adam L
First:you don't need to use excessive punctuation in your subject titles. More often than not it's bound to get your post ignored or pushed aside. Second: I don't understand from your message if you DO or DO NOT have a class named Book that resides in the package books as in: code

RE: Tools for Testing

2003-10-07 Thread Nguyen, Hien
Take a look at StrutsTestCase for Junit at www.junit.org. -Original Message- From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 5:07 AM To: [EMAIL PROTECTED] Subject: Tools for Testing Hello! There are tools for automatic testing the Struts application?

Re: CTRL-N should not work in different machine...

2003-10-07 Thread Prashanth.S
Hi, Regarding my problem of invalidating application[giving some sort of session timeout error when the url of a running application is copy pasted into different machine] i have one small idea. Iam passing sessionid in url...so what i will do is get some property which is specific to each

Menu inside Tab content

2003-10-07 Thread Nguyen, Hien
Hi, I use tabLayout.jsp and on one of my tabs, I have a menu. (using Struts' menu.jsp). When my user clicks on the menu's link, I want to be able to load that page into the tab's content. Can someone please give some guidedance as to how I should approach this? Thanks. --Hien

xml objects for forms and persistence

2003-10-07 Thread MBrewer
I will be working on porting a company framework (and hopefully open source it) from ASP/VB (yack!) to Java. The idea of the framework is quite simple. It is a framework for buiding administration screens like update/search edit user but it has some interesting features : The Business objects a

Struts Token and Forxard

2003-10-07 Thread liste
Hi everyone, I hope someone will help me… I decided to use the Struts token solution to manage double submits and back button problem. It almost seems to work ; indeed, all extra submissions bring me back to the JSP with a message, via my prepare action class… My problem is that when the

set a relative path instead of absolute for a jsp file

2003-10-07 Thread David Thielen
Hi; I have a situation where I need to have the jsp files with my html files. (I have just 2 of them and they use the same templates as the 100+ html files and they are a simple part of the website.) My J2EE server is configured to look in both the server's web application directory and

form object names, population and processing

2003-10-07 Thread Takis Diakoumis
hi i'm using an ActionForm to populate a form and update (or add new) data. i have a bean object with set/get methods which i add to my extended ActionForm class with setMyObject and getMyObject. i use the above to populate my form which works fine. when using a tag in a form say for a text

Re: ssl question

2003-10-07 Thread Max Cooper
The second problem is likely an infinite redirection loop: Browser: I want http://server/page.jsp Server: Go to https://server/page.jsp Browser: I want https://server/page.jsp Server: Go to http://server/page.jsp Browser: I want http://server/page.jsp Server: Go to https://server/page.jsp ...

how to keep developing time as short a possible?

2003-10-07 Thread harm
Hi all, I'm a J2EE developer. I have made a few projects using Struts. And I have to say I like the Struts framework very much. I'm using XDoclet to generate struts-config.xml (to speed up development). The only thing I'm not happy about is the following: 1. I change something in my JSP. 2.

Re: how to keep developing time as short a possible?

2003-10-07 Thread Michael Nascimento Santos
Depeneding on your application server, you can deploy your application in expanded mode, i.e., without any need to pack it into an ear. So, you are able to change the file and test it immediately. []s Michael Nascimento Santos JSR-207 Expert Group Member http://today.java.net/pub/au/80 Sun

Re: DynaValidatorForm

2003-10-07 Thread Glenn Holmer
Frederic Dernbach wrote: Glenn, - Use a descendant of DispatchAction for your form's action, - Have two separate methods in the action class for your two buttons (one for 'commit' and one for 'cancel'). - In the struts-config.xml file, specify attribute 'validate' to 'false' for your form's

Re: set a relative path instead of absolute for a jsp file

2003-10-07 Thread Graham Leggett
David Thielen wrote: Is there a way in struts to tell it to look for a relative path? In other words, if I start with windwardreports/form.jsp, then go to windwardreports/demo.jsp? We had the same problem, and created this patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15921 I would

Re: how to keep developing time as short a possible?

2003-10-07 Thread Max Cooper
IntelliJ IDEA is capable checking your JSPs at the end of a build. It takes a long time, though, which I suspect means that it is compiling them all to .java and then to .class files. I don't know if it is possible to use these compiled versions or not, but it can be useful as a check. It does not

Re: how to keep developing time as short a possible?

2003-10-07 Thread Mike Kienenberger
[EMAIL PROTECTED] wrote: I'm a J2EE developer. I have made a few projects using Struts. And I have to say I like the Struts framework very much. I'm using XDoclet to generate struts-config.xml (to speed up development). The only thing I'm not happy about is the following: 1. I change

Form posting nulls

2003-10-07 Thread eric
A couple of our clients that are accessing our pages are posting nulls in their form submissions, these are struts pages. It is only happening with Internet Explorer 6.0 (not 5.5) and both clients are behind Cisco PIX firewalls. Has anyone encountered problems like this? One client is using

Re: DynaValidatorForm

2003-10-07 Thread Adam Hardy
Why get complicated? All you need is html:cancel/ and the validation will automatically not be executed. Even the javascript validation if you are using DynaValidatorForm. Adam On 10/07/2003 04:27 PM Glenn Holmer wrote: Frederic Dernbach wrote: Glenn, - Use a descendant of DispatchAction for

Re: Wizard with a Twist

2003-10-07 Thread Bob Lee
Thanks, Adam, but the flow is not my main problem. Let me use a more detailed example: The first page has one question: QA The user clicks on an answer and another question appears: QA QB Again: QA QB QC The user goes back and changes the answer to the first question: QA QD As you can see,

Re: Wizard with a Twist

2003-10-07 Thread Adam Levine
What about shell pages? each page will then include the appropriate page fragement as determined by your business logic (they answered A to question 2, which means we need to include pageFrag3 for the next page). Combine that with a .properties file that may determine your combinations

Re: DynaValidatorForm

2003-10-07 Thread Glenn Holmer
Adam Hardy wrote: Why get complicated? All you need is html:cancel/ and the validation will automatically not be executed. Even the javascript validation if you are using DynaValidatorForm. Now *that* is slick. Thanks. -- Glenn

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
Instead of if (errors.size() 0) { request.setAttribute(org.apache.struts.action.ERROR, errors); forward = failure; } I would write : if (! errors.isEmpty()) { saveErrors(request, errors); forward=failure; } Le mar 07/10/2003 16:27, Glenn Holmer a crit :

AW: how to keep developing time as short a possible?

2003-10-07 Thread Slobodan Kasterovic
Hi ! I can confirm this opinion! With Ants JSPC this works very fine. Slobodan Kasterovic -- -Ursprüngliche Nachricht- -- Von: Nicholson, Robb [mailto:[EMAIL PROTECTED] -- Gesendet: Dienstag, 7. Oktober 2003 16:22 -- An: 'Struts Users Mailing List' -- Betreff: RE: how to keep

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
Adam, You are right. I just wrote something more generic. Le mar 07/10/2003 17:00, Adam Hardy a crit : Why get complicated? All you need is html:cancel/ and the validation will automatically not be executed. Even the javascript validation if you are using DynaValidatorForm. Adam On

[Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Yann Cébron
Read for yourself and judge: http://www.softwarereality.com/soapbox/softwarefashion.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ssl question

2003-10-07 Thread Stephane Grenier
Thank you, I'll try this. Also would you happen to have any idea why when I change protocol to ssl in the url it truncates the www from my domain name in the url ? I believe this is related to the problem. Thank you, Stephane - Original Message - From: Max Cooper [EMAIL PROTECTED] To:

setting application context

2003-10-07 Thread Kannan
Hi all! I have a lot of drop down menus in my web application. I need to set them as collection objects in servlet context. that should load up when the application ( tomcat start..) load up. Then i can play with struts by iterating it.. Can any one help me , How to do this? How to write the

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Hardy
If that's what she looks like with struts, what's she going to look like with java server faces? On 10/07/2003 05:30 PM Yann Cbron wrote: Read for yourself and judge: http://www.softwarereality.com/soapbox/softwarefashion.jsp

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread David Graham
The author comes to the surprising conclusion that any particular technology isn't suited for every application! There seems to be an increasing number of internet postings designed to garner a lot of attention without actually saying anything worth reading. They generally attack some popular

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
a bunch of postings, including the article, by a bunch of un/mis-informed evangelists (for all technologies mentioned). it's like state fair day at /. can i get my 20mins back ? -- adam From: Yann Cébron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL

Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Craig R. McClanahan
Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many different roles and hundreds of people per role. Users' name, role, etc. are stored in a database. How authentication is performed (BASIC, form-based, DIGEST, or SSL client certificates) and how users are stored

RE: setting application context

2003-10-07 Thread Steve Raeburn
If you have a Servlet 2.3 compatible container (e.g. Tomcat 4.x or later) you can implement a ServletContextListener which will be notified when your context is started and gives you access to the ServletContext. ... import javax.servlet.ServletContextEvent; import

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Craig R. McClanahan
Adam Levine wrote: a bunch of postings, including the article, by a bunch of un/mis-informed evangelists (for all technologies mentioned). it's like state fair day at /. can i get my 20mins back ? This article actually was slashdotted last night. The responses were ... um ... not even up

RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Mark Galbreath
Nothing really more than I've been saying for over a yearway too much complexity in these frameworks! too bad it's not Friday, though: http://www.softwarereality.com/truestories/ Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Yann Cébron Sent: Tuesday,

RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
'In fact, we'd particularly invite Struts advocates to respond to this article by describing the benefits that they feel Struts provides over vanilla JSP.' Well if they don't get what Struts provides over vanilla JSP, then they never will. Discussing what Struts provides compared to other MVC

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Craig R. McClanahan
Steve Raeburn wrote: 'In fact, we'd particularly invite Struts advocates to respond to this article by describing the benefits that they feel Struts provides over vanilla JSP.' Well if they don't get what Struts provides over vanilla JSP, then they never will. Discussing what Struts provides

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Gregory Seidman
On Tue, Oct 07, 2003 at 09:32:52AM -0700, Steve Raeburn wrote: } 'In fact, we'd particularly invite Struts advocates to respond to this } article by describing the benefits that they feel Struts provides over } vanilla JSP.' } } Well if they don't get what Struts provides over vanilla JSP, then

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
Hey, Steve ... Guess what? You don't understand Struts. (= From: Gregory Seidman [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts) Date: Tue, 7 Oct 2003 12:57:18 -0400 On

Re: form object names, population and processing

2003-10-07 Thread Takis Diakoumis
Thanks for the suggestion. unfortunately the id attribute is not available in the struts form tag. any other suggestions would be most appreciated. Takis It maybe possible for you to set the id of the html form element. Then you can use this in the JavaScript instead of the name. I think the

maxlength validator implies required???

2003-10-07 Thread Max Kremer
Hi, I'm using the maxlength validator as follows in validator.xml field property=description depends=maxlength arg0 key=prompt.description/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemaxlength/var-name var-value300/var-value /var /field But for some reason when the

RE: maxlength validator implies required???

2003-10-07 Thread Fenderbosch, Eric
Take a look at the maxlength definition inside validator-rules.xml. validator name=maxlength classname=org.apache.struts.validator.FieldChecks method=validateMaxLength methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction,

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Keith Pemberton
This response was uncalled for... at least be more professional when responding to people through the listserv. - Original Message - From: Adam Levine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 12:04 PM Subject: Re: [Article] SoftwareFashion (includes

re[2]: maxlength validator implies required???

2003-10-07 Thread Max Kremer
Thats exactly what it was. The maxlength entry in my validator-rules.xml had a depends entry: depends=required I changed that and it now works the way I intended. Thanks for your help!! Take a look at the maxlength definition inside validator-rules.xml. validator name=maxlength

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Adam Levine
apologies. it was a joke with good intentions, but apparently bad delivery. From: Keith Pemberton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)

RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
Adam, I assumed it was tongue-in-cheek ;-) Greg, I wasn't commenting on people who are trying to understand the MVC pattern and Struts, but authors who claim to be experts in the field and who should be *very* familiar with the Model1/Model2 debate and how Struts addresses the problem. From that

ActionForm Design Question

2003-10-07 Thread Ian Joyce
Hello, I am having trouble wrapping my mind around with how I should design an ActionForm giving the following situation. My form looks like this: Child 1 [Select of all possible parents] Child 2 [Select of all possible parents] Child 3 [Select of all possible parents] ... Each child can

using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
Hi, I have a layout contentFrameLayout.jsp: html head/head body tiles:useAttribute name=screenName scope=request/ tiles:insert attribute=header / tiles:insert attribute=body / tiles:insert attribute=footer / /body /html In my tiles-def.xml, I assign values to these attributes:

Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I don't know how many products will be in the list until runtime. How can I set up my ActionForm to handle the

Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Caroline Jen
People answer questions without reading my original post. Therefore, I must re-type my original question again. Before I posted my question, I had configured the Tomcat JDBCRealm following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html so that I can do

RE: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Matt Raible
Don't put anything in struts-config, in web.xml, put: login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/login.jsp?error=true/form-error-page /form-login-config /login-config

Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Andrew Shirk
Logical paths work fine for me in web.xml (using tomcat 4.1.x): login-config auth-methodFORM/auth-method form-login-config form-login-page /do/login/edit /form-login-page form-error-page /do/login/fail /form-error-page

Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Caroline Jen
Thanks a lot, Andrew. I got the idea. --- Andrew Shirk [EMAIL PROTECTED] wrote: Logical paths work fine for me in web.xml (using tomcat 4.1.x): login-config auth-methodFORM/auth-method form-login-config form-login-page /do/login/edit

Re: using an attribute inside a tile

2003-10-07 Thread Frank Maritato
I just recently posted a question about this very problem. Attributes defined in tiles definitions are available only in the tiles scope. Therefore, you must redefine the attribute into the request scope if you want it available to your sub tiles. So, in contentFrameLayout.jsp you add the

RE: using an attribute inside a tile

2003-10-07 Thread Trieu, Danny
Or you can use Tiles' tiles:useAttibute/ tags to redefine it to You prefer scope -Original Message- From: Frank Maritato [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 1:54 PM To: Struts Users Mailing List Subject: Re: using an attribute inside a tile I just recently posted

No action instance for path /logoff could be created

2003-10-07 Thread Hari Om
I am working on a simple Logon Application. I am able to Logon to my Logon application and when I click the Signout Link it gives me following errors wonder why: - HTTP Status 500 - No action instance for path /logoff could

Tiles backward forwarding - how to?

2003-10-07 Thread Tamer Salama
Hello Everyone: First Struts project ... - A search Form inside a tile (jsp) (search.jsp). - The tile (search.jsp) is used in many of the pages (tile definitions/layouts). - The form submits to a single Action class (SearchAction). How would I make that Action (SearchAction) recognizes the

Pass/Preserve request parameters after actionForward

2003-10-07 Thread Lee, Yau-Pang
This might be a dumb question, but I couldn't find any documentation on this. I have a page that submit a form to my action servlet and depending on what they submitted, I redirect them differently via ActionForward,( E.g. return pMapping.findForward(success); ) at the end of the execute()

Tiles Tabs Layout

2003-10-07 Thread pondugud
Hi there: I am using tiles 'tabs layout' and having the following question. Question: How to display the result page with same tab being active and with out BREAKING other tab links? Explanation: Let me explain the problem. a). Lets say I clicked on 'Tab B' and it displayed a form asking for

Problem with dynamically generated anchors

2003-10-07 Thread Galabova, Hristina (HBO)
I have a jsp that uses the iterator tag to iterate over the elements of a collection of beans that is placed in request scope by an Action class. The jsp code looks something like this: logic:iterate id=promoItem name=%= ProjectConstants.PROJECT_BEAN % property=promos scope=request

Page flow dependence on html:error(s)/

2003-10-07 Thread Sasha Borodin
A common scenario I've encountered is that some check made in an action's execute() method correlates to what needs to be displayed in the view. But how can I control page flow (i.e. this section of page gets displayed, this one doesn't) based on the accumulated ActionError's? Right now, I

Cannot retrieve definition for form bean null

2003-10-07 Thread victor gusz
Hi, I got the above error when I ran my struts app. I am not using a form for this action since I only need to diaply it. And I am using Tiles framework for this. Appreciate any help. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search

RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Mark Galbreath
Yeah! And I bet you didn't know that struts-user enforces a dress code, too?! Mark Cut us some slack, Keith. -Original Message- From: Keith Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 1:28 PM To: Struts Users Mailing List Subject: Re: [Article]

RE: Pass/Preserve request parameters after actionForward

2003-10-07 Thread Tamer Salama
Hello Lee: Disclaimer: I'm in my first struts project ;-) The ActionForm is designed to carry the input parameters to your Action class, and not beyond that. So, you can create a value bean that would get populated from your ActionForm bean. Then, you can pass that value bean by placing it in

Re: using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
Frank, I tried this and the bean:write in header.jsp still does not write anything to the screen: tiles-def.xml: definition name=content.default page=/jsp/layouts/contentFrameLayout.jsp put name=header value=/jsp/common/header.jsp / put name=screenName value=Introduction /

RE: Pass/Preserve request parameters after actionForward

2003-10-07 Thread Lee, Yau-Pang
Thks Tamer, that's what I thoughtno shortcut...oh well. Simon -Original Message- From: Tamer Salama [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 6:14 PM To: 'Struts Users Mailing List' Subject: RE: Pass/Preserve request parameters after actionForward Hello Lee:

RE: using an attribute inside a tile

2003-10-07 Thread Holman, Cal
Try tiles:useAttribute id= screenName name= screenName scope=request/ Cal www.calandva.com -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 18:24 To: Struts Users Mailing List Subject: Re: using an attribute inside a tile Frank, I

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Adam Hardy
Hi Cornellious, it depends whether you know beforehand what the full set of possible fields could be, or whether the fields themselves are not limited in name or type. If the former, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields

Tiles Tag: Submit a Body Tile from Header Tile..

2003-10-07 Thread Ritvik
Hi There, We are using tiles for our JSP layout and have following tile components LeftNavigation.jsp, Header.jsp, body.jsp and footer.jsp. There are series of buttons on LeftNavigation.jsp, which must submit\post any of body.jsp HTML forms.. Any suggestions on how to submit a jsp from another

Re: HELP: strutsTestCase with ant now sending too much stacktrace!

2003-10-07 Thread Kirk Wylie
Those aren't stack traces, they're Digester output. It's notorious for its excess of logging. Did you modify any logging/log4j settings, either intentionally or inadvertantly? Kirk Wylie Mick Knutson wrote: I went from having very little stack trace, to having several hundred/thousand per

Re: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Ted Husted
Mark Galbreath wrote: Yeah! And I bet you didn't know that struts-user enforces a dress code, too?! We do like to enforce a code, Mark. It's one of the things that, over the years, have made Struts so popular. Again, please don't attack people this way. If you care to rebut something someone

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Mark Lowe
Indexed form property is what you want.. I'll avoid any clever explanations, grandiose meta language or to try and sell you a book.. And give you an example.. form-bean name=productForm form-property name=product type=java.util.ArrayList / .. action name=productForm path=/products

Re: Cannot retrieve definition for form bean null

2003-10-07 Thread victor gusz
Is it absolutely necessary to use a form bean for every action? I will only let user to click on a link and forward it to another page while sending a value. Should I define a form bean for this? And how can I do it? regards, --- victor gusz [EMAIL PROTECTED] wrote: Hi, I got the above

  1   2   >