Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Bård Arve Evjen
Thanks for your reply, Sandeep. From what I have understood from reading the java doc, a vector has an index on it like an array does. Is it really true that noone else has had any problems with this? If it is working for you, how do you implement it? Thanks a bunch! Bard - Original

Struts logger warning message ?

2003-07-08 Thread Riaan Oberholzer
I have a struts 1.1 application running under Tomcat. Whenever Tomcat starts, I get this message: log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). I have both a commons-logging.properties and log4j.properties in the WEB-INF/classes directory

nested:define changed in Struts 1.1 Final?

2003-07-08 Thread Affan Qureshi
I have problem executing the simplest of statements since I have upgraded from RC1 to Final 1.1. nested:define id=attValue value=1 / I get the error: Define tag can contain only one of name attribute, value attribute, or body content' This was working fine previously. I didn't use c:set or

Order of displaying errors

2003-07-08 Thread sriram
I'm displaying the errors using ActionErrors. But the errors are not displayed in the order in which I'm adding them to 'errors' object. For ex., in login page, I have Username field and Password field. If username is NULL, I'm adding Username is null as error message to 'errors' object. If

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Adam Hardy
Bummer. It isn't so simple, judging from your stack trace. Looks like a config error, because struts is barfing when it tries to create your action form. Michael Muller wrote: All my fields are strings. Here's some of my struts-config.xml: form-bean name=foo

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Adam Hardy
I missed your second post. My mailer didn't thread it. So what is struts putting in 'instance' if it's not a dynabean? I don't suppose it would be so simple as the wrong form specified in the action mapping? Michael Muller wrote: Here's the struts source that's throwing the exception: // Can

RE: Order of displaying errors

2003-07-08 Thread Navjot Singh
ActionErrors - ActionMessages internally used HashMap that means errors may not be retreived in same order as they were added. If you wish, you may extend and implement your own version using TreeMap (Andrew suggested TreeMap few minutes back on this list) to solve your purpose. OR 1. save them

Re: How can I set the defualt selection?

2003-07-08 Thread Adam Hardy
You don't need to submit a form (HTTP PUT) to get a request object. You can do an HTTP GET, with no form submit in HTML client-side, by clicking on the URL, but to the servlet container and struts this is irrelevant. The request object will be created for a GET just as for a PUT. And struts

Re: How can I set the defualt selection?

2003-07-08 Thread leonZ
Thank you very much! I have made it. Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You don't need to submit a form (HTTP PUT) to get a request object. You can do an HTTP GET, with no form submit in HTML client-side, by clicking on the URL, but to the servlet container

Indexed Property Problem.

2003-07-08 Thread Anurag Garg
Hi All, I know this question would have been posted earlier also. I want to know how to work with the indexed form fields and their property in the action form class. Any link or ample code will be helpful. Anurag Garg

Re: locale-sensitive tag: how can I show an image-path out of a property-file

2003-07-08 Thread Pirmez
Try this: html:img srcKey=key.to.your.image.file border=0 / Hi, I have a property-file including urls of my images. I have a tag inside a JSP as follows: html:img src='../../../images/buttons/New.gif' border='0'/ And now I want to replace images/buttons inside the HTML with the appropriate value

Re: locale-sensitive tag: how can I show an image-path out of a property-file

2003-07-08 Thread Konstadinis Euaggelos
I had a similiar problem, I want to put an alt property in html button, I solve the problem like this, I use bean define to declare a variable named filter, bean:define id=filterbean:message bundle=BUTTON_RESOURCE_KEY key=button.filter//bean:define and then u can use this variable(filter ) as

Accessing database in java and jsp?

2003-07-08 Thread Terje Hopsø
Hello I have created a datasource in my struts-config.xml. But I cant find out how to use it. Creating my datasource in my web.xml works fine. Any tips? - Terje struts-config.xml: ... data-sources data-source set-property value=true property=autoCommit / set-property value=My

RE: Populating select boxes dynamically

2003-07-08 Thread sriram
James, As explained by you, I have done the following: I need list of countries in a drop-down box in .jsp page. I have an EJB that maps to country table in database. In that I've a method getAllCountries() that returns a collection. In that method, I've used LabelValueBean and storing labels

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-08 Thread Kris Schneider
TreeMap: Red-Black tree based implementation of the SortedMap interface. This class guarantees that the map will be in ascending key order, sorted according to the natural order for the key's class (see Comparable), or by the comparator provided at creation time, depending on which constructor is

incorrect selection of overridden setter

2003-07-08 Thread David Chelimsky
In the publishing system I'm developing, there is a TextLink class that has a LinkableType as a member. LinkableType tells me whether this TextLink links to a Page or an Asset (e.g. a pdf or a video). The TextLink has the following methods: public LinkableType getLinkableType() public void

Re: struts plugin for eclipse?

2003-07-08 Thread afreire
Try Struts console, in my opinion is better that easy struts. Regards Yansheng Lin [EMAIL PROTECTED] con fecha 07/07/2003 19:16:45 Por favor, responda a Struts Users Mailing List [EMAIL PROTECTED] Destinatarios: 'Struts Users Mailing List' [EMAIL PROTECTED] CC:(cci:

Dynamically changing forward in ActionForm

2003-07-08 Thread Michael C. Clark
I have a small ActionForm which I would like to include on all pages of my webapp (it does a login, with user name and password). When the validate() method returns an ActionErrors object, I would like control to return to the page that the login ActionForm was called from. Is there a way to do

Re: Where is GenericDataSource?

2003-07-08 Thread Ted Husted
There shouldn't be any issues, so long as don't use any of the new 1.4 features. All of these will throw an UnsupportedOperationException (see source). The only advantage would be whatever compiler optimizations might apply between 1.3 and 1.4. Both versions support the same feature set.

Re: multi-user development

2003-07-08 Thread Sandeep Takhar
Is this the only way? Do you have to specify the bundle? sandeep --- manglu [EMAIL PROTECTED] wrote: Hi, My two cents. Along the lines of multiple COnfig files, having multiple message bundles would be handy as well(for the same reason(s)) I use one bundle per config file.

Re: Dynamically changing forward in ActionForm

2003-07-08 Thread Sandeep Takhar
This has been asked many times before. You have to store something. Sometimes it is nice to have a user object that stores bookmarks etc. try searching the archive... sandeep --- Michael C. Clark [EMAIL PROTECTED] wrote: I have a small ActionForm which I would like to include on all pages

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-08 Thread Sandeep Takhar
Be careful about TreeMap though. If you have equivalency in the comparator it will remove one of the objects... Read the javadocs carefully. sandeep --- Kris Schneider [EMAIL PROTECTED] wrote: TreeMap: Red-Black tree based implementation of the SortedMap interface. This class guarantees

RE: Populating select boxes dynamically

2003-07-08 Thread Sandeep Takhar
I would store something like this in application context. This is easier in your case since you have one language it seems. PreActions can be created simply by having a BaseAction that everything overrides. The baseAction has a bunch of hooks that can be overridden. One of these is

Reloading mappings

2003-07-08 Thread Rajesh Khater
Hi, I need to get hold of the default struts-config.xml which contains the mapping for ActionServlet to reload the struts-config.xml dynamically on change. Where can I get that ?? Alternatively, can somebody send me what should I put in struts-config.xml to enable dynamic reloading of mappings

Urgent plz. on Dyna Validator

2003-07-08 Thread mohan
I am new to Dyna Validator and its working. Any useful resources on the working of a Dyna Validator Form/Dyna Action Validator will be appreciated. thanx --mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Cancel button not working?

2003-07-08 Thread Sashi Ravipati
I have a html:cancel in my jsp page. and in my action I have if(isCancelled(request)){ return mapping.findForward(index); } But it is not working. What am I doing wrong here. I am using Struts 1.1 final Thanks

Workflow engine status

2003-07-08 Thread Kevin K
I was looking at Jakarta for a workflow engine and I found this URL - http://jakarta.apache.org/struts/proposal-workflow.html. What I can't find is when this proposal was written and if this workflow engine is included in the latest release of Struts. Thanks for your help, Kevin

RE: struts plugin for eclipse?

2003-07-08 Thread Hibbs, David
I haven't tried the newest release yet, but Struts Console has a plug-in for eclipse. The last version I tried didn't really integrate into the workbench so much as open in a pop-up window, but it worked pretty well and provided the full-featured gui of Struts Console. Try it out from

RE: how to access tiles defs in inserted jsp ?

2003-07-08 Thread Hibbs, David
Sneaky little issue on this one. Try the following... in tiles-defs.xml change definition name=myTilesPageDef path=myPageTemplate.jsp to definition name=myTilesPageDef template=myPageTemplate.jsp and in myBodyImpl.jsp change foo = tiles:insert attribute=foo / to foo = tiles:getAsString

characterEncoding for resource bundle

2003-07-08 Thread Firat TIRYAKI
Hi, Is there a way to set the characterEncoding for the ApplicationResources.properties file? Simply I can not get the special characters in the 8859_9 chartype. Thanks F. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Passing Parameters Between Actions

2003-07-08 Thread Mathew, Manoj
it won't . It look in the config file to get mapping.findForward(FOR_WARD)...thats all..then it will append the attribute to it. It work's for me -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 6:32 PM To: Struts List Subject: Re: Passing

Java.net

2003-07-08 Thread Jamie M. Guillemette
FYI: I have made a perposal for a struts support forum on java.net. Im hoping that it will become a repository of examples and best practices. Everyone is welcome to contribute. Currently the project is pending approval. JMG -

html:text tag with null bean

2003-07-08 Thread Dmitri Ilyin
Hi all, I habe html:text. custom tag on my page, but i didn't create a bean, the tag throws exception. Can i config something somewhere to avoid this exception??? thank you Dmitri - To unsubscribe, e-mail: [EMAIL

Re: html:text tag with null bean

2003-07-08 Thread Ben Anderson
I'm not too sure exactly what you're trying to do, but I think this is generally how you'd be using html:text code file=struts-config.xml? form-beans form-bean name=myForm type=org.apache.struts.validator.DynaValidatorActionForm form-property

Re: html:text tag with null bean

2003-07-08 Thread Peter Smith
Hi Dmitri, An html:text tag can only be used within an html:form tag. So if you have that form defined, then you can associate an ActionForm (or probably a DynaActionFrom) with it in the struts-config file. The ActionForm is where you define what the html:text property is. Once you have made

Re: Urgent plz. on Dyna Validator

2003-07-08 Thread Adam Hardy
actually the javadocs say it all. If you've got dynaactionforms or validatorforms then it's not a huge step. [EMAIL PROTECTED] wrote: I am new to Dyna Validator and its working. Any useful resources on the working of a Dyna Validator Form/Dyna Action Validator will be appreciated. thanx --mohan

RE: Populating select boxes dynamically

2003-07-08 Thread Mohan Radhakrishnan
If it is only countries then you can load it when the application starts up. You have to implement ServletContextListener. You will have a data base call in your class that implements this interface. A 'prepopulate' action is like any other normal action that does something

Re: Workflow engine status

2003-07-08 Thread Matthias Bauer
I don't think that there has been anybody working on this proposal for several months. It is definitely not part of the latest Struts releases. Depending on what your requirements are, you might want to have a look at the Struts Workflow Extension at http://www.livinglogic.de/Struts . ---

Re: Accessing database in java and jsp?

2003-07-08 Thread Micael
This is probably more of an additional question than a help, but why do you want to do something other than create the datasource in your web.xml? At 01:31 PM 7/8/03 +0200, you wrote: Hello I have created a datasource in my struts-config.xml. But I cant find out how to use it. Creating my

Re: Workflow engine status

2003-07-08 Thread Sandeep Takhar
That is not a workflow engine per se. sandeep --- Matthias Bauer [EMAIL PROTECTED] wrote: I don't think that there has been anybody working on this proposal for several months. It is definitely not part of the latest Struts releases. Depending on what your requirements are, you might

bean:write problem with struts 1.1

2003-07-08 Thread David Jiao
Hello, I asked this question before. In my application, the bean:write doesn't work with numeric types after I update struts to 1.1. It kept throwing a message: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE. The whole exception

RE: bean:write problem with struts 1.1

2003-07-08 Thread Nicolas Seinlet
It kept throwing a message: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE. It seems to be due to the the data-sources - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: bean:write problem with struts 1.1

2003-07-08 Thread David Jiao
But I didn't specify any data-sources from my struts-config file. Do I have to include it anyway? On Tue, 2003-07-08 at 09:59, Nicolas Seinlet wrote: It kept throwing a message: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE. It

Login Form

2003-07-08 Thread Erez Efrati
Hi, My question is a bit off Struts but still since I am using Struts and it's too urgent for me I thought to try my luck here, maybe someone had stumbled on this issue too. I am running JBoss/Tomcat/Struts using the JAAS for handling the application security aspects. I have used the

Best Practice Mapped/Indexed Properties on an ActionForm

2003-07-08 Thread Nate Bowler
I put out another similar post, but let me ask this question another way in hopes of generating more feedback. I have an application with many forms that contain dynamic lists of elements. For example, rows of elements that contain a checkbox, select list, and 2 text boxes for each element. In

RE: Dynamically changing forward in ActionForm

2003-07-08 Thread Neil Carusetta
After the ActionServlet initializes the modules from the struts-config file, a freeze() is placed on the ModuleConfig which includes the ActionForwards elements. As a result any subsequent change to the actionForward's path is not possible. For the scenario you describe I usually define one

RE: bean:write problem with struts 1.1

2003-07-08 Thread Nicolas Seinlet
I have the same problem. I solve it by deleting the data-sources section and some Action in the struts config file. It's the only way I can solve the problem, but it's not a solution, because I need the data-sources and the actions. After reading the net, the problem can also be due to xml

Re: Workflow engine status

2003-07-08 Thread Matthias Bauer
It depends how you define workflow. This extension takes care of web workflow, i. e. it lets the developer define which paths a user can take when traversing a web application. This is something, Struts does not address. --- Matthias Sandeep Takhar wrote: That is not a workflow engine per

Best place for security checks in Struts?

2003-07-08 Thread David Erickson
Hi I am setting up my webapp for security, had a big thread about it last week, we've implemented filters to handle all the static filters sitting around, but would also like to put some security into the struts actions themselves. I'm trying to figure out where the best place to implement the

RE: Login Form

2003-07-08 Thread Yansheng Lin
Not sure if I understand it entirely. But you can use an iframe for the login form(protected page) on the site home page. Something like: iframe name='logon_frame' id='logon_frame' style='width:100%; height:120;' SCROLLING='no' src='https://localhost:8443/logon_iframe.jsp'/iframe Hope this

Re: Best place for security checks in Struts?

2003-07-08 Thread Sandeep Takhar
There must be a diagram that shows all the calls before it actually hits execute() method. There are quite a few. If you have a base action you can override one of them processRoles seems to be a logical place... sandeep --- David Erickson [EMAIL PROTECTED] wrote: Hi I am setting up my webapp

RE: Best Practice, Variable Number Of Form Elements

2003-07-08 Thread James Childers
The PROBLEM is submitting this form. I haven't found a way to make Struts auto-allocate space in a collection (or a Map, for that matter) in an ActionForm for the submit action. Almost every example on this I've seen deals with a fixed number of elements, and most of these still focus

Re: Best place for security checks in Struts?

2003-07-08 Thread David Erickson
Where can I find this diagram of the flow through struts? I'd love to check it out =) - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:47 AM Subject: Re: Best place for security checks in Struts?

RE: Best place for security checks in Struts?

2003-07-08 Thread James Childers
-Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:52 AM To: Struts Users Mailing List Subject: Re: Best place for security checks in Struts? Where can I find this diagram of the flow through struts? I'd love to check it out =)

Re: Best place for security checks in Struts?

2003-07-08 Thread David Erickson
And which class is the procesRoles method in? - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:47 AM Subject: Re: Best place for security checks in Struts? There must be a diagram that shows all

Re: How can I set the defualt selection?

2003-07-08 Thread Caroline Jen
Leon: I am working on the same thing. Could you show me your example of setting default selection? CJen --- leonZ [EMAIL PROTECTED] wrote: Thank you very much! I have made it. Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You don't need to submit a form

Re: Best Practice, Variable Number Of Form Elements

2003-07-08 Thread Michael Thompson
If you have indexed props with lists of java objects on your form: public Person getPerson(int index); public void setPerson(int index, Person person); public Collection getPersons(); and you have a html:text or whatever html:text property=person[4].name/ then struts(beanutils really?) will do

RE: Login Form

2003-07-08 Thread Erez Efrati
Yansheng Lin, I didn't understand, sorry. All I want to do is enable the users to login into my site from the starting page of the web site. Is it possible to post the a form action='j_security_check'? I mean before accessing a protected page which the Tomcat protects and sends me the my login

Re: ClassCastException using the DynaValidatorForm

2003-07-08 Thread Michael Muller
i don't know what's in 'instance', i'm just guessing it's not a DynaBean because of the exception i'm getting. i have discovered that if, instead of renaming the forms, i change the name of the form in the action mapping, validation works. so now i have a form named foo. :( not very elegant.

Re: Best place for security checks in Struts?

2003-07-08 Thread Jing Zhou
- Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:47 AM Subject: Re: Best place for security checks in Struts? There must be a diagram that shows all the calls before it actually hits execute()

Single error message for multiple fields using Validator?

2003-07-08 Thread Poon, Johnny
Hi, I'm using Validator. Can anyone tell me if there's a way to only show one general error message when there are errors on several fields on the page? Further, how to change the font on the title and move focus to of all the error field? What I want to do when validation comes back false are

RE: Login Form

2003-07-08 Thread Yansheng Lin
Oh I thought you had trouble accessing a protected login page from a non-secure page. Is this what you want to do in your main page? FORM method=post action='my_security_check' User ID: INPUT name='j_username' type='text' size='20' /BR/ Password: INPUT name='j_password' type='password'

RE: Login Form

2003-07-08 Thread Yansheng Lin
Here is the link: http://www.mail-archive.com/[EMAIL PROTECTED]/msg14215.html - Oh I thought you had trouble accessing a protected login page from a non-secure page. Is this what you want to do in your main page? FORM method=post action='my_security_check' User ID:

Best Practice Packaging Reusable Components

2003-07-08 Thread Frédéric Dreier
Hi, I try to develop reusable components like login form, locale chooser, explorer tree, ... and I am looking for a 'nice' way to package such components (jsp,java,gifs,..) in JAR file. Or perhaps there is another way to accomplish this? Any help is welcome :-) Frederic PS: Yes i am a

Session vs GET parameters best practice

2003-07-08 Thread José Moreira
Hello, i humbly confess that since my ASP/PHP times, not long ago,i've been having problems understanding the 'best-practice' of Session vs GET parameters in CRUD's... In my current application the practice i use is the following, for editing a single PGSQL table: * a page displaying

Re: Reloading mappings

2003-07-08 Thread Craig R. McClanahan
On Tue, 8 Jul 2003, Rajesh Khater wrote: Date: Tue, 8 Jul 2003 18:23:15 +0530 From: Rajesh Khater [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Reloading mappings Hi, I need to get hold of the default

Re: Workflow engine status

2003-07-08 Thread Craig R. McClanahan
On Tue, 8 Jul 2003, Kevin K wrote: Date: Tue, 8 Jul 2003 06:15:03 -0700 (PDT) From: Kevin K [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Workflow engine status I was looking at Jakarta for a workflow engine and I found this URL -

PAC pattern (Presentation-Abstraction-Controller)

2003-07-08 Thread Dos Santos
Hi! I was wondering if anybody has info regarding the PAC pattern being implemented using Struts. I know Struts is oriented towards the MVC pattern but I would like to know what you think about using it for PAC purposes. I truly appreciate your help. Regards. __

RE: Best Practice Mapped/Indexed Properties on an ActionForm

2003-07-08 Thread Nate Bowler
Yours and Michael's suggestion are similar and will likely be the approach I will take. I'll probably just use the ListUtils.lazyList(List, Factory) decorator to create the autovivifyingList. What's surprising to me is that this seems like an extremely common use case, but it isn't clearly

Re: characterEncoding for resource bundle

2003-07-08 Thread Craig R. McClanahan
On Tue, 8 Jul 2003, Firat TIRYAKI wrote: Date: Tue, 8 Jul 2003 16:57:02 +0300 From: Firat TIRYAKI [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: characterEncoding for resource bundle Hi, Is there a way to

Re: PAC pattern (Presentation-Abstraction-Controller)

2003-07-08 Thread Carlos Duque
Aren't these synonymous? Back in the day when MVC was intended to model a GUI there might have been a real distinction, but the two have morphed into one pattern usually under the MVC label. But they are one and the same today. Carlos At 10:17 AM 7/8/2003, you wrote: Hi! I was wondering if

Re: IE 6 SP-1 won't session

2003-07-08 Thread Lukas Bradley
Are cookies turned on? Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Login Form

2003-07-08 Thread Craig R. McClanahan
On Tue, 8 Jul 2003, Erez Efrati wrote: Date: Tue, 08 Jul 2003 19:03:17 +0200 From: Erez Efrati [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Login Form Yansheng Lin, I didn't understand, sorry. All

Re: PAC pattern (Presentation-Abstraction-Controller)

2003-07-08 Thread Dos Santos
Are you sure? I've read papers published by the author of PAC and she states that they are different. PAC has a controller between the abstraction and the interface (presentation). MVC has 2 interfaces (View and Controller) both of which interact with the abstraction (Model). I think that

RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Matthew J. Vincent
Bard, I'm not sure if you have figured this out or not, but to all who haven't - here is a link to a Struts iterate/ tag example. http://moosejaw.org/java/struts-iterate/ Enjoy. Matt Thanks for your reply, Sandeep. From what I have understood from reading the java doc, a vector has an

Re: ModuleSwitching

2003-07-08 Thread James Mitchell
On Tuesday 08 July 2003 01:36, Madala, Srinivasa wrote: I've followed the same way what struts 1.1 says about module switching.But the thing is I couldn't succede in implementing that.I'm not able to move to other module using the SwitchAction.I've been using %=request.getContextPath()% to get

Multiple Dynamic Parameter Alternatives

2003-07-08 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I need to use multiple dynamic parameters for some of my links, and I have this working nicely using a map. Unfortunately, my boss doesn't like scriptlets in the JSP pages, and wants me to find out about any alternatives. It's alright if there aren't, but I have to at least try to

Re: Multiple Dynamic Parameter Alternatives

2003-07-08 Thread Kris Schneider
Two non-scriptlet alternatives are to use JSTL or to set up the map (or maps) in an action before forwarding to the JSP. There should be *plenty* of JSTL and html:link examples in the archives. Quoting Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]: Hey everyone, I need to use multiple

sslext

2003-07-08 Thread Dhruva B. Reddy
I am using Struts 1.0 and Tomcat. I am trying to use sslext to submit a form securely. I just tried it with cookies disabled, and the URL does not get encoded. Here is a snippet... sslext:form action=formAction method=POST /sslext:form When I turn off security (i.e., set the secure

RE: Dynamically changing forward in ActionForm

2003-07-08 Thread Fedor Smirnoff
Hey, I think that global forward is the best solution for it as Neil mentioned. However, I havent tried this yet but would it be possible to include login check into lets say GeneralAction that extends Action, and than every other action will extend GeneralAction. So basically this action being

Re: Multiple Dynamic Parameter Alternatives

2003-07-08 Thread Kris Schneider
Speaking of examples, the thread you recently posted to, html:link / - add parameters, would be a fine place to start: http://marc.theaimsgroup.com/?t=10565290004r=1w=2 It includes pointers to info on JSTL... Quoting Kris Schneider [EMAIL PROTECTED]: Two non-scriptlet alternatives are to

Re: ApplicationResources.properties from Database

2003-07-08 Thread James Mitchell
On Tuesday 08 July 2003 14:09, you wrote: James, Thank You very Much Sure, no problem. I'm actually working on an upgrade for this as I type. It will use the latest and greatest from OJB instead of an older version. Let me know if you need help with it. From: James Mitchell

RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Bård Arve Evjen
Matt, No, I'm still stuck with the iterate:logic stuff :-) Thanks a bunch for providing an example. The lack of examples seems to be common in the struts-world :-) The books I've seen isn't much better, either. Cheers, Bard - Original Message - From: Matthew J. Vincent [EMAIL

Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati
isCancelled(request) is always returning false (Even when cancel button is clicked) Need some help... Thanks [EMAIL PROTECTED] 07/08/03 09:10AM I have a html:cancel in my jsp page. and in my action I have if(isCancelled(request)){ return mapping.findForward(index); } But it is

RE: Login Form

2003-07-08 Thread Sean Radford
Have a look at this (you may find what you want): http://sourceforge.net/projects/securityfilter/ Sean -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: July 8, 2003 10:11 AM To: 'Struts Users Mailing List' Subject: Login Form Hi, My question is a bit

Re: Cancel button not working?

2003-07-08 Thread Michael Ruppin
The complete content of your html:cancel tag is probably key to solving this problem. m --- Sashi Ravipati [EMAIL PROTECTED] wrote: isCancelled(request) is always returning false (Even when cancel button is clicked) Need some help... Thanks [EMAIL PROTECTED] 07/08/03 09:10AM

Re: Populating select boxes dynamically

2003-07-08 Thread Erik Price
sriram wrote: James, As explained by you, I have done the following: I need list of countries in a drop-down box in .jsp page. I have an EJB that maps to country table in database. In that I've a method getAllCountries() that returns a collection. In that method, I've used LabelValueBean and

RE: Login Form

2003-07-08 Thread Erez Efrati
Thanks Sean, I looked at it and it does avoid the BIG limitation posed by the standard spec in fact. Still I cannot use it since it disables the passing of the principal identity through calls to EJB methods. Now, I am new to the web development and it amazes me that such a basic feature is

Re: Best place for security checks in Struts?

2003-07-08 Thread Sandeep Takhar
This is the requestProcessor. Sorry for that. I am busy doing work and then I answer a question... The way I think of it is that there is a requestProcessor for each struts-config. (You declare it here). So if you have multiple modules, you could theoretically have a different processor for

Re: Workflow engine status

2003-07-08 Thread JavaXML Developer
Its a workflow extension NOT engine. Sandeep Takhar [EMAIL PROTECTED] wrote:That is not a workflow engine per se. sandeep --- Matthias Bauer wrote: I don't think that there has been anybody working on this proposal for several months. It is definitely not part of the latest Struts

RE: Accessing database in java and jsp?

2003-07-08 Thread Terje Hopsø
Hi, As mentioned in the book Jakarta Struts from O'Reilly that some configuration in web.xml has been moved to struts-config.xml I wanted to try it out. I am testing out a lot of things in Struts since it is new to me and this is something I am strugling with. - Terje -Original

Re: Best place for security checks in Struts?

2003-07-08 Thread Sloan Seaman
You could have a class that is an Action (say, named SecureAction) and then have all of the actions in the struts file extend SecureAction and implement a method called executeSecure() (not execute()!) What then happens is your action in the Strust config (say, named ShowUser) gets called by

using getInputForward vs new ActionForward(mapping.getInput())

2003-07-08 Thread Adam Levine
My goal in handling business problems in validating a form submission from an Action.execute() is 2-fold: 1: Display the accumulated ActionErrors (ie, using [html:errors/] ) 2: Return the user to the exact same URL in their browser address bar. I was using an action-mapping forward in

(Newbie) html:link passing an object via the request object

2003-07-08 Thread Davidson, Glenn
I need to assign an object to the request object via an html:link I am iterating over a collection of objects as such: logic:iterate id=doc name=listofdocs scope=session type=app.TiaaDocument I would like to assign the object represented by doc into the request object as part of the html:link

Re: Accessing database in java and jsp?

2003-07-08 Thread Yann Cébron
This might be a good start to read: http://jakarta.apache.org/struts/faqs/database.html HTH, Yann At 01:31 PM 7/8/03 +0200, you wrote: Hello I have created a datasource in my struts-config.xml. But I cant find out how to use it. Creating my datasource in my web.xml works fine. Any tips? -

Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati
This is how I have my cancel tag. html:cancel bean:message key=button.cancel/ /html:cancel [EMAIL PROTECTED] 07/08/03 02:27PM The complete content of your html:cancel tag is probably key to solving this problem. m --- Sashi Ravipati [EMAIL PROTECTED] wrote: isCancelled(request)

RE: bean:write problem with struts 1.1

2003-07-08 Thread David Jiao
Anyone has the same problem and has a solution? Thanks. On Tue, 2003-07-08 at 10:21, Nicolas Seinlet wrote: I have the same problem. I solve it by deleting the data-sources section and some Action in the struts config file. It's the only way I can solve the problem, but it's not a

RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-08 Thread Yansheng Lin
So you are saying that error.isEmpty() returns false, but html:errors/ doesn't display anything? This is happening 'cause you use redirect instead of forward. Also You might want to try System.out.println(mapping.getInput()) to see if you are going back to the right page. You might be

Re: Cancel button not working?

2003-07-08 Thread Michael Ruppin
Odd, I can't reproduce that in 1.1-rc1. Unless you're extending something which might override the isCancelled(HttpServletRequest) method, or the html:cancel tag is not contained within an html:form tag, I can't think of anything else. m --- Sashi Ravipati [EMAIL PROTECTED] wrote: This is how

chaining struts jsp tags

2003-07-08 Thread Kirby Vandivort
I have some custom JSP tags that I am using, and I want them to output text that is this processed by the standard struts tags. Is this possible? For instance, I have a custom tag that will output something like: this is the path html:rewrite path='/'/ and the image is, etc and then that

  1   2   >