Re: contrib/struts-shale-mailreader

2004-11-12 Thread Craig McClanahan
On Fri, 12 Nov 2004 14:35:07 -0700, BaTien Duong <[EMAIL PROTECTED]> wrote: > Hello Craig: > > i take a casual look at shale and the running mailreader example. I have > some questions: > > 1) Shale is designed as a servlet filter that hook to a DialogController > and invoke a specified ViewContr

Re: ValidatorPlugin requires internet connection

2004-11-12 Thread Ben
Thanks, it works now On Sat, 13 Nov 2004 04:14:37 -, Niall Pemberton <[EMAIL PROTECTED]> wrote: > Version 1.2.2 of Struts was withdrawn because of problems - please upgrade > to the latestest release - Version 1.2.4 > > http://struts.apache.org/acquiring.html > > If you're upgrading fro

RE: Application Development Procedure Doc (Again)

2004-11-12 Thread David G. Friedman
Dan, When I look at your outline, it suggests (to me) that every item on it is REQUIRED when creating a webapp. That is not necessarily true. Revision control (CVS, SVN, ...), sharing files with SAMBA, creating an information Wiki, tracking problems in a Bugzilla, and so forth are excellent sugg

Re: ValidatorPlugin requires internet connection

2004-11-12 Thread Niall Pemberton
Version 1.2.2 of Struts was withdrawn because of problems - please upgrade to the latestest release - Version 1.2.4 http://struts.apache.org/acquiring.html If you're upgrading from Version 1.1 of Struts to Version 1.2.4, then there are notes on what needs changing here: http://wiki.apache.org/st

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Peng Tuck
Dan, I don't really understand the document you posted. Maybe it would be better served in wiki format or you could post in pdf or something like that. As it is, I was pretty confused when I first saw it. Dan Cancro wrote: Hi Group, This is plea #2 for help with a soup-to-nuts How-To doc I'm

ValidatorPlugin requires internet connection

2004-11-12 Thread Ben
Hi I am using Struts 1.2.2 with the ValidatorPlugIn. When I start up Tomcat, Struts needs internet connection otherwise my application won't work. Is there a way to startup Tomcat without internet connection (and still be able to use ValidatorPlugIn)? The Doctype in my validator.xml is: http://j

Re: Does Javascript Validation work with mapping path as key?

2004-11-12 Thread Niall Pemberton
Matt, Thats it - thanks for your help. I'm using an extended version of BeanValidatorForm - which helpfully :-( strips off the leading / in the getValidationKey() method, so you don't have to specify them in the valiadtion.xml. Since is using that to identify is a 'path' based validation I'm

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Dan Cancro
All set! It works in Mozilla now. Here's the link again: http://www.geocities.com/topdowndan/docs/webapp/ --- Adam Hardy <[EMAIL PROTECTED]> wrote: > No, I think it just wrapped on you. Put your > anti-Microsoft tiger back > in its cage and step away from the door ;) > > It seemed to work O

RE: Frustrating Tiles error - Error - tag.getAsString

2004-11-12 Thread David G. Friedman
Michael, Can you show the Tiles plugIn from your struts-config.xml? You don't mention it. It is probably something like this: Regards, David -Original Message- From: Michael Klaene [mailto:[EMAIL PROTECTED] Sent: Friday, November 12, 2004 7:22 PM To: [EMAI

Frustrating Tiles error - Error - tag.getAsString

2004-11-12 Thread Michael Klaene
I can't seem to see the problem here. I think it's simple but I've just been staring too long! I keep getting a 'Error -tag.getAsString' error in my app. I suspect it has nothing to do with the tiles defs but is happening before that. But I can't figure it out. Below is my info and the err

Re: OT: hosting recommendations?

2004-11-12 Thread Vic
http://order.1and1.co.uk/xml/order/Server They also have US hosting. .V Woodchuck wrote: rackspace must be some serious hosting... they start at a whopping $350/month... lol, if i win the lottery i will sign up with them! :) you're right, there seems to be very economical hosting for php. why is t

Validation in modules; messages not found

2004-11-12 Thread Dave Bender
I'm having trouble getting a simple Validator to work in a module. Is there something special to modules I need to do to get the Validator to work? Specifically, I'm getting a NullPointerException at org.apache.struts.validator.Resources.getMessage(Resources.java:209). Walking through the code (y

Re: contrib/struts-shale-mailreader

2004-11-12 Thread BaTien Duong
Hello Craig: i take a casual look at shale and the running mailreader example. I have some questions: 1) Shale is designed as a servlet filter that hook to a DialogController and invoke a specified ViewController backing bean. Jsf has application ViewHandler and MyFaces wires each page into a t

Re: OT: hosting recommendations?

2004-11-12 Thread Vic
I have used 1&1. They give you root access so you can do whatever w/ box. .V Woodchuck wrote: rackspace must be some serious hosting... they start at a whopping $350/month... lol, if i win the lottery i will sign up with them! :) you're right, there seems to be very economical hosting for php. why

Re: OT: hosting recommendations?

2004-11-12 Thread Woodchuck
rackspace must be some serious hosting... they start at a whopping $350/month... lol, if i win the lottery i will sign up with them! :) you're right, there seems to be very economical hosting for php. why is that? i don't know anything about php, can it do everything that struts can? is it diff

Re: Generating RSS feeds with Java

2004-11-12 Thread Patrick L Archibald
Thanks David. PLA David G. Friedman wrote: Patrick, I read some Java themed RSS feeds and saw this link to Java RSS classes this week: http://wiki.java.net/bin/view/Javawsxml/Rome https://rome.dev.java.net/ Be sure to skim over the 6 tutorials onhow to read and create RSS feeds: http://wiki.java.ne

Re: action forwards to target frames

2004-11-12 Thread Charl Gerber
Thanks, that was what I thought I had to do... just making sure. :) --- Jeff Beal <[EMAIL PROTECTED]> wrote: > The web server doesn't know anything about frames. > We usually achieve > this sort of thing by returning a page with some > JavaScript when we want > to pop out of frames: > > la

RE: Generating RSS feeds with Java

2004-11-12 Thread David G. Friedman
Patrick, I read some Java themed RSS feeds and saw this link to Java RSS classes this week: http://wiki.java.net/bin/view/Javawsxml/Rome https://rome.dev.java.net/ Be sure to skim over the 6 tutorials onhow to read and create RSS feeds: http://wiki.java.net/bin/view/Javawsxml/Rome04Tutorials Tut

OT: Generating RSS feeds with Java

2004-11-12 Thread Patrick L Archibald
Hey Sorry for the unrelated Struts question but Googling for this was like trying to find a needle in a haystack. Is anyone generating RSS feeds with Java? If so, what APIs are you using? I've tried RSS4j at http://www.churchillobjects.com/c/13005.html . It is working OK but I was wondering wh

Re: action forwards to target frames

2004-11-12 Thread Jeff Beal
The web server doesn't know anything about frames. We usually achieve this sort of thing by returning a page with some JavaScript when we want to pop out of frames: top.window.location="mainPage.html"; -- Jeff Charl Gerber wrote: Is it possible to set one action with multiple forwards each goi

RE: debugging with Struts

2004-11-12 Thread David G. Friedman
Doh! I already use that and should have had the brains to tell you about it when the thread started. :( Regards, David -Original Message- From: Yaroslav Novytskyy [mailto:[EMAIL PROTECTED] Sent: Friday, November 12, 2004 4:20 AM To: Struts Users Mailing List Subject: Re: debugging with St

action forwards to target frames

2004-11-12 Thread Charl Gerber
Is it possible to set one action with multiple forwards each going to different frames? Ie, if an error occurs, I want to redirect to forward to something in the current frame, but in case of a successful operation, I want to redirect to eg. window.top or another frame altogether. Thanks. -

Re: OT: hosting recommendations?

2004-11-12 Thread bryan
Get some friends together and get yourselves a linux box hosted on rackspace, jave is too resource hungry to get cheap virtual server type offerings for it. That is why the world uses php or if you just wanna demo your stuff why not get ADSL --b On Fri, 12 Nov 2004 11:34:52 -0800 (PST), Woodchuc

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Dan Cancro
Any input or corrections would be great. I haven't done one of these before, so I'm afraid I don't really know what I don't know. I just sort of browsed the web and my memory of past projects for partial instructions and then dumped them in the doc as best I could. There are some questions in th

Re: QuartzPlugIn for struts manual scheduling

2004-11-12 Thread klute
Ram, Thanks a lot. Dunno how I missed that.. For all of you out there who needs an example of this functionality: QuartzPlugIn qp = (QuartzPlugIn) request.getSession().getServletContext().getAttribute(QuartzPlugIn.PLUGIN_KEY); Scheduler scheduler = qp.getScheduler(); Best, James --- Ram <[E

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Dan Cancro
temper temper Thanks for the constructive criticism. I'll see if there's an open source evangelistically kosher way to get it working on another browser. --- James Mitchell <[EMAIL PROTECTED]> wrote: > umm...I'm confused. I clicked that link and the > page doesn't mean squat to > me. The top

OT: hosting recommendations?

2004-11-12 Thread Woodchuck
hihi all, can anyone recommend hosters that are Tomcat/Java friendly and offer private JVMs for cheap monthly cost? (cheap to me is $0 - $20/month range) i went to servlets.com and visited many of the hosters on their list but most of them seem to still have the legacy offerings that are stingy

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Adam Hardy
Dan, just realised how unhelpful that msg was. What are you actually asking for? Random suggestions or something specific? Adam On 11/12/2004 07:26 PM Adam Hardy wrote: No, I think it just wrapped on you. Put your anti-Microsoft tiger back in its cage and step away from the door ;) It seemed to

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread Adam Hardy
No, I think it just wrapped on you. Put your anti-Microsoft tiger back in its cage and step away from the door ;) It seemed to work OK in Mozilla for me. The blanks are iframes rather than text areas. Not all of the nodes have them. Looks like Dan is still writing his expert system on how to se

Re: Using non struts-config.xml MessageResource in the Validator

2004-11-12 Thread James Mitchell
The validator pulls it from the request. So, you need a custom impl of MessageResources. Then, you just configure your message resource factory in the struts-config and you are done. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Orig

Re: Application Development Procedure Doc (Again)

2004-11-12 Thread James Mitchell
umm...I'm confused. I clicked that link and the page doesn't mean squat to me. The top frame is only half rendered (being cut off by the bottom frame). The tree items only expand to empty (and rather oversized) text areas. Am I supposed to view this page with IE? If so, then forget about gett

Re: html:img page or src???

2004-11-12 Thread Mark Lowe
Ideally you dont want session id's appeand to image paths it messes with some browsers.. I got stung with this in my early days with struts.. another option is to write a filter that strips the id off requests for images. Mark On Fri, 12 Nov 2004 13:49:05 -0500, Erik Weber <[EMAIL PROTECTED]>

Re: html:img page or src???

2004-11-12 Thread Erik Weber
I think it will only be there until the Server has established a session cookie with the user's browser, unless the browser doesn't allow cookies (then it should always be there). I don't know of a reason why it will do any harm. The behavior of the src and page attributes is the same with rega

Re: QuartzPlugIn for struts manual scheduling

2004-11-12 Thread Ram
Under the jgs-struts src src\java\com\jgsullivan\struts\plugins\QuartzPlugIn.java If you look in this source code PLUGIN_KEY is the key in the application context. Using this you can access the scheduler . Hope this helps. I am attaching the source here for your reference /** * $Header: /cvs

QuartzPlugIn for struts manual scheduling

2004-11-12 Thread klute
Hello All, I am using a combination Quartz and QuartzPlugIn to schedule events in my struts app. The two work beautifully together (thanks to the developers responsible for these!) All of my events are scheduled on the app startup and what i wanted to do now is to manually access the scheduler.

QuartzPlugIn for struts manual scheduling

2004-11-12 Thread klute
Hello All, I am using a combination Quartz and QuartzPlugIn to schedule events in my struts app. The two work beautifully together (thanks to the developers responsible for these!) All of my events are scheduled on the app startup and what i wanted to do now is to manually access the scheduler.

RE: Multibox deselection problem

2004-11-12 Thread Wiebe de Jong
This is a problem with HTTP: when all the checkboxes are deselected, the browser doesn't send anything back, so you get the default of what you started with. To solve this problem you must ensure that at least one box is always selected. I solved this problem by creating an additional checkbox tha

Application Development Procedure Doc (Again)

2004-11-12 Thread Dan Cancro
Hi Group, This is plea #2 for help with a soup-to-nuts How-To doc I'm making for building apps, so that I can finally build one. The last doc I did was pretty boring. It fetched one joke, one criticism and zero offers for assistance. This new one is much more fun. It has expanding trees, ifram

Re: Request Parameters Not Showing up in Struts Form

2004-11-12 Thread Rick Reumann
Dhruva B. Reddy wrote the following on 11/12/2004 12:12 PM: I am using Struts 1.1, and I need to get to an Action with a GET request (with parameters in the URL, as opposed to an HTML form). If I dump the query string in the Action, I can see that all the parameters are getting through. However,

Request Parameters Not Showing up in Struts Form

2004-11-12 Thread Dhruva B. Reddy
I am using Struts 1.1, and I need to get to an Action with a GET request (with parameters in the URL, as opposed to an HTML form). If I dump the query string in the Action, I can see that all the parameters are getting through. However, the Action's form is not populated properly--I only get the

Re: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Craig McClanahan
On Fri, 12 Nov 2004 16:23:24 -, Daffin, Miles (Company IT) <[EMAIL PROTECTED]> wrote: > [snip] > One assumes that the ActionServlet did not load the ModuleConfig, and > that the application is *not* therefore really viable - although it > seems to think it is... > > So. My question is: is this

nested:select question

2004-11-12 Thread Vinicius Carvalho
Hi there! I'm using nested select to display a select box of a nested bean, So far it worked great. Here's the structure I have: A steps collection which holds references for n objects of type step so I use nested to display each of the properties of the step bean. I have this to display a combob

Re: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Erik Weber
Struts 1.1 requires it (should solve your problem of "ActionServlet failing to load", though I admint I've never seen that exact manifestation of the problem before so I could be wrong). I suggest a value of 1, but it really depends on your application. Are there any other Servlets in your appl

RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
Should I have done? What is the expected result? 1) If no such param is specified. 2) If the param is specified. And what value would you recommend? Thanks. Miles > -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: 12 November 2004 16:28 > To: Struts Users Mailin

Re: Does Javascript Validation work with mapping path as key?

2004-11-12 Thread Matt Bathje
Niall Pemberton wrote: [snip] [snip] Niall - I'm pretty sure that you need to have the slash in front of the name in the validation.xml for a ValidatorActionForm - try it with /houseTypeAdd instead of just houseTypeAdd and see if that fixes your problem. If that doesn't work you may want to

Re: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Erik Weber
Have you specified the load-on-startup attribute for the controller Servlet in web.xml? Erik Daffin, Miles (Company IT) wrote: Hi, Can anyone tell me if this is a bug? I have a struts 1.1 app with a typical default index.jsp redirecting to the entry point action: This was failing to because of t

RE: Can't find property -- but it's there

2004-11-12 Thread Slattery, Tim - BLS
> Yes, but it may be possible that the ClassLoader (for > whatever reason) has a cached version of the older class and > it is not loading the new class when the web app reloads. > Have you tried rebooting the application server on the > development machine? If the problem still occurs on the d

STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
Hi, Can anyone tell me if this is a bug? I have a struts 1.1 app with a typical default index.jsp redirecting to the entry point action: This was failing to because of the following NPE: --- java.lang.NullPointerException at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.ja

Re: contrib/struts-shale-mailreader

2004-11-12 Thread Struts User
On Thu, 11 Nov 2004 14:42:30 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > There's another dependency when you try to compile > struts-shale-mailreader ... you have to have run the "dist" target on > the shared database code in "struts-examples/mailreader" first (along > with "struts-contrib

html:img page or src???

2004-11-12 Thread Morales de Frías, David
Hello¡¡ a new question about images... if i write:

html:img help

2004-11-12 Thread Morales de Frías, David
Hello¡¡ I need to use something like this: I mean... i need an image, but i need to reference my project's context. To do this, i have a tag (myproject:path) that write the request's context something like this in my tld: JspWriter jw = this.pageContext.getOut(); jw.write(req.getContextPath(

Re: How to use getServletConfig( ) outside a Servlet.

2004-11-12 Thread Radu Badita
Hi, I had a problem similar to yours, and here is how I solved it: 1. made a Struts PlugIn (a class that implements org.apache.struts.action.PlugIn) and has a method init(ActionServlet , ModuleConfig) and a String property (let's say configFileName). The property will be automatically set by Strut

Re: How use the BeanUtils and interface converts

2004-11-12 Thread Radu Badita
A simpler alternative to that approach would be to simply make an additional setter method in you bean (and getter if appropriate) for your Date member which takes a String, parses it (preferably according to the user's Locale) and sets your Date member. The form data should be first validated, oth

Re: SSL not being used

2004-11-12 Thread Craig McClanahan
It's not Struts that is ignoring your security constraints ... it's Tomcat. Which makes sense, because you are using container-managed security :-). That is because using SSL on the login pages is not supported out of the box by Tomcat. You might want to investigate projects like SSLExt or Secur

Multibox deselection problem

2004-11-12 Thread Olivier Croisier
Hi ! I have a problem with the Multibox behaviour. I have checked the online doc but nothing helped me so far... Here is my problem : My app workflow is : prepareImportAction.do -> Import.jsp -> processImportAction.do In the prepareImportAction.do, I initialize the "entities" var (of type Str

Re: Help with context

2004-11-12 Thread Erik Weber
If you use the page attribute to html:img instead of the src attribute, the value will have the context prepended automatically. Does that not achieve the same thing your tag is achieving? Erik Morales de Frías wrote: Hello¡¡ I need to use something like this: I mean... i need an image, but i n

Help with context

2004-11-12 Thread Morales de Frías, David
Hello¡¡ I need to use something like this: I mean... i need an image, but i need to reference my project's context. To do this, i have a tag (myproject:path) that write the request's context something like this in my tld: JspWriter jw = this.pageContext.getOut(); jw.write(req.getContextPath(

RE: JNDI

2004-11-12 Thread McCormack, Chris
Then deploy a your_webapp_name_here.xml file along with your app that contains the context settings. Chris McCormack -Original Message- From: Jonathan Wright [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 23:22 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: JNDI Craig,

Re: [OT] Re: A new paradigm of Struts development

2004-11-12 Thread Adam Hardy
At risk of sounding like I'm brown-nosing, I think it is not just dedication - it is 50% elegant ideas and quality code. On 11/12/2004 08:38 AM Erik Weber wrote: I would like to offer one more opinion on the paradigm discussion, and then I'll shut up. I think it's important for younger developer

using multiple action forms in one action. Best practice?

2004-11-12 Thread Martin Kindler
Hi, in my application I have a rather complex object to deal with. I have split the process in several jsps (JSP1, ..., JSPn) using different ActionForms (AF1, ..., AFm) with them. I need information collected in one JSPi (using AFi) in another JSPj (using AFj). How can I access both Afi and Afj i

Re: Question about multiple fields in forms

2004-11-12 Thread Radu Badita
Hi, It could be done using indexed properties and nested properties. Take a look at: http://struts.apache.org/faqs/indexedprops.html You can find lots of threads on this. On Fri, 12 Nov 2004 11:15:45 +0100, Hevia Vega, Andrés <[EMAIL PROTECTED]> wrote: > > Hi, > > We have a dynamic table that

using multiple action forms in one action. Best practice?

2004-11-12 Thread Martin Kindler
Hi, in my application I have a rather complex object to deal with. I have split the process in several jsps (JSP1, ..., JSPn) using different ActionForms (AF1, ..., AFm) with them. I need information collected in one JSPi (using AFi) in another JSPj (using AFj). How can I access both Afi and Afj i

Question about multiple fields in forms

2004-11-12 Thread "Hevia Vega, Andrés"
Hi, We have a dynamic table that we would like to submit to an action. The number of columns and records are unknown. Is there any built in mechanism or trick in Struts that we can use in order to do this? A possible solution is to use arrays of fields that are send to the action: Chee

RE: Validator - Redirects or Forwards?

2004-11-12 Thread Yagiz Erkan
> It uses forward (otherwise the errors get lost between requests!). > > Do you get an error? Thanks Daniel! We resolved the problem. It was a silly typo... - Yagiz Erkan - http://yagiz.blogspot.com http://www.erkans.com - T

RE: how to replace return in a string while use nested:write and bean:write

2004-11-12 Thread Paul McCulloch
The Jakarta Regexp taglib (http://jakarta.apache.org/taglibs/doc/regexp-doc/intro.html) should allow you to do the neccessary search-and-replace to creat a JavaScript compatible string. Paul > -Original Message- > From: Shen, Lei [mailto:[EMAIL PROTECTED] > Sent: 11 November 2004 18:22 >

SV: SSL not being used

2004-11-12 Thread Roland Carlsson
Sorry.. Posted to the wrong mailing list... It is not a struts-issue but a tomcat issue so I post it where it belong. Regards Roland Carlsson Den 04-11-12 10.26, skrev "Roland Carlsson" <[EMAIL PROTECTED]>: > Hi! > > I have a problem with my login.pages. They are supposed to only be reachable

Re: debugging with Struts

2004-11-12 Thread Yaroslav Novytskyy
Hi! Let me tell the answer for my own question (maybe someone needs it ;) ) It was just needed to run tomcat in debug mode using a Tomcat Launcher PlugIn located at http://www.sysdeo.com/eclipse/tomcatPlugin.html Thnks for help Yaroslav Novytskyy - Original Message - From: "Paul McCulloch"

SSL not being used

2004-11-12 Thread Roland Carlsson
Hi! I have a problem with my login.pages. They are supposed to only be reachable through ssl. But it seems like struts is ignoring the config in web.xml about having the pages secure (CONFIDENTIAL). (The full security-constraint is posted in the end) Right now I'm using the tomcat built in securi

Re: Does Javascript Validation work with mapping path as key?

2004-11-12 Thread Niall Pemberton
Thanks for responding Matt. The crux of the problem is that Struts is generating (as expected) a method based on the validation form name - which equates to my action mapping's path - but that the validateRequired.js seems (from a javascript alert) to be trying to call a method which uses the stru

Re: A new paradigm of Struts development

2004-11-12 Thread Dakota Jack
Craig, Why is this considered to be Struts? I have nothing against the proposal, but it seems like it is not Struts and, if this becomes Struts, this essentially destroys Struts as we know it, doesn't it? If so, why do that? Why not have Shale and Struts? Jack On Mon, 8 Nov 2004 09:33:15 -08

Re: [OT] Re: A new paradigm of Struts development

2004-11-12 Thread Erik Weber
I would like to offer one more opinion on the paradigm discussion, and then I'll shut up. I think it's important for younger developers to realize this. Every paradigm will have its strengths and weaknesses, and some can even be judged to be "better overall" than competing paradigms by a majori

Re: Does Javascript Validation work with mapping path as key?

2004-11-12 Thread Niall Pemberton
Thanks for the response, I am using an Action flavour of ValidatorForm Niall - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 11, 2004 7:59 PM Subject: Re: Does Javascript Validation work with mapping path as key?