deploy weblogic51sp9 sunos 5.8

2002-03-05 Thread Ivan Siviero
hi everyone. I'm delploying my struts application on weblogic51sp9 and SunOS 5.8. when running weblogic server i get the following exception. It seems to be an xml parser exception. i put the xerces.jar at the beginning of the weblogic classpath but the exception is always raised. The

deploy weblogic51sp9 sunos 5.8 missing exception detail. :)

2002-03-05 Thread Ivan Siviero
Sorry i forgot the exception ! :) javax.servlet.ServletException: Parsing error processing resource path /WEB-INF/struts-config.xml at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at

A possible solution for form loading, any comments???

2002-03-05 Thread Alex Paransky
To me, an action should be able to load and execute the form. Furthermore, I don't want to create separate action classes to load or execute the form. So here is what I did: public abstract class FormAction extends Action { public ActionForward executeForm(...) {.load form.} public

Re: creating a variable set to return value of a method - using struts

2002-03-05 Thread keithBacon
Hi, HashMap myMap = someClass.getMyMap(); bean:define can do this. myMap.put(1, one); struts is designed for presentation logic, so this isn't in it's scope. Have you seen Larry's struts white paper at:- http://stealthis.athensgroup.com/presentations/ hope this helps = Keith. --- Elijah

ActionComponetServlet.findMapping is deprecated in Struts 1.1

2002-03-05 Thread Dirk Storck
Hi, I have seen that the methode findMapping in the ActionComponentServlet is deprecated. Wich one shall I use than ? Is that right that I now have to use Action.excecute instead of Action.performe ? Many thanks ! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

Re: bean:message default key?

2002-03-05 Thread keithBacon
me too! Would anybody prefer returning a message like struts warning - message:+ key + not found); and just printing a warning. This is a bit mucky but at least lets the system carry on running. Not sure myself. K. --- Joachim Gjesdal [EMAIL PROTECTED] wrote: Yeah, and then submit the patch and

RE: Form Bean problem - Fixed for now

2002-03-05 Thread keithBacon
Hi Tim hurray! just for your amusement The other day I added some buttons to a form the setter methods in the form bean weren't being called when the buttons were pressed. I checked checked. I copied button code from another jsp/form/action that worked. I still couldn't get my new code to

Example code using Select Multiple options with Struts

2002-03-05 Thread lj7788
Could anybody point me where I can get a code example using select/multiple options, collection with Struts. How do the beans and jsp look like and interact? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Nesting Extension and persistance strategy

2002-03-05 Thread Arron Bates
I don't see any reason as to why the nested tags wouldn't work with simper. The tags are just that. tags. They will interpret any bean they get their hands on when the JSP gets evaluated. So simper and NeXt could possibly be perfect buddies. The tags only add to the additional struts tags so

Forwarding to referer

2002-03-05 Thread George Moschovitis
Hi everybody, I am a new user of struts and I have the following question: at the end of an Action.perform method there is a typical: return map.findForward(ok); that forwards to a web page specified in struts-config. instead of forwarding to a hardcoded url i want to be able to

Re: Nesting Extension and persistance strategy

2002-03-05 Thread Arron Bates
Well, yeah. That'd do the trick too. Probably in a fashion that would be manageable, clean, and garner the respect of OO gurus, developers and peers alike. Very apt solution. You can notify the observer from inside your setters rather than query the submit button. Mainly because you will have

Re: Nesting Extension and persistance strategy

2002-03-05 Thread Arron Bates
I like beans managing dirty state becuause I could possibly have one method that can handle several different structures if it's designed right. Maybe this: Have all DataBeans implement an interface lets day DirtyInterface that defines 2 methods: public String getDirtyAttribute() and public

parameter attribute in the action-mapping... what is it?

2002-03-05 Thread Kevin J. Turner
Could someone please explain the purpose and usage of the parameter attribute for the action-mapping tag in the struts-config.xml file? Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Nesting Extension and persistance strategy

2002-03-05 Thread Arron Bates
John Menke wrote: I am planning to use the Nesting Extension... sweet :) The MonkeyStruts example uses one ActionForm bean on the outermost level that links to other beans recursively in a parent child heirarchy. It looks like each child bean in the hierarchy is instantiated from methods

RE: Getting a ServletContext

2002-03-05 Thread Daniel Steinberg
I would presume that your code will not even compile. The correct method name is getServletContext(). -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 9:57 AM To: Struts Users Mailing List Subject: Getting a ServletContext Hey guys/gals =)

Struts Course

2002-03-05 Thread Alex Lin
FYI about coming Struts Course (Mar. 11-14) http://bravepoint.com/scripts/wsisa.dll/WService=training/training_course.html?courseid=354 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: is there drawdown select box in struts?

2002-03-05 Thread Arron Bates
Remove the size=10 and watch what happens... :) The size directly maps to Html, where you're telling it how many rows you want it to span. Has nothing to do with how many options you have, that part will look after itself. Arron. Struts Newsgroup (@Basebeans.com) wrote: Subject: Re: is

Re: logic:iterate Strin :Problem

2002-03-05 Thread FARINE Arnaud - SOP ( [EMAIL PROTECTED] )
Hello! If i use it like this I obtain the following error: javax.servlet.jsp.JspException: org.apache.jasper.compiler.ParseException at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149) Thx for your answers *

Re : logic:iterate String

2002-03-05 Thread FARINE Arnaud - SOP ( [EMAIL PROTECTED] )
If I write this I obtain somthing like this: [myval1,myval2] Why I've got [ and ,? Thx * SchlumbergerSema Arnaud FARINE Ingénieur chargé d'études Tel: 04.97.15.79.18 [EMAIL PROTECTED] 150, Allée Pierre Ziller Les Bouillides - BP279 06905

How to control ' if then else' in a particular JSP using struts

2002-03-05 Thread Dasgupta, Diptiman (Cognizant)
Hi, I am a newcomer in the struts framework. In my project each and every JSP pages contain a lots of 'if then else' logic. Pls let me know, how can I move all these flow issues in other parts of the framework and make my pages very simple. I am not asking the flow issues betwwen multiple

Configuration question

2002-03-05 Thread send2boney
I have this application that needs to be implemented using struts. The flow is like this: page1.jsp - servlet - javabeans(to access database) - page2.jsp page2.jsp - servlet - javabeans - page3.jsp and so on... because I use servlets and javabeans, I specified action mappings for my links. I

iPlanet and poolman

2002-03-05 Thread alberto bolchini
Hi all. We developed a webapp using struts/poolman/log4j/dbforms on Tomcat4.0 on Linux w/ PostgreSQL. Everything works fine on that configuration. We are now trying to run the app on an installation of iPlanet Web Server 6.0SP2 on Windows, using PostgreSQL on the same box (under cygwin). The

html:/base

2002-03-05 Thread send2boney
anybody knows what this tag is for? thanks Boney Sze -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Forwarding to referer

2002-03-05 Thread Boney Sze
im not sure if this would work. but i think you can use your action servlet to display a dialog which has a input field of some sort and then use that variable as the forwarding URL and pass it to struts-config.xml. Boney Sze --- George Moschovitis [EMAIL PROTECTED] wrote: Hi everybody, I am

Re: deploy weblogic51sp9 sunos 5.8 missing exception detail. :)

2002-03-05 Thread Ivan Siviero
Hi again. I tried to upload the struts-upload application on the server and i get the same exception again. If i do not set the xerces.jar in the classpath weblogic tells me it cannot find the xml parser class org.apache..etc etc.. if i add the xerces.jar to the classpath i get the Parsing

Re: Ping on 1.1 or Tiles/Nightly working

2002-03-05 Thread Cedric Dumoulin
As already answered, Tiles work with latest nightly build. You need now to use a TilesRequestProcessor declared in struts-config.xml. Also, the old ActionComponentServlet is left for backward compatibility with Struts1.0. You need it also, but only to initialize tiles factory (other

Re: Advice requested, what's the best way to mimic tab panes in Struts?

2002-03-05 Thread Cedric Dumoulin
For the controller/logic part, I also think you need one action and one form for all your tabs. For the view part, check Tiles : there is an example of tabs (struts-tiles/examples/summariesTabs.jsp). You can easily adapt it to your needs. You can create a body with the submit/cancel

Re: ActionComponetServlet.findMapping is deprecated in Struts 1.1

2002-03-05 Thread Cedric Dumoulin
Hi, Method findMapping() doesn't come from ActionComponentServlet, but from ActionServlet. It is true that it is now deprecated. Also, method perform() in Action is deprecated, and you should use execute() if you write new actions. Old actions still working because execute call perform.

Simper with MySQL

2002-03-05 Thread Matt Raible
I'm trying to get Simper working with MySQL and I'm getting the following error when I try to access http://localhost/simper (Tomcat 4.x running on port 80). exception javax.servlet.ServletException: Exception while Simper.initEverything tried to invoke user-supplied initializer:

RE: validate() and session expiry

2002-03-05 Thread Matt Read
Yep, all makes sense. Thanks to both of you. I'm a lot happier with how the logic is partitioned now and I like the validate=false idea very much. Thanks, Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 03:01 To: Struts Users Mailing List

design question

2002-03-05 Thread Ronald Haring
Hi all, I've studied the design paper that Ted has put up at his site (http://husted.com/about/scaffolding/strutByStrut.htm) . Very clear explanation Ted, it only left me with one question. In your paper you state that every form should have its own action. However for my last project (and my

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
I'm sure I've seen some notes on this in the Struts resources to get common behaviour Create your own action class that extends the struts Actions to hold common function calls Have your specific actions extend this default Action You can further subclass the default action e.g. we have a

RE: design question

2002-03-05 Thread Ronald Haring
If key tasks needs to be completed in each Action's perform() method, a good approach is to create a new abstract methods for your subclasses to use in lieu of perform(). The base Action class does its business, and if all is well, then returns the result of the new method. This allows

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
Matt, I had one other idea that I wanted to share with you. It came to be as I was just starting to work on the security chapter for the Struts book. This is for the case where you have a small number of actions that the user needs to be logged in for, rather than all of them. What if you

RE: design question

2002-03-05 Thread Lister, Tom (ANTS)
i see I am looking to build something similar and I am thinking of managing this through the action mappings. I am hoping to manage this as follows using the same action and keeping the form in the session. I plan to read up on building wizard type forms but from my small knowledge i think this

RE: design question

2002-03-05 Thread Ronald Haring
Ah yes, that is a solution. But then you have to keep the general data in session indeed, which I never feel to comfortable about. But thx for the pointer. Gr Ronald i see I am looking to build something similar and I am thinking of managing this through the action mappings. I am hoping

Re: Forwarding to referer

2002-03-05 Thread dderry
Hi George, What I usually do in this case is to have a hidden field in my form that holds the source: html:hidden property=source value=somepage.jsp/ Then in the perform method I can: return new ActionForward( request.getParameter( source ) ); There are of course other ways to handle this

RE: Nesting Extension and persistance strategy

2002-03-05 Thread John Menke
I don't see any reason as to why the nested tags wouldn't work with simper. Then I will try to get them working together (simper -- NeXt), Having a problem downloading the simper-src.jar from SourceForge download always fininshes but winzip complains that archive is missing bytes... At the

RE: action and form contract

2002-03-05 Thread Carter, Steve
Thanks. That's clear. However -- not to nit-pick, but -- in the first paragraph you have contact and it appears you mean contract. Steve Steve Carter Sr. Software Engineer Swift Rivers [EMAIL PROTECTED] -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday,

Getting DataSource from an Action

2002-03-05 Thread Eddie Bush
Is it possible to obtain a reference to the built-in struts datasource from a custom action? If so, is there something I could reference on how to do it? I haven't been able to find anything. Thanks so much! Eddie

RE: Getting DataSource from an Action

2002-03-05 Thread Ronald Haring
sure there is: public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException,

RE: validate() and session expiry

2002-03-05 Thread Ross MacCharles
Here's a partial solution that might work: Submit all of your forms to a SessionCheck action. Assuming all is well with the user's login status, etc, SessionCheck would forward control to the real action. Invoking the real action would set the usual Struts process into play.

Date Form Fields Question

2002-03-05 Thread Mattos, John
Hi all I have a form that contains a StartDate and EndDate text fields, and I'm wondering what the best way to deal with them is. Should the Form Bean attribute be of type Date, or should I make it a String, and just use DateFormat.parse(StartDate); to parse it in the validate method?

RE: action and form contract

2002-03-05 Thread keithBacon
Do check for essential preconditions in your Actions I agree with that! Defensive / Controlled State programmimg makes debugging much simpler. makes code easier to read too. The perform method in the Action is a key hotspot in the framework, and may be realizing several different API

Re: Forwarding to referer

2002-03-05 Thread keithBacon
Hi George - I just did a post on another subject that's relevant to this. You still have to have the action name of the referrer in the struts-config but you can have a list of all possible referrers specify which one at run time. I like this as struts-config then documents all possible links

RE: design question

2002-03-05 Thread keithBacon
You have to keep the data in the session or write it to the database. (Storing it on each form as hidden fields seems too fiddly to me). Unless you have huge volumes I actually prefer to save it on the database have a status field that indicates the data is incomplete. --- Ronald Haring [EMAIL

Re: Getting DataSource from an Action

2002-03-05 Thread Eddie Bush
D'oh! I actually wanted it in a TAG but that will work fine. I had forgotten about that method of obtaining it. Thanks so much for your patience! Eddie - Original Message - From: Ronald Haring [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, March

Re: design question

2002-03-05 Thread Eddie Bush
There's really no reason not to keep the data in the session. The session is server-side and is not transmitted to the client, so it's secure. I can't think of any other reason you would be uncomfortable with using the session, but if you have a different concern please feel free to voice it.

Re: html:/base

2002-03-05 Thread Eddie Bush
If you use relative links in your page, you should place the html:base/ tag inside the head element of your page. It will render a base tag so that relative links will not appear to be broken. Eddie - Original Message - From: send2boney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: creating a variable set to return value of a method - using struts

2002-03-05 Thread Elijah Jacobs
Thanks for the response, I could not find an example on how to turn % HashMap myMap = someClass.getMyMap(); % to a bean:define I'm having trouble getting the syntax down... can someone show me an example of how this is done? thanks in advanced, - ej - Original Message - From:

How to use the html:text tag properly.

2002-03-05 Thread Alex Colic
Hi, I am trying to get the value attribute to work in the text tag. I have an 'ITEM' bean with two properties. One is set up when the user selects an item. When they go to a page I want the page to display the existing value in 'item.primeLocation' and I want the text box to be prefilled with

RE: design question

2002-03-05 Thread Ronald Haring
I have one big problem and one minor problem with keeping information in sessions - it takes memory, and you have no way of telling when this will released (sure if session timeouts, then you might suspect that it will be cleaned any time soon, but its always up to the gc to do that, so never

Re: Forwarding to referer

2002-03-05 Thread Eddie Bush
I'm not quite sure what you mean by the 'referer'. Could you elaborate? Eddie - Original Message - From: George Moschovitis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 3:55 AM Subject: Forwarding to referer Hi everybody, I am a new user of struts and I have

Re: parameter attribute in the action-mapping... what is it?

2002-03-05 Thread Donald Miller
It's a general purpose attribute you can use to pass any desired information into the action from the struts-config.xml file. You can access the parameter's value within the action class via the mapping.getParameter() method. For actions requiring multiple steps, the parameter is often used to

RE: bean:message default key?

2002-03-05 Thread Hani Hamandi
Actually, I think I was misunderstood. I don't want it to print anything for the user. What I was thinking of is something like this: bean:message key=someKey defaultKey=someOtherKey / What this means is if you don't find someKey then don't throw an exception, but rather try the default key

RE: design question

2002-03-05 Thread Ronald Haring
You have to keep the data in the session or write it to the database. (Storing it on each form as hidden fields seems too fiddly to me). Unless you have huge volumes I actually prefer to save it on the database have a status field that indicates the data is incomplete. that is true for

RE: Ping on 1.1 or Tiles/Nightly working

2002-03-05 Thread Andre Beskrowni
hmm. are we still going to have to extend the controller class to use tiles? (used to be ActionServlet, now it's RequestProcessor...) i was hoping that this would make use of the new plug-in capabilities --- or is just validator going in that direction? ab -Original Message- From:

Re: Multiple submit buttons solution

2002-03-05 Thread Olivier Dinocourt
why not use : input type=submit name=edit value=10 or input type=submit name=delete value=10 olivier - Original Message - From: Peter Severin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 4:10 PM Subject: Multiple submit buttons solution Hi folks, I've been

Re: How to use the html:text tag properly.

2002-03-05 Thread keithBacon
I'm pretty sure if you use get/set in your form bean you should not use value. It specifies the literal value to display in the field (I think? - as I never use it). --- Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get the value attribute to work in the text tag. I have an

resolveEntity error

2002-03-05 Thread Akash Munjal
hi, I get this message when I deploy a struts based appl resolveEntity('-//Sun Microsystems, Inc//DTD Web Application 22//EN', 'http://javasuncom/j2ee/dtds/web-app_2_2dtd') Not registered, use system identifier Call

Re: design question

2002-03-05 Thread Ted Husted
A third option people have mentioned is to serialize the form-bean as a single hidden field. As part of validate, you can repopulate any null fields. Never actually tried this one myself, but it seems clever. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications

Role-based Validation Extension Question

2002-03-05 Thread Emaho, Ghoot
Hi, I think I might be missing something here. Can someone tell me what the Role-based Validation extension gives you over, say, setting security restraints in the web.xml ? I can set constraints on individual actions by mapping them in the web.xml. So what else does the extension give the

Re: Multiple submit buttons solution

2002-03-05 Thread keithBacon
Hi Peter, I just use links to do this. (I think you can use an Image as well). Buttons are a bit ugly so I don't need this functionality. There's lots in struts so I don't favor adding more. Keith. --- Peter Severin [EMAIL PROTECTED] wrote: Hi folks, I've been searching for a solution for

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
You could always extend ActionMapping (or ActionConfig for 1.1) to accept more parameter type attributes. Of course at that point, you're extending the framework but's that neccessarily a bad thing. Chuck -Original Message- From: Matt Read [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Re: Digester Question

2002-03-05 Thread Craig Tataryn
Anyone? /tataryn:craig From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Digester Question Date: Mon, 04 Mar 2002 14:19:07 -0600 I realize that the digester is now part of commons, but I figure there is probably a lot of

Re: Date Form Fields Question

2002-03-05 Thread keithBacon
lots in the archive about this! http://www.mail-archive.com/struts-user%40jakarta.apache.org/ --- Mattos, John [EMAIL PROTECTED] wrote: Hi all I have a form that contains a StartDate and EndDate text fields, and I'm wondering what the best way to deal with them is. Should the Form Bean

Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Mattos, John
Hi I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date. There's a bean that has set/getEndDate() methods, and I get to the form from an Action.perform() call What's the best way to prepopulate that field? -- To unsubscribe,

Re: design question

2002-03-05 Thread Ted Husted
At this point, I rarely write custom Actions any more. Now I try to use a framework action to handle all the usual action-stuff, and pass it the name of a business bean to invoke as part of the ActionMapping. At this point, I'm creating moderately complex application using only the stock actions

Re: Re : logic:iterate String

2002-03-05 Thread keithBacon
that looks it is the output from the toString method of an array or collection class. Specify proprty=... to make struts call that property instead of toString(). (Maybe?). --- FARINE Arnaud - SOP ( [EMAIL PROTECTED] ) [EMAIL PROTECTED] wrote: If I write this I obtain somthing like this:

Re: Nesting Extension and persistance strategy--castor any one?

2002-03-05 Thread rajesh kalluri
Hi All, I am not the expert in the field of designing OO persistence mechanisms. I am a fan of nested beans and also i have been playing with castor lately. So am thinking if we can map our monkey object schema to a db schema (I can hear a lot of thats easy). Then it should be a snap to

RE: parameter attribute in the action-mapping... what is it?

2002-03-05 Thread Steve Earl
Does anyone know if you can specify more than a single parameter on the actionMapping definition within the struts-config.xml file? The reason for the question is that I'd like to do something similar to what's specified below - have an action which processes several related tasks using a

RE: design question

2002-03-05 Thread Ronald Haring
this looks very nice indeed. I will look into this some more. Thx Ted Gr Ronald At this point, I rarely write custom Actions any more. Now I try to use a framework action to handle all the usual action-stuff, and pass it the name of a business bean to invoke as part of the

RE: Nesting Extension and persistance strategy--castor any one?

2002-03-05 Thread John Menke
Rajesh, That sounds interesting. I started looking at Castor also, but now I'm looking more into Simper. Let me know how it goes maybe we can share notes. -john -Original Message- From: rajesh kalluri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:32 AM To: Struts Users

Re: Ping on 1.1 or Tiles/Nightly working

2002-03-05 Thread Cedric Dumoulin
I have used the simplest and quicker solution in order to make Tiles working with latest Struts build ;-). If it is possible to use plug-in rather than extension mechanism, this will be done. Unfortunately, I haven't found free time to look at this ;-). If you already have a patch for this,

Need Help: clues to an error message

2002-03-05 Thread Sher_A
What's the likely reason for the following error message? Cannot find ActionMappings or ActionFormBeans collection Or where to look first? I've stared at my struts-config.xml for days now. Details will be supplied if requested. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: Need Help: clues to an error message

2002-03-05 Thread Kanoza, Douglas (NCI)
When I've gotten that error, it's because my struts-config.xml file was invalid: missed closing tag, whatever. -Original Message- From: Sher_A [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:16 PM To: Struts Users Mailing List Subject: Need Help: clues to an error message

RE: Handling exceptions

2002-03-05 Thread Hani Hamandi
Hmm, well, I think you should care about that. If a JVM exception happens, there is most probably something wrong going on. If you don't catch the exception/error, your user will get an ugly 505 server error or something like that. Your decision will depend on whether this is okay in your

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Mattos, John
Anyone? Pre populating fields? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:19 AM To: 'Struts Users Mailing List' Subject: Pre

Re: Poolman Setup with Struts under tomcat 3.3

2002-03-05 Thread Jin Bal
You're probably already doing but just in case: when you get your datasource use the static method in the PoolMan class (PoolMan.findDataSource) This will return you a datasource from poolman. The fact that it works when you put the datasource tag back in the struts config xml suggests that it

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread keithBacon
There is lots about this in the mail archive. Did u look there? --- Mattos, John [EMAIL PROTECTED] wrote: Anyone? Pre populating fields? John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -Original Message- From: Mattos,

Has any one used struts with castor as a persistence mechanism....

2002-03-05 Thread rajesh kalluri
Hi All, Has any one tried to use struts with castor XML frame work for persistence if so could you please share your experiences and throw soem guidance. 1-As a starting point i have tried to generate java classes from a schema using source generator of castor. 2-I have made ActionForm as my

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Galbreath, Mark
Use JavaScript. What's the point of having the overhead of creating an object for something as simple as getting the current date? Mark -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:28 PM Anyone? Pre populating fields? I need to

Re: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread rajesh kalluri
May be you can use the jakarta datetime taglib with some thign like this. dt:format pattern=MM/dd/ hh:mmdt:currentTime//dt:format select name=month dt:months id=mon option value=jsp:getProperty name=mon property=monthOfYear/ jsp:getProperty name=mon property=month/ /dt:months /select

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Maturo, Larry
Hi, The first statement was: I need to have a startDate and endDate field in my form, and I'd like to prepopulate the endDate field with today's date. Easy to understand. The second statement was: There's a bean that has set/getEndDate() methods, and I get to the form from an

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Jay sissom
You can use JavaScript only if you guarantee that every user of your application has a browser that supports JavaScript and it is enabled. You're probably OK if you are intranet, but with internet applications, you never know if someone is running WebTV or something like that. In my mind,

RE: Help to manage html href tag with sruts

2002-03-05 Thread Don Dumrauf
I did this: html:link href=%mailTo + actionForm.getUserEmail()% etc. I defined mailTo as a String = mailto:; Hope this answers your question -Original Message- From: Apollinaire Coulibaly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:41 PM To: [EMAIL PROTECTED] Subject:

RE: Has any one used struts with castor as a persistence mechanism....

2002-03-05 Thread John Menke
Check out http://chiki.emaho.org Ghoot has source code available and uses castor. -Original Message- From: rajesh kalluri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:37 PM To: Struts Users Mailing List Subject: Has any one used struts with castor as a persistence

Re: Digester Question

2002-03-05 Thread Steve A Drake
On Mon, 4 Mar 2002, Craig Tataryn wrote: I realize that the digester is now part of commons, but I figure there is probably a lot of expertise here since it grew up in Struts. I was wondering if someone could help me figure out the easiest way to do this: I have an xml document, that holds

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Ross MacCharles
Try initializing the endDate member data when the ActionForm bean is instantiated /Ross -Original Message- From: Mattos, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:28 PM To: 'Struts Users Mailing List' Subject:RE: Pre Populating Fields - bit of a

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
Remember, the RequestProcessor is a 1.1 thing. You'll have to be using the nightly build for it. Of course, the beta is just around the corner. Anyway, the Struts 1.1 DTD defines a new element called controller. It goes under the root element after the action-mappings. Make sure that it's in the

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
matt, I spoke wrong. The controller element goes before the message-resources element. !ELEMENT struts-config (data-sources?, form-beans?, global-exceptions?, global-forwards?, action-mappings?, controller?, message-resources*, plug-in*) Sorry about that, Chuck -Original Message-

How to fill a String[] property?

2002-03-05 Thread Alex Colic
Hi, I have a form with a string array property 'Activities'. The form has the following methods: private String[] mActivities = new String[6]; public void setActivities(String[] parm1) { mActivities = parm1; } public String[] getActivities() { return mActivities; } On my page I

RE: How to fill a String[] property?

2002-03-05 Thread Brian Richards
Try void setActivities(int index, String parm) { mActivities[index] = parm; } -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 2:02 PM To: Struts Subject: How to fill a String[] property? Hi, I have a form with a string array property

RE: Pre Populating Fields - bit of a newbie question

2002-03-05 Thread Galbreath, Mark
This is an old, outdated argument; 99.99 percent of the web uses JavaScript. Instantiating an object is very expensive, relatively speaking. But it's your app; do what you want. Mark -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:07 PM

RE: validate() and session expiry

2002-03-05 Thread Matt Read
No problem, I hadn't got around to trying it yet. Thanks for all the help. Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 18:50 To: 'Struts Users Mailing List' Subject: RE: validate() and session expiry matt, I spoke wrong. The controller

FW: Tomcat/Struts Profiling results

2002-03-05 Thread TKV Tyler VanGorder
Hi, For the last week and a half, a colleague and myself have been doing load/ scalability testing for our struts/jsp-based application. I would like to share our results in the hopes that it may help someone else faced with a similar task. We had a tough time finding real-world examples that we

RE: Extra Path Info Problem!!! HELP!!!

2002-03-05 Thread Michael Nash
Ted: I've been experimenting with a way of doing mappings from normal URL's to Action URI's, and wonder if it's the right approach. If so, I'd be happy to drop it in for inclusion in a release when/if appropriate, or set it up as an optional-add on. I took the simple approach, and added a

How to fill a String[] property-updated question.?

2002-03-05 Thread Alex Colic
Hi, just an update. Before I access the page I initialized the String[] array elements to 1...6. When I get to the page the values in the String[] array are properly displayed in the corresponding text boxes but when I submit the page I get the following error:

redirection from an action/ refreshing page

2002-03-05 Thread saval
After we have finished handling the form in our action, we forward the request on to the next page using return new ActionForward(mapping.findForward(success)); where success is defined in the action in struts-config.xml using forward name=success path=/successpage.jsp/

Re: parameter attribute in the action-mapping... what is it?

2002-03-05 Thread Ted Husted
You can use a deliminated list of items, and then use the String tokenizer to pull them out. StringTokenizer helperClasses = new StringTokenizer(mapping.getParameter(),;); int i = -1; Object[] helpers = new Object[helperClasses.countTokens()]; while

  1   2   >