RE: Urgent help needed

2006-01-19 Thread Rakesh.Bhat
Hi Window.onclose works with only IE. However, you can try unload event. Refer the code snippet below function onClose() { alert("Warning. You are closing the app!") //do cleanup operations } window.onunload=onClose Kind regards, Rakesh Bhat PrimeSourcing

menu system in front of a J2EE application

2006-01-19 Thread Rivka Shisman
Hi friends, I need your advice about this: I have a J2EE application that runs on Websphere application server. The application contains a several web projects (WARs). I need to implement a menu page that will be the front for all that web projects. 1. Should that menu be a separate w

Re: file upload via struts

2006-01-19 Thread Vikrama Sanjeeva
Hi, Good and complete example is here: http://www.roseindia.net/struts/strutsfileupload.shtml and check this too: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topic&f=58&t=006647&go=older At the end of the day, you need to code Java I/O for file (s) manipulation. If you read

Re: Modal window

2006-01-19 Thread Aldo Vadillo Batista
There's another problem related to the modal window: it not permits submitting there. You have to create an artifact to make this (put a frame inside the modal window and put the original page to display inside the frame). 2006/1/18, Frank W. Zammetti <[EMAIL PROTECTED]>: > FYI, there are some imp

Re: Urgent help needed

2006-01-19 Thread Aldo Vadillo Batista
I tried to do this many times but I couldn't. I look for information in the web but I think there's no possible solution. 2006/1/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi > Window.onclose works with only IE. However, you can try unload event. > > Refer the code snippet below > function onCl

No action instance for path /userRegistration could be created ?

2006-01-19 Thread Harish Pathak
Hi, Well I am getting the following error while running my first struts application.. url is : http://localhost/userRegistration.do --- No action instance for path /userRegistration could be created ? -

Re: Re: file download problem

2006-01-19 Thread Dakota Jack
I'll have to look at this more closely later. I have no trouble with microsoft docs. On 1/18/06, temp temp <[EMAIL PROTECTED]> wrote: > > I tried content type as application/msword but it did not help .Any > other ways to solve this problem? > thanks & regards > > > Note: forwarded message a

AW: Urgent help needed

2006-01-19 Thread Eickvonder Bjoern
Hi, as you are posting this on struts list I suppose you want to do something on the server If the user closes its browser, something like storing his logout time? Though you might be able to do some cleaning operation on the client (via onunload and such methods) for some browsers, it might be

Re: menu system in front of a J2EE application

2006-01-19 Thread Danny Lee
You can use Struts-Menu, it's sure is a good thing. The only issue is, that you can't generate the first menu level dynamically (or it's not easy). So if you wan't to have something like: Group 1 - Project 1 - Project 2 - Project 3 Group 2 - Project 1 - Project 2 - subproject 1

RE: menu system in front of a J2EE application

2006-01-19 Thread Marco Mistroni
Hello Not sure if you could.. An idea would be to use AOP and instead of loading the menu from The menu-config.xml you could load it from your database That could be a possibility, since afaik the menu is always Contained within MenuLoader (or something like that),so it's not read >From me

Re: Urgent help needed

2006-01-19 Thread Ganesh K
Hi, You can use this attribute in the tag ** Thanks, K.Ganesh

Re: Struts JSTL & EL

2006-01-19 Thread Dave Newton
Josh McDonald wrote: > Servlet 2.4 lets you use EL all over the place in JSPs? That rocks me, > can someone please send me a link to some good examples of just how > out-there you can get? > ${scopedVar} or even... ${scopedVar.propertyName} I think I might be misunderstanding your question.

[OT] Re: No action instance for path /userRegistration could be created ?

2006-01-19 Thread Dave Newton
Harish Pathak wrote: > java.lang.ClassNotFoundException: multipleform.UserRegistrationForm Where are you deploying your class files to? They should be in either /WEB-INF/classes (in standard package/directory hierarchy) or in a JAR in /WEB-INF/lib. Dave -

Struts creates its own session object?

2006-01-19 Thread Martin Morawetz
Hi, We have two web applications, a Struts-application and a strutsless application. Both web applications have to use the same session. It appears that both apps do have a session with the same id, but the session-objects are different and so all the attributes the two session-objects contain.

Be Careful though: was Re: Struts JSTL & EL

2006-01-19 Thread Rick Reumann
Josh McDonald wrote the following on 1/18/2006 5:29 PM: Servlet 2.4 lets you use EL all over the place in JSPs? That rocks me, can someone please send me a link to some good examples of just how out-there you can get? Just remember to consider using c:out vs just the straight EL ${}... Craig b

Database Access

2006-01-19 Thread Asad Habib
What are the different ways in designing the persistence layer so that it works with a Struts application? I am looking for a simple way to access a database. Should I use hibernate? Are there any articles online that discuss these alternatives and their tradeoffs? Thanks. - Asad

Re: Database Access

2006-01-19 Thread Rick Reumann
Asad Habib wrote the following on 1/19/2006 10:10 AM: What are the different ways in designing the persistence layer so that it works with a Struts application? Most either recommend Hibernate or iBATIS. I like iBATIS. I have a lesson on it using it with Struts that should be pretty easy to f

[OT] Re: Database Access

2006-01-19 Thread DGraham
It appears that you're still a student and you've asked for a "...simple way to access a database." My suggestion, start with JDBC. From there, you can investigate other options including, but not limited to, DbUtils, iBatis, Hibernate, EJB entity beans, etc. Scott Ambler has a nice article y

Generating dropdown lists using html tag

2006-01-19 Thread Gündüz Can Topal
Hi, I want to generate a dropdown list of cities holding their ids in value atrribute. html should look like city a . . . I got the values in a vector consists of hashmap holding id name pairs, and put the

Re: Generating dropdown lists using html tag

2006-01-19 Thread Rick Reumann
Gündüz Can Topal wrote the following on 1/19/2006 11:11 AM: I got the values in a vector consists of hashmap holding id name pairs, and put the vector in session in a setup action. But couldn't manage to generate dropdown list using html tag. How can it be done? You can probably use the

Thread on JSF.... and a podcast, in case you like to try a pod cast

2006-01-19 Thread netsql
For those that are not tired of framework wars: http://www.theserverside.com/news/thread.tss?thread_id=38601 I think Shale can be used w/ different view layer, ex: Wicket. I also think Shale WAR can be done in Groovy (it makes class files). That would be a good combo for the "old" browser tech

RE: [OT] Re: Database Access

2006-01-19 Thread George.Dinwiddie
I second the suggestion to start with JDBC. I've written a simple JdbcReader and JdbcWriter that I use within a DAO for accessing the database. You can find it at http://idiacomputing.com/moin/JdbcPersistence - George > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PRO

OT: Is there a very simple "MVC" for ASP 2005 w/ a tutorial? Something to show my poor friend about taking SQL out of ASP but very simple.

2006-01-19 Thread netsql
tia, .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Re: Database Access

2006-01-19 Thread Frank W. Zammetti
I third the suggestion :) But, I would look at the Spring JDBC package. If your going to do naked JDBC, they can make your life a lot easier. I would be using it now myself, except... I have over the course of a few projects developed four classes that I've used often when I couldn't really ju

Re: Database Access

2006-01-19 Thread Larry Meadors
Interesting note: iBATIS was in the top 3 for JDJ's "Best Java Persistence Architecture". http://jdj.sys-con.com/read/171303_3.htm Larry On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Asad Habib wrote the following on 1/19/2006 10:10 AM: > > What are the different ways in designing the p

Re: Struts creates its own session object?

2006-01-19 Thread Craig McClanahan
On 1/19/06, Martin Morawetz <[EMAIL PROTECTED]> wrote: > > Hi, > > We have two web applications, a Struts-application > and a strutsless application. > > Both web applications have to use the same session. This is not possible, either with or without Struts. The servlet specification requires th

Re: Be Careful though: was Re: Struts JSTL & EL

2006-01-19 Thread Craig McClanahan
On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Josh McDonald wrote the following on 1/18/2006 5:29 PM: > > Servlet 2.4 lets you use EL all over the place in JSPs? That rocks me, > > can someone please send me a link to some good examples of just how > > out-there you can get? > > Just reme

html:select default value in the action

2006-01-19 Thread Thibaut
Hi, I'd like to choose the default value of my html:select in the action class. What is the parameter to set ? Action : request.setAttribute("partnerslist", getPartnerListFromDataBase(dataSource)); JSP: labelProperty="label"/> Thanks. -

Re: html:select default value in the action

2006-01-19 Thread Rick Reumann
Thibaut wrote the following on 1/19/2006 1:09 PM: Hi, I'd like to choose the default value of my html:select in the action class. What is the parameter to set ? Set the value of the form bean property in your Action before you go to the form and that will be the default. Or, you could even s

Re: OT: Is there a very simple "MVC" for ASP 2005 w/ a tutorial? Something to show my poor friend about taking SQL out of ASP but very simple.

2006-01-19 Thread Ted Husted
http://opensource2.atlassian.com/confluence/oss/display/IBATIS/Quick+Start+Guide -T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[shale] Simple Clay example

2006-01-19 Thread Richard Wallace
Hello, I'm trying to get a simple clay example up and running so that I can use the full html view (which is similar to facelets, correct?). I looked at the use cases and copied the web.xml, faces-config.xml and clay-config.xml and stripped out anything that I didn't need, like Spring and di

RE: Generating dropdown lists using html tag

2006-01-19 Thread Garner, Shawn
Isn't there an options tag that takes in a collection? Wouldn't that be more optimized and easier? Shawn -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 10:16 AM To: Struts Users Mailing List Subject: Re: Generating dropdown lists using ht

Re: html:select default value in the action

2006-01-19 Thread Thibaut
Thank you for your quick reply. I use dyna form. Therefore i have to create a new instance of the dynaform. //get the parameter I want to put by default String secteurDefault = request.getParameter("secteur"); if(secteurDefault!=null) { if(form == null) { FormBeanConfig cfg = mapping.get

[shale] ViewHandler registration

2006-01-19 Thread Laurie Harper
I have a custom ViewControllerMapper which depends on resources set up by my ViewHandler implementation. Unfortunately, in some circumstances, ShaleViewHandler calls the mapper before my view handler has done its work. I think the problem is that ShaleViewHandler gets installed as a wrapper aro

good practice in creating form beans

2006-01-19 Thread fea jabi
When creating form beans does it have to have only, which the user can enter information to? In my JSP, there are fields order date: present order date input field (user can update the order date here) Like this the JSP has about 20 fields. Does the form bean should contain only t

Re: [shale] ViewHandler registration

2006-01-19 Thread Craig McClanahan
On 1/19/06, Laurie Harper <[EMAIL PROTECTED]> wrote: > > I have a custom ViewControllerMapper which depends on resources set up > by my ViewHandler implementation. Unfortunately, in some circumstances, > ShaleViewHandler calls the mapper before my view handler has done its > work. I think the probl

Forward After response.getOutputStream

2006-01-19 Thread Mike Darretta
Hi again. I posted a similar question yesterday...thought I'd try again. Is there a good way to forward a response after calling response.getOutputStream()? I've done a lot of web searching, and find the question asked many times. Yet, I've been unsuccessful (or simply dense) in finding a sui

Re: [shale] ViewHandler registration

2006-01-19 Thread Laurie Harper
Craig McClanahan wrote: On 1/19/06, Laurie Harper <[EMAIL PROTECTED]> wrote: I have a custom ViewControllerMapper which depends on resources set up by my ViewHandler implementation. Unfortunately, in some circumstances, ShaleViewHandler calls the mapper before my view handler has done its work.

[OT] Utility to create DDL from a database

2006-01-19 Thread Ashish Kulkarni
Hi Is there any open source utility which i can use to create DDL from an existing database, so i can use it to run to create tables on other database. This utility should be smart enough to create DDL statements for tables with primary key, before tables with foreign key. That way when i run the D

Re: html:select default value in the action

2006-01-19 Thread Laurie Harper
Thibaut wrote: Thank you for your quick reply. I use dyna form. Therefore i have to create a new instance of the dynaform. You should never have to do this manually. Struts will create the form for you provided your action mapping specifies the form name via the 'name' attribute. //get th

Re: Forward After response.getOutputStream

2006-01-19 Thread Laurie Harper
Mike Darretta wrote: I posted a similar question yesterday...thought I'd try again. Perhaps you posted that one in the middle of another thread as well? Make sure you post new threads as fresh messages, not replies to unrelated messages, to make sure they get seen by as many people as possib

Re: good practice in creating form beans

2006-01-19 Thread Laurie Harper
fea jabi wrote: When creating form beans does it have to have only, which the user can enter information to? In my JSP, there are fields order date: present order date input field (user can update the order date here) Like this the JSP has about 20 fields. Does the form bean shou

RE: [OT] Utility to create DDL from a database

2006-01-19 Thread George.Dinwiddie
Doesn't your database include such an export tool? What database are you using? Ashish Kulkarni inquired > Is there any open source utility which i can use to > create DDL from an existing database, so i can use it > to run to create tables on other database. > This utility should be smart enough

Re: Be Careful though: was Re: Struts JSTL & EL

2006-01-19 Thread Rahul Akolkar
On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Josh McDonald wrote the following on 1/18/2006 5:29 PM: > > Servlet 2.4 lets you use EL all over the place in JSPs? That rocks me, > > can someone please send me a link to some good examples of just how > > out-there you can get? > > Just rememb

Re: FW: Indexed properties

2006-01-19 Thread Laurie Harper
Vidya (Suvarna) Mahavadi wrote: Hi, I am currently working on an application which uses Indexed properties. And I am not able to update the indexed bean properties properly. I have included some code snippets here.. The problem is when the check box on the jsp is checked it update correctly, but

Re: Generating dropdown lists using html tag

2006-01-19 Thread Rick Reumann
Garner, Shawn wrote the following on 1/19/2006 1:38 PM: Isn't there an options tag that takes in a collection? Yes there is html:options and there is also html:optionsCollection Wouldn't that be more optimized and easier? It's just saves a little extra typing (I doubt any more 'optimized'),

Re: Be Careful though: was Re: Struts JSTL & EL

2006-01-19 Thread Rick Reumann
Rahul Akolkar wrote the following on 1/19/2006 3:30 PM: For such concerns ... ${fn:escapeXml(test)} is an option. is overrated in JSP >= 2.0, IMO. Just curious why is ${fn:escapeXml(test)} any better than value='${test}'/> ? -- Rick --

Call method before index.jsp is built?

2006-01-19 Thread David Thielen
Hi; I am 99% positive this is doable, but I can't find it anywhere. How do I get a method called before a page is built - and very specifically before the very first page (index.jsp) is displayed to a user? I want to see if we have a cookie that identifies them and if so, put their name in inde

Re: Call method before index.jsp is built?

2006-01-19 Thread Wendy Smoak
On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote: > I am 99% positive this is doable, but I can't find it anywhere. How do I get > a method called before a page is built - and very specifically before the > very first page (index.jsp) is displayed to a user? I want to see if we have > a cookie

RE: Call method before index.jsp is built?

2006-01-19 Thread David Thielen
Hi; I thought there was a way to have an action class get called before a page was rendered as well as when the form was submitted. Or something like that - but it could be clearly tied to each jsp page. Is my memory off? (I know I had a system in some old code where each page did a security che

Re: Call method before index.jsp is built?

2006-01-19 Thread Wendy Smoak
On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote: > I thought there was a way to have an action class get called before a page > was rendered as well as when the form was submitted. Or something like that > - but it could be clearly tied to each jsp page. That will happen automatically if you

Re: Forward After response.getOutputStream

2006-01-19 Thread Mike Darretta
I think your answer suffices for this time, but my original objective was to: (1) Execute a download of an output stream for a file built on the fly (2) Forward to another page indicating the download succeded. Mike P.S. Thanks for the posting advice...I thought I was posting to the entire li

Re: Struts JSTL & EL

2006-01-19 Thread Josh McDonald
What I mean is, can you use it inside third party (and your own) tags? Also, can you use it to get the result of a method that's not really a GETTER? Such as size() on a collection, even though there's no getSize() method? Cheers, -Josh -- "His comrades fought beside him, Van Owen and the re

struts/jsp security/access question

2006-01-19 Thread David Thielen
Hi; I have a page admin.jsp that if a user is not an admin, they should never see. I can make the standard way to get there be admin.do but that just invites a hacker to type in admin.jsp, so I still have to insure that requests for admin.jsp are redirected for non admin users. Each page (j

Re: Struts JSTL & EL

2006-01-19 Thread Michael Jouravlev
On 1/19/06, Josh McDonald <[EMAIL PROTECTED]> wrote: > What I mean is, can you use it inside third party (and your own) tags? Yes. > Also, can you use it to get the result of a method that's not really a > GETTER? Such as size() on a collection, even though there's no getSize() > method? No. Mi

Re: Struts JSTL & EL

2006-01-19 Thread Craig McClanahan
On 1/19/06, Josh McDonald <[EMAIL PROTECTED]> wrote: > > What I mean is, can you use it inside third party (and your own) tags? By "it" do you mean EL expressions? If so, the answer is yes. The tags don't have to know anything about this, because the JSP page compiler generates the code to eval

Re: struts/jsp security/access question

2006-01-19 Thread Leon Rosenberg
4. put all jsps under WEB-INF so they are NOT accessable via url. always link urls to actions and forward to jsps. Make a simply forward action (the only line: return mapping.findForward("success"); ) for jsp which do not need any preprocessing regards Leon On 1/19/06, David Thielen <[EMAIL PROTE

RE: struts/jsp security/access question

2006-01-19 Thread George.Dinwiddie
Why isn't your jsp page under WEB-INF? - George http://www.idiacomputing.com > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 5:14 PM > To: user@struts.apache.org > Subject: struts/jsp security/access question > > > Hi; > >

Re: Be Careful though: was Re: Struts JSTL & EL

2006-01-19 Thread Rahul Akolkar
On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Rahul Akolkar wrote the following on 1/19/2006 3:30 PM: > > > For such concerns ... > > > > ${fn:escapeXml(test)} > > > > is an option. > > > > is overrated in JSP >= 2.0, IMO. > > Just curious why is ${fn:escapeXml(test)} any better than valu

Re: Struts JSTL & EL

2006-01-19 Thread Josh McDonald
Cheers guys, much appreciated - sorry bout all the (possibly quite dumb) q's :) -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email:

RE: struts/jsp security/access question

2006-01-19 Thread David Thielen
Because none of the books and articles I have seen mention it??? Thank you - that is a very clean solution. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 3:36 PM To:

b-di messages and dir="RTL"?

2006-01-19 Thread David Thielen
Hi; Ok, I use a resource file for all text and then put it in the html page using c:out, etc. But, what about Hebrew & Arabic? They need to be marked with dir="RTL". I can make the message hi there but then I can't escape any text and have to make sure I have escaped things in my messages.

struts javadocs?

2006-01-19 Thread David Thielen
Hi; Are there javadocs for struts anywhere? All I can find is in the source .zip it has a bunch of xml files - but no html. I'm using my old struts javadocs from 18 months ago. Thanks - dave David Thielen www.windwardreports.com 303-499-2544

Re: struts/jsp security/access question

2006-01-19 Thread Dave Newton
Leon Rosenberg wrote: > 4. put all jsps under WEB-INF so they are NOT accessable via url. > always link urls to actions and forward to jsps. Make a simply forward > action (the only line: return mapping.findForward("success"); ) for > jsp which do not need any preprocessing > Or use the action m

Re: struts javadocs?

2006-01-19 Thread Dave Newton
David Thielen wrote: > Are there javadocs for struts anywhere? http://struts.apache.org/struts-doc-1.2.x/api/index.html > All I can find is in the source .zip it has a bunch of xml files - but no > html. That's because it's the source. Als0-Dave ---

Re: struts javadocs?

2006-01-19 Thread Wendy Smoak
On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote: > Are there javadocs for struts anywhere? All I can find is in the source .zip > it has a bunch of xml files - but no html. I'm using my old struts javadocs > from 18 months ago. What version are you using? The latest Javadoc for Struts Action

RE: struts javadocs?

2006-01-19 Thread David Thielen
Hi; I'm using 1.2.8 (latest release) and I can't find anywhere to download the javadocs. There are on the web at http://struts.apache.org/struts-doc-1.2.x/api/index.html so I'm covered but I prefer local cause it's a bit faster. Thanks - dave David Thielen www.windwardreports.com 303-499-2544

Re: struts javadocs?

2006-01-19 Thread Wendy Smoak
On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote: > I'm using 1.2.8 (latest release) and I can't find anywhere to download the > javadocs. There are on the web at > http://struts.apache.org/struts-doc-1.2.x/api/index.html so I'm covered but > I prefer local cause it's a bit faster. Unzip (or d

Problem with Struts Validator on machines without internet access

2006-01-19 Thread Bart Busschots
Hi, I'm trying to develop a Struts application on my laptop which spends quite a lot of it's time without net access. This should not cause any problems because the app it self has no need to access the net at all but it is. The problem occours when I try to start Tomcat while not connected

RE: struts javadocs?

2006-01-19 Thread David Thielen
Where is the war file found? I downloaded the lib & src .zip files and they don't have it. ??? - thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 5:01 PM To: Struts Users Ma

Re: struts javadocs?

2006-01-19 Thread Wendy Smoak
On 1/19/06, David Thielen <[EMAIL PROTECTED]> wrote: > Where is the war file found? I downloaded the lib & src .zip files and they > don't have it. The example apps, including struts-documentation.war, are part of the binary distribution, and are found in the 'webapps' directory. You can get 'st

Re: struts javadocs?

2006-01-19 Thread Josh McDonald
Also of course, if you have the source, simply run javadoc and the docs pertaining exactly to your version will be generated for you :) -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer

Re: [shale] Simple Clay example

2006-01-19 Thread Richard Wallace
Ok, let me try a simpler question. Does anyone have an example of a simple one page webapp using clay and the HTML view? It would be handy to have that available in the source repo so that users can try and consume different aspects of Shale a little at a time and come to grips with features

Re: Problem with Struts Validator on machines without internet access

2006-01-19 Thread Niall Pemberton
The DTD's are shipped in the Commons Validator jar - when the xml config file(s) are parsed (using Digester) local copies of the DTD (i.e. the ones in the jar) are registered and should be picked up and therefore it shouldn't need to go over the net to get them. This problem usually occurs when the

URL parameters parsed into a Map

2006-01-19 Thread Keith Fetterman
I need to parse the http parameters/values contained in a URL have them placed into a Map. I will then replace specific parameters and feed the Map to an tag. Is there a utility class in Struts that would do this? Or some other open source third party library that can do this? This is not

Re: [shale] Simple Clay example

2006-01-19 Thread Gary VanMatre
From: Richard Wallace <[EMAIL PROTECTED]> > > Hello, > > I'm trying to get a simple clay example up and running so that I can use > the full html view (which is similar to facelets, correct?). > They are similar but the differences is that Clay is based on a JSF component and can be used in

Re: [shale] Simple Clay example

2006-01-19 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > Ok, let me try a simpler question. Does anyone have an example of a > simple one page webapp using clay and the HTML view? The shale usecases has several Clay examples. The nightly is the most current. You can find it here: http://svn.apache.org

Re: URL parameters parsed into a Map

2006-01-19 Thread Michael Jouravlev
On 1/19/06, Keith Fetterman <[EMAIL PROTECTED]> wrote: > I need to parse the http parameters/values contained in a URL have them > placed into a Map. I will then replace specific parameters and feed the > Map to an tag. Is there a utility class in Struts that > would do this? Or some other open

Re: URL parameters parsed into a Map

2006-01-19 Thread Keith Fetterman
Dah. I feel like such an idiot. I didn't think to look in the servlet javadocs. Thanks a bunch. I really *appreciate* it. Michael Jouravlev wrote: On 1/19/06, Keith Fetterman <[EMAIL PROTECTED]> wrote: I need to parse the http parameters/values contained in a URL have them placed into a Map

RE: [OT] Utility to create DDL from a database

2006-01-19 Thread Ashish Kulkarni
Hi there is a export tool, but the problem it creates DDL sorted by table names, and it does not take into account any database relationships, i may have to go in manually and creates script.. for example there may be a table ABC which has a foreign key constraint with table XYZ. This database util

Re: [shale] Simple Clay example

2006-01-19 Thread Richard Wallace
Gary VanMatre wrote: I'll direct you to the shale usecase example instead of duplicating in this response but this is the minimum stack to use Clay. Added jars: * JSF archives (myfaces or RI) * Common-chains.jar * shale-core.jar * shale-clay.jar Web.xml * Common Chains – Loads a cou

error messages doesn't appear if validate is called programatically

2006-01-19 Thread Hakan . Barisik
Hi, I have started using struts recently. I don't want to use default validation checking so I changed struts-config.xml. . . 0 ) // forward to input page In auto validation case ( validate="true") error messages I configured appears on Input JSP but if validate="false" as I confi

Re: error messages doesn't appear if validate is called programatically

2006-01-19 Thread Paul Benedict
Hakan, You need to store the error messages in the request or session after you retrieve them: ActionErrors errors = form.validate(); if ((errors != null) && !errors.isEmpty()) { saveErrors(request, errors); return mapping.getInputForward(); } Paul

[OT?-ANN] Article on "Eclipse goes ServerSide - from RCP to RSP"

2006-01-19 Thread Wolfgang Gehner
I've just posted an article on a fairly new way to build web applications with Java (including Struts, in tandem with other technologies). The article is at http://www.infonoia.com/en/content.jsp?d=inf.05.07 It is also discussed at theserverside.com, and eclipsezone.com, since it also involves

Cannot create iterator for this collection

2006-01-19 Thread Tony Smith
Hi, I am using struts taglib. I have a object like public class myObject{ List myList; List getList(){ return myList; } ... } The myObject is send through aciton to the jsp. In my jsp, I have: ... ... But it complains that " Cannot create iterator for this collecti

fill combo box based onClick of previous combo box

2006-01-19 Thread R.Vijayaraghavan
Hello, I have an application where I have 3-4 combo boxes. After selecting a particular value from the first combo box, the second combo box should be filled with values from the database. Likewise for other combo boxes. How can this be implemented in Struts. Will this be feasible: Call form.sub