RE: reset property using DynaActionForm

2004-01-22 Thread Eric Bariaux
You should use a subclass of DynaActionForm and implement reset() in this one, just calling initialize() should be ok. Extract from struts source code javadoc: * The default implementation (since Struts 1.1) does nothing. * Subclasses may override this method to reset bean properties to *

RE: Wishing I could use multiple ActionForms...

2004-01-22 Thread shirishchandra.sakhare
Hi, If the data on first 2 pages is not very large, I will go for using hidden parameters to pass it to the third jsp. I see a couple of problems with the session approach.First and foremost, there is no guaranteed way of clearing the from session as the in a typical web application uyer can

nested:link attribute link

2004-01-22 Thread VAN BROECK Jimmy
Hi, i think i found a little bug in the nested tag library. I think that the tld for the link tag is missing the link attribute. Is this right? For now i al going to adjust manually the tld, but it would be great for a next release its in there. Greetings Jimmy STRICTLY PERSONAL AND

RE: nested:link attribute link

2004-01-22 Thread VAN BROECK Jimmy
Never mind. i found my (dumb) mistake ;) -Original Message- From: VAN BROECK Jimmy [mailto:[EMAIL PROTECTED] Sent: donderdag 22 januari 2004 9:53 To: [EMAIL PROTECTED] Subject: nested:link attribute link Hi, i think i found a little bug in the nested tag library. I think that the

check this problem: Actions and forms

2004-01-22 Thread Raman
Hi Freinds, I have a page where i need to show data from 3 action files and two forms. Now What I tried was thinking of creating a new common form. And for actions: I called another actions files from a action like: // test to call another action from UpdateFoodLogAction updFoodlog=new

RE: [POLL] Your PSE? Struts, Tomcat, Java, Apache, SSL, mod_jk, e tc.. .

2004-01-22 Thread Jesse Alexander (KAID 11)
current: WebLogic 6.1.5 from webserver to appserver future: WebLogic 8.1 -Original Message- From: Viggio, Alex [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 21. Januar 2004 22:45 To: 'Struts Users Mailing List' Subject: [POLL] Your PSE? Struts, Tomcat, Java, Apache, SSL, mod_jk, etc.. . A

Re: check this problem: Actions and forms

2004-01-22 Thread Manish Singla
It will not work. How are you passing mapping :-). You may forward action to another action and again to third action. (or else write common business functions outside actions and call them in actions). HTH Manish Singla Raman wrote: Hi Freinds, I have a page where i need to show data

RE: nested:link attribute link

2004-01-22 Thread Mohan Radhakrishnan
Hi Can I use code like this to selectively enable my validator framework ? I am using DispatchAction. public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){ if( getOperation().equals( showRuleByStatus) || getOperation().equals( addRule)

RE: nested:link attribute link

2004-01-22 Thread Mohan Radhakrishnan
Apology for the wrong subject Mohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Forwarding to an external Website

2004-01-22 Thread Giles Parnell
Hi guys Any idea how i can forward to an external website? At the moment i forward to a jsp that has a logic:redirect forward=connectToSiteBuilder / I state my forward in the struts config like this: forward name=connectToSiteBuilder path=http://www.google.co.uk/ Is there any way i can do this

[OT] [ANNOUNCE] Faces Console 1.0 Beta 2

2004-01-22 Thread James Holmes
I'd like to announce the availability of Faces Console 1.0 Beta 2. This new version now supports JSF 1.0 beta and fixes many bugs. The Faces Console is a FREE standalone Java Swing application for managing JavaServer Faces-based applications. With the Faces Console you can visually edit

RE: [OT] [ANNOUNCE] Faces Console 1.0 Beta 2

2004-01-22 Thread Ashikuzzaman
Thank you james. Its another cool gift from you after StrutsConsole. :-) Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:34 PM To: Struts Users List

RE: Iplanet Struts Compatibility

2004-01-22 Thread sanjeev_dutt
Hi, I am trying to install struts on Iplanet 6.1 sp 4 and getting following error in the log: for host 172.25.201.26 trying to GET /strutsexample/index.jsp, deny-existence reports: denying existence of /citione/citigmic/iplanet/bin/https/webapps/user-app/WEB-INF/index.jsp Any idea what could

Dynamic insertion of JSP

2004-01-22 Thread Michael Wever
How would/should I dynamic insert a JSP? We have a model where the main tile of the webpage comes from documents in our database. These documents often have layouts referencing to further sub-documents, and all infact undergo xslt. My problem arises when I want some of these sub-documents to be

Securing resources in the web-app !

2004-01-22 Thread Giles Parnell
Hi guys I'm trying to secure my web app, so that only https access can occur through it. I've started writing some code that checks the url protocol in each action ... which i think is pretty nasty. I know i can do all of this in the web.xml. However i don't know much about setting up realms and

Call ActionClass from Javascript

2004-01-22 Thread Manuel Lenz
Hi to all, I´d like to call an ActionClass from a javascript-link which opens a new window. Here is my code: Javascript in jsp-Site: function OpenSite(sitename, winName,features) { window.open(sitename, winName, features); } Link in jsp-Site: a href=#

editor

2004-01-22 Thread dirk
Does anybody knows a good and free struts editor ? Does anybody knows an editor that is able to make code more readable, user friendlier... eg. formatting the following code: trtdbla/td/tr into: tr td bla /td /tr Thanks !

RE: editor

2004-01-22 Thread Ashikuzzaman
I heard of Struts Studio but in our project we use xDoclets to generate code skeleton for struts. Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 6:27 PM To:

Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Ingvar Larsson
Hello all! I have tried to deploy several struts applications in Tomcat 5.0.x but failed so far. One of them is the struts-examples.war distrubted with the struts 1.1 package. I guess it all depends on that struts uses JSP 1.2 and Tomcat 5 implements JSP 2.0. I have searched an answer for this

Re: editor

2004-01-22 Thread James Holmes
Struts Console doesn't help with JSPs like you mention below, but it helps with the Struts config files. http://www.jamesholmes.com/struts/ -James Does anybody knows a good and free struts editor ? Does anybody knows an editor that is able to make code more readable, user friendlier... eg.

Re: Securing resources in the web-app !

2004-01-22 Thread Kris Schneider
This is the Servlet 2.3 DTD entry for http-method: !-- The http-method contains an HTTP method (GET | POST |...). Used in: web-resource-collection -- !ELEMENT http-method (#PCDATA) What you're probably looking for is transport-guarantee (subelement of user-data-constraint, which is a subelement

RE: Unit Test in struts

2004-01-22 Thread Edgar P Dollin
I have spent a fair amount of time with WebTest and HttpUnit. The major issues with both of these are JavaScript related. For example if you use JavaScript to populate select lists or html objects they are not available in WebTest or HttpUnit (HttpUnit is a little better since you have finer

RE: Session Problem

2004-01-22 Thread Paul McCulloch
This feature seems to have been dropped in IE 5.01 later. http://support.microsoft.com/?kbid=240928 Pitty - sounded like a useful way of demoing multiple users accessing the system from a single machine. Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]

RE: editor

2004-01-22 Thread Paul McCulloch
The Blacksun HTML editor plugin for Eclipse will do tyhat for you. Paul -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: 22 January 2004 12:27 To: Struts Users Mailing List Subject: editor Does anybody knows a good and free struts editor ? Does anybody knows an

Re: Session Problem

2004-01-22 Thread John D. Hume
But as the Microsoft write-up says, the feature is automatically enabled on any installation on a machine with more than 32MB RAM, which you surely have. So demo away! -john. After you install Internet Explorer 5.01 or Internet Explorer 5.5, you cannot configure this setting because it

Re: Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Kris Schneider
No problems with struts-example on TC 5.0.16. Exactly what type of failure are you encountering? Quoting Ingvar Larsson [EMAIL PROTECTED]: Hello all! I have tried to deploy several struts applications in Tomcat 5.0.x but failed so far. One of them is the struts-examples.war distrubted

RE: HttpSession size - is this code correct?

2004-01-22 Thread Paul McCulloch
It is possible to reference the same object through multiple session attributes. I often do this to allow shorthand access to heavily nested properties. Your method would count multiple references to the same object multiple times. An alternative approach would be to look at the amount of memory

Re: editor

2004-01-22 Thread Gregory F. March
On Jan 22, 2004, dirk [EMAIL PROTECTED] wrote: |Does anybody knows a good and free struts editor ?=20 Ob. Emacs plug... /greg -- Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet - To

Re: Is it possible to deploy a struts 1.1 application in Tomcat 5.x ?

2004-01-22 Thread Ingvar Larsson
For example I deploy struts-examples.war without any problems but when I tries to use the application the following appears: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception

How to retreive ApplicationResources properties ?

2004-01-22 Thread AMIR-TAHMASSEB Marc
Hi, i wonder to kno if its possible to access the ApplicationResources properties on another way than using a bean like : bean:message key=my.property/ A generate a part of code in a JSP class. and this code has to use some properties available in ApplicationResources. If i use bean:message

RE: Wishing I could use multiple ActionForms...

2004-01-22 Thread Brian Ivey
Thanks for the feedback. You're right Shirish. Because of environment constraints I can only use request scope. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:35 AM To: [EMAIL PROTECTED] Subject: RE: Wishing I could use multiple

how to show error messages in a pop up window?

2004-01-22 Thread Dirk Manske (Service Respond)
Hi, I would like to display error messages in a popup window instead of the actual form page. Something like if logic:messagesPresent is true, pop up a window and show the error messages. Has anyone done something similar to this and could show me an example? Thx, Dirk

RE: Is it possible to deploy a struts 1.1 application in Tomcat 5 .x?

2004-01-22 Thread Smith, Darrin
It's working for me using an old example, but I did replace some of the jar files with the latest struts version. Darrin -Original Message- From: Ingvar Larsson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 6:41 AM To: [EMAIL PROTECTED] Subject: Is it possible to deploy a

RE: Iplanet Struts Compatibility

2004-01-22 Thread sanjeev_dutt
Now I am getting the following error: [22/Jan/2004:19:41:46] failure (18720): Internal error: Unexpected error condition thrown (java.lang.NoClassDefFoundError: sun/tools/javac/Main,sun/tools/javac/Main), stack: java.lang.NoClassDefFoundError: sun/tools/javac/Main at

Re: how to show error messages in a pop up window?

2004-01-22 Thread Martin Gainty
Dirk- did you look at javascript alert? viel Glueck, -Martin - Original Message - From: Dirk Manske (Service Respond) [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:10 AM Subject: how to show error messages in a pop up window? Hi,

Converting data in a ActionForm

2004-01-22 Thread Peter Sloots
Hi I'm using the following code in a ActionForm to convert 3 strings to a Timestamp, problem is that some of the string are null, getBirthdateMonth() is still null because setBirthdateMonth() is called after setBirthdate(). Can someone tell me what is the right approach. I would like to handle

RE: Iplanet Struts Compatibility

2004-01-22 Thread Joe Germuska
Jasper needs that class to compile a JSP into a servlet. In most UNIX and Windows distributions, that class is in tools.jar although on Mac OS X, it is included in a single JAR that has the JRE classes as well as the tools. So you should make sure that tools.jar is on the classpath for the

beans

2004-01-22 Thread xavier manohar
hi can anyone help me to run a jsp and a bean. regards mano Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

RE: Unit Test in struts

2004-01-22 Thread Matt Raible
I use a fair amount of JavaScript in my apps, and what I've found is that the best thing to do is this: Write your app so it can be tested (and used) with JavaScript turned off. Works for me! Matt -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Thursday,

Multibox and Validation

2004-01-22 Thread Justin Miller
Hi all Is there an out of the box struts-validator way to check to see if at least one of x number of checkboxes has been checked using the html:multibox? I have been attempting to use the required and requiredif rules to no avail. Background: Struts 1.1 DynaValidatorActionForm Tomcat 4.1

RE: Struts-Menu (Support URL Re-writing)

2004-01-22 Thread Matt Raible
Sounds complicated. I don't use struts-layout so I don't know that I'm that interested in *fixing* struts-menu so it works with it. Maybe you should check with them and see why they don't support the latest struts-menu - and why they care what version of struts-menu you're using? Matt

AW: how to show error messages in a pop up window?

2004-01-22 Thread Dirk Manske (Service Respond)
oh yes but the problem is that it pops up x times if x entries were wrong. however, it should popup only once showing all wrong entries... my actual code cannot handle it: logic:messagesPresent script language=javascript html:messages id=error alert(c:out value=${error} /) /html:message

Urgent: Call ActionClass from link

2004-01-22 Thread Manuel Lenz
Hi to all, I still have the same problem and didn´t find any hint in the list archive. I want to call an ActionClass from a Link. This code should be run (I copied it from an archive topic): a class=leftnav href=javascript:window.open('InfoAction.do','windowName', 'status=no') But if I

[OT] Re: beans

2004-01-22 Thread Guido García Bernardo
This is a very good how not to ask a question example... (spam included!!) The only thing he has forgot is the THIS IS VERY IMPORTANT, PLEASE HELP in the subject... Anyway http://www.google.com/search?hl=enlr=ie=UTF-8oe=utf-8q=run+a+jsp+and+a+bean Regards xavier manohar wrote: hi can

RE: Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Navjot Singh
I am successfully running my Application based on Struts + Tiles + Taglibs (el also) seamlessly. No probs so far. -Original Message- From: Smith, Darrin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 6:55 PM To: 'Struts Users Mailing List' Subject: RE: Is it possible to

web spider

2004-01-22 Thread McCormack, Chris
Hello all Has anyone tried to successfully spider their struts website using any open-source/free spider app ? I have tried a few that I have found on source-forge and browsed my sites but I was wondering if anyone used a particular spider with their struts site that was very good ! thanks

AW: Form is not submited - nothing happens?!?

2004-01-22 Thread Martin Sturzenegger
hi, in your form you may use something like html:form action=/finishPickActionMulti onsubmit=return submitFunction(); html:submit property=saveall[save]/html:submit /html:form hope it helps cheers martin -- Urspruengliche Nachricht -- Von:

AW: Form is not submited - nothing happens?!?

2004-01-22 Thread Martin Sturzenegger
hi, the caller for the javascript seems to be missing. you might try something like html:form action=/finishPickActionMulti onsubmit=return submitFunction(); html:submit property=saveall[save]/html:submit /html:form hope it helps cheers martin -- Urspruengliche

RE: Multibox and Validation

2004-01-22 Thread Saul Q Yuan
This is a known issue for the release version of Struts1.1, but if you download a nightly build after Sep 24 2003, the required validation will work. Saul -Original Message- From: Justin Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:43 AM To: [EMAIL PROTECTED]

RE: Radio button CHECKED ???

2004-01-22 Thread Leticia Golubov
what if the actionForm is DynaActionForm? I have an html:radio tag and can't seem to select one! :( so the tags html:radio property=m_Action value=true onclick=EnablePing(); /Enable html:radio property=m_Action value=false onclick=DisablePing(); /Disable will show radio buttons

RE: Urgent: Call ActionClass from link

2004-01-22 Thread Saul Q Yuan
I guess you're missing the web context in the action, try use html:rewrite page=InfoAction.do / instead of InfoAction.do in the open function, that way it'll prefix the web context in the action. Saul -Original Message- From: Manuel Lenz [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Value attribute of html:checkbox

2004-01-22 Thread Leticia Golubov
Have you tried the indexed tag? indexed Valid only inside of logic:iterate tag. If true then name of the html tag will be rendered as id[34].propertyName. Number in brackets will be generated for every iteration and taken from ancestor logic:iterate tag. [RT Expr] as per

Re: Forwarding to an external Website

2004-01-22 Thread Hubert Rabago
try forward name=connectToSiteBuilder path=http://www.google.co.uk; redirect=true/ There's been discussion about this on this list already, so you can search the archives if you need more info. --- Giles Parnell [EMAIL PROTECTED] wrote: Hi guys Any idea how i can forward to an external

Re: Call ActionClass from Javascript

2004-01-22 Thread Hubert Rabago
There isn't enough info to determine what's causing your problem, but it looks like it's probably related to an ActionForm that your Action class is associated with. --- Manuel Lenz [EMAIL PROTECTED] wrote: Hi to all, I´d like to call an ActionClass from a javascript-link which opens

Re: Is it possible to deploy a struts 1.1 application in Tomcat 5.x ?

2004-01-22 Thread Brian Millett
On Thu, 2004-01-22 at 07:51, Ingvar Larsson wrote: For example I deploy struts-examples.war without any problems but when I tries to use the application the following appears: type Exception report message description The server encountered an internal error () that prevented it from

Cancel button functionality

2004-01-22 Thread Sudhakar G
Hi All, When I click on the cancel button it always goes to the action.do which is mention in the form action but I am calling a javascript function which will submit the form for other action.do.Can anyone help me to resolve this issue.. Thanks Regards Sudhakar DISCLAIMER:

How can i get struts JSessionId from the the url

2004-01-22 Thread Vinay Kumar Munikuntla
Hi How can i get struts JSessionId from the the url.. ? Vinay Kumar Munikuntla - This email, including any attachments, is for the designated recipient(s) only and may contain confidential, proprietary, and/or legally privileged information. If you

Struts 1.0/Reload/Classpath

2004-01-22 Thread Kurt Overberg
Hi all, I've poked around a bit and have been fairly unsuccesful in finding and answer to this problem. I'm running tomcat 4.1.18 on Debian (woody). I'm using struts (1.0) and for the longest time, everything was great. I could reload my classes using the manager server reload feature.

forwards with parameters?

2004-01-22 Thread Derek Faulkner
Hello, I want to create a forward in my ActionMappings with url parameters like this: forward name=somename path=SomeAction.do?someparameter=somevalue/ This worked with Tomcat 3.3.1, but with Tomcat 4.1 the values in the query string are not in my SessionRequest parameter table. Why is this?

RE: Struts + Filter Chain = broken?

2004-01-22 Thread Richard Mixon (qwest)
I just came across this thread and was hoping for a little more information :) I understand what Craig is saying, then given the following situation: - a servlet 2.3 container (e.g. Tomcat 4.1.x); - a Struts app that returns ActionForward with redirect=false; Then a servlet filter will not be

[DisplayTag] Use of ID= Parameter

2004-01-22 Thread Jerry Jalenak
All, I'm in the process of implementing the new display/ taglib, and am really excited about the ability to have multiple, independent, tables on the same page. In order to make this work, though, the ID= parameter for each table has to be different. This is where I'm running into problems.

Re: web spider

2004-01-22 Thread Franck Lefebure
Le Thursday, January 22, 2004 11:15 AM, McCormack, Chris [EMAIL PROTECTED] m'a, d'une plume avisee, ecrit: Hello all Has anyone tried to successfully spider their struts website using any open-source/free spider app ? No problem with htdig -- Franck Lefebure

RE: Wishing I could use multiple ActionForms...

2004-01-22 Thread Eric Bariaux
Just one trick/hack I used in the past for such a situation. Instead of having a bunch of hidden parameters to hold the values, I marshall my form bean(s) or some other value object containing the information I want to keep to an XML format. I then put that XML into one hidden field. I have a

Re: Securing resources in the web-app !

2004-01-22 Thread Giles Parnell
Hi Thanks for your quick reply. I've now got the following in my web.xml: security-constraint web-resource-collection web-resource-nameSecureWebReg/web-resource-name descriptionno description/description url-pattern/*/url-pattern

Re: obtaining ActionMapping object

2004-01-22 Thread Hubert Rabago
You need the path to specify which mapping you want. From the RequestProcessor class, you can use: ActionMapping mapping = (ActionMapping) moduleConfig.findActionConfig(path); You can use RequestUtils to get your ModuleConfig. Why not call the formbean's validate() method?

RE: Urgent: Call ActionClass from link

2004-01-22 Thread Manuel Lenz
Tricky failure. I have to parameters which have the same name. One is a String which is sent with the request and the other parameter is an abstractObject which is populated in the formBean. Struts tried to set the string value from request into the abstractObject and failed Manuel

RE: obtaining ActionMapping object

2004-01-22 Thread Bubeník Miroslav
I need send data from more than one formbean to the business logic. And before that I need validate that beans, becouse it is not wizzard like flow. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 5:39 PM To: Struts Users Mailing List

RE: Wishing I could use multiple ActionForms...

2004-01-22 Thread shirishchandra.sakhare
But why to take all the effort?I mean then the struts auto population will not work.Also as all the parameters will still be as hidden parameter(but just one), you do not even gain any performance benefit.You end up generating more traffic due to XML markup.So is there any other benefit of this

html:link multiple parameters

2004-01-22 Thread Nathan Maves
Is there any reason why this has not been implemented in the struts html tags? http://www.mail-archive.com/[EMAIL PROTECTED]/msg02207.html Say I have a List of People objects that I place into the request from an action. Now I want to iterate through them and create links with two or more

RE: Wishing I could use multiple ActionForms...

2004-01-22 Thread Eric Bariaux
Auto-population would work for the one hidden field. The benefit is to not have 10s or 100s of hidden fields/form fields. Say you have a wizard like sequence of 5 screens, let's say each with 10 fields. The classic way, you could have one ActionForm, with 50 fields defined. On your first form,

Re: AW: Form is not submited - nothing happens?!?

2004-01-22 Thread Matthias Winkler
HI, the 'submitFunction()' is being called by my xv:message.../ tag (code in the template for the tag). The interesting thing is that the function is really called. The alert() is done but not the submit. So I guess there must be a mistake in the configuration. But I really do not know where to

Help: messagesPresent = true if JSP is served from ActionServlet

2004-01-22 Thread Chris Wall
Hey there. Noticed that messagesPresent is TRUE when a JSP is served from an ActionServlet. This causes logic within messagesPresent to be executed- for example validation errors are inappropriately displayed. This works fine if the JSP is render directly, but a common practice is for all

Re: forwards with parameters?

2004-01-22 Thread Raphaël di Cicco
In my opinion this is a bad way to use forwards. Only the client is supposed to enter parameters. You should do request.setAttribute(someparameter,somevalue); in your Action before forwarding. - Original Message - From: Derek Faulkner [EMAIL PROTECTED] To: Struts Users Mailing List

RE: Help: messagesPresent = true if JSP is served from ActionServlet

2004-01-22 Thread Richard Hightower
comments below Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Chris Wall [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22,

RE: Unit Test in struts

2004-01-22 Thread Edgar P Dollin
I wish I had the luxury. Edgar -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:42 AM To: 'Struts Users Mailing List' Subject: RE: Unit Test in struts I use a fair amount of JavaScript in my apps, and what I've found is that the

RES: How to retreive ApplicationResources properties ?

2004-01-22 Thread Tiago Henrique Costa Rodrigues Alves
You can use a work around way... take a look at: java.util.Properties Properties p = new Properties().load(InputStream inStream); /* The InputStream will be your ApplicationResources properties file. than you just need to get the properties you need... */ p.get(my.property) Tiago Henrique C.

RE: Unit Test in struts

2004-01-22 Thread Ashikuzzaman
I somehow dislike JavaScript from the very beginning. I try my best to avoid it in big projects and so far successful. :-{ Regards, Muhammad Ashikuzzaman (Fahim) Senior Software Engineer, SurroundApps Inc. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent:

RE: Form submission

2004-01-22 Thread Wendy Smoak
From: Raman [mailto:[EMAIL PROTECTED] I want to implement something like this: Conditional checks: for form submission to different Actions Can anybody help me in this or give me some idea... Use the Struts-EL tags [?? Haven't tried it with form actions]. Use JavaScript to change the action

RE: Help: messagesPresent = true if JSP is served from ActionServlet

2004-01-22 Thread Chris Wall
Hey Rick. Thanks for your reply. I found the same behavior to be true in Struts' sample validation example (struts-validator.war) contained w/in the Strut 1.1 distribution. If you go to http://localhost:7001/struts-validator/registration.do the Validation Error section is displayed

RE: Struts + Filter Chain = broken?

2004-01-22 Thread Craig R. McClanahan
Quoting Richard Mixon (qwest) [EMAIL PROTECTED]: I just came across this thread and was hoping for a little more information :) I understand what Craig is saying, then given the following situation: - a servlet 2.3 container (e.g. Tomcat 4.1.x); - a Struts app that returns ActionForward

RE: Urgent: Call ActionClass from link

2004-01-22 Thread Brian Holzer
Have a link call an Action? Try to use the html:link / tag like this: strutshtml:link href=Action.do paramId=custPIC paramName=dataItem paramProperty=custPICBstrutsbean:write name=dataItem property=custPIC //B /strutshtml:link Brian

Re: How can i get struts JSessionId from the the url

2004-01-22 Thread Christian Bollmeyer
Am Donnerstag, 22. Januar 2004 16:49 schrieb Vinay Kumar Munikuntla: Hi How can i get struts JSessionId from the the url.. ? What exactly do you want - if it is only retrieving the session id, use session.getId(). Some useful methods to check where the session info came from are

RE: editor

2004-01-22 Thread Daniel Lipofsky
Maybe you want a beautifier rtaher than an editor? Like tidy: http://tidy.sourceforge.net/ It works for HTML and XML. I haven't tried using it for JSPs but I see some mention of it in the discussion group. - Dan -Original Message- From: dirk [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: How can i get struts JSessionId from the the url

2004-01-22 Thread Vinay Kumar Munikuntla
I am trying to get Session Id using session.getId() and store this session ids in the database.. I see that i am getting same session id until i close the IE browser window and open a new one. is this Common... Or there is some property in the App server that has to be changed? Thanks in Advance.

RE: Urgent: Call ActionClass from link

2004-01-22 Thread Wendy Smoak
From: Manuel Lenz [mailto:[EMAIL PROTECTED] I have to parameters which have the same name. One is a String which is sent with the request and the other parameter is an abstractObject which is populated in the formBean. Struts tried to set the string value from request into the

Debugging in JBoss 3.2.3

2004-01-22 Thread Ramadoss Chinnakuzhandai
Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my

Re: Debugging in JBoss 3.2.3

2004-01-22 Thread James Mitchell
Yes, 1. Setup JBoss for remote debugging. (specifically, you need to add a line to the .bat/.sh startup script) 2. Setup your .war expanded (for example, the directory in the deploy directory is named 'myapp.war') 3. Startup JBoss/Tomcat and use remote debugging in

RE: Debugging in JBoss 3.2.3

2004-01-22 Thread Tim Kettering
The newest release works on M6. (3.7RC2, I believe) I havent had any trouble using it. -tim Now, if only MyEclipse worked on 3.0 M6...hm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Debugging in JBoss 3.2.3

2004-01-22 Thread Valeriy Pelyushenko
shameless plug Exadel Struts Studio 5.2 (http://www.exadel.com) supports one-click null-deployment debugging for JBoss 3.2.X. /shameless plug Valeriy - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 12:07 PM

Re: Debugging in JBoss 3.2.3

2004-01-22 Thread Pascal THIVENT
JBoss-IDE brings you very good integration with Eclipse. From the homepage : JBoss-IDE provides the following features : * The debugging and monitoring of JBoss servers and the control of their life cycle (start/stop). * A very comfortable and sophisticated support for XDoclet

RE: How to retreive ApplicationResources properties ?

2004-01-22 Thread Daniel Lipofsky
See http://www.systemmobile.com/articles/strutsMessageResources.html In an Actions you can get the resource bundle like getResources(HttpServletRequest request) Inside taglib code you can do RequestUtils.message(pageContext, bundle, locale, key); - Dan -Original Message- From:

[Validator] Custom Validator Fails to Return to JSP

2004-01-22 Thread Jerry Jalenak
I've used the 'comparing two fields' example from Validator for a while now without any problem. When I brought down the 20040106 nightly build, I noticed that several methods had been deprecated, so I dutifully changed things over: From: public static boolean comparePasswords(Object

convert String to Long

2004-01-22 Thread Balakrishnan, Vijay
Hi, I want to code a conversion of String to Long as done in the jsp:scriplet using jstl: c:set var=itemIdA value=currentPath.entityA.key / jsp:scriptlet try { Long tempLong = new Long(((PathProxy)currentPath).getEntityA().getKey());

Re: Help URL Rewriting

2004-01-22 Thread Michael E. Allen
Ted Husted wrote: The container can't be sure that any given client supports cookies, so it will always use URL rewriting on the first request. Is there any way to shut that off? From and Action I am returning an ActionForward from the execute that maps to an jnlp file. The

RE: convert String to Long

2004-01-22 Thread Smith, Darrin
I must be missing something, but if you have the string, and you know it is a long (a valid integer number), why don't you just use the static valueOf method? For example, Long myLong = Long.valueOf(7654321); Of course, 7654321 will be replaced with your string variable. -Original

RE: convert String to Long

2004-01-22 Thread Balakrishnan, Vijay
What i want to do is convert the String to a long actually.How can i do that in jstl ?In your example, how do i do Long.valueof(7654321) in jstl ? -Original Message- From: Smith, Darrin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 1:42 PM To: 'Struts Users Mailing List'

RE: convert String to Long

2004-01-22 Thread Hookom, Jacob
With jstl, unless you are using JSP 2.0 spec with functions, there really aren't any types... it automatically coaxes the variables to values to match the appropriate setter. c:set value=${currentPath.entity['A'].key} var=someValue scope=page / -Original Message- From: Balakrishnan,

RE: convert String to Long

2004-01-22 Thread Balakrishnan, Vijay
What i am asking is in your example, var someStringValue is a String.But I have to convert it into a long to use in another custom tag method call which uses a long parameter instead of String.That is why i want to convert the String someStringValue to a long someLongvalue. -Original

RE: convert String to Long

2004-01-22 Thread Smith, Darrin
OK, you want the primitive long, not the wrapper Long. Hmmm...Couldn't he just use a JSP scriplet and do this: jsp:scriplet ... long myLong = Long.parseLong(string variable goes here); ... I must not be getting why it needs to be done in JSTL. Sorry... -Original Message- From:

RE: How to Implement Roles

2004-01-22 Thread David Friedman
I have a similar problem and, at the moment, no real solution. I'd prefer to be able to change the 'role' so I could push/pop id's as a management account drills down to a user account (to fix user problems), but I have no clue how to do this as Tomcat seems to have only read-only roles. My

  1   2   >