How to extract columnNames values

2004-06-10 Thread Indra Gunawan
Dear Hibernate Users, I want to write a component or hopefully find one if there is any that can create a Swing table model based on query results . I could achieve this using resultset metadata (jdbc brute force way) . And I want to use Hibernate to do the same . But the difficulty is Hibernate

More transparency into the JSTL Expert Group spec work

2004-06-10 Thread Pierre Delisle
JSTL users, Please note that project 'jstl-spec-public' has just been launched at java.net. The goal is to make as transparent as possible the work being done on the JSTL spec. More details in my blog at http://weblogs.java.net/pub/wlg/1405. Thanks, -- Pierre -

Steven Lock/ffm01/aps ist außer Haus.

2004-06-10 Thread Steven . Lock
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am 01.07.2004. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. Während meiner Abwesendheit werde ich von Peter Eimann vertreten. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for th

RE: Request object

2004-06-10 Thread Naresh Sharma
Title: RE: Request object I got the fetching scheme   Its       But other problems remains, how to tell jsp:include tag that pick the actual value from resource bundle for value="${global.commandinformation.title1}" />     From: Naresh Sharma Sent: Friday, June 11, 2

RE: Request object

2004-06-10 Thread Naresh Sharma
Title: RE: Request object HI Bill, I am sorry I didn't get it. Anyway let me tell you the scenario. I am passing parameter from my main jsp file to include jsp using the following scheme.     First thing, I am not sure if any Struts tag is there for above statement. Using fol

RE: Request object

2004-06-10 Thread Naresh Sharma
Title: RE: Request object I am displaying this parameter value in HTML -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 11, 2004 1:31 AM To: Struts Users Mailing List Subject: Re: Request object What are you trying to do based on the paramet

Re: hidden checkboxes

2004-06-10 Thread Niall Pemberton
Same answer as your other question except use instead of Using logic iterate Using JSTL... Niall - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 11, 2004 2:28 AM Subject: hidden checkboxes > Is there a way to render

hidden checkboxes

2004-06-10 Thread chris . cranford
Is there a way to render a portion of a collection (multibox) as hidden input tags instead of rendered checkbox input tags? thanks chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: Multibox/LabelValueBean Input Forms -- Paged Input

2004-06-10 Thread Niall Pemberton
The logic iterate tag has "offset" and "length" attributes which you can use to control display subsets to a collection/array. So if you wanted to show the second page of 10 If you are using jstl then then tag has "begin" and "end" attributes N

Multibox/LabelValueBean Input Forms -- Paged Input

2004-06-10 Thread chris . cranford
I have found an example on the net where a LabelValueBean array and a string array are encapsulated inside a custom ActionForm object giving the user the ability to select checkboxed values and store the "values" behind the scene with labeling each checkbox with the LabelValueBean's label propert

Re: A Select tag nested inside an iterate tag and Form that contains a String[] how do I do it?

2004-06-10 Thread Niall Pemberton
Your iterate will store each element in your userIds[] as a page scope variable with the name "foo". So the selects need to point to that. However the tag either needs to point to a bean's property (rather than a String) or have its value attibute set. If you're using jstl you could set the value

Re: Struts, War files, and Weblogic

2004-06-10 Thread Erwin Cabral
will you post a copy of your struts-config.xml file? I suspect there's something missing on it. On Thu, 10 Jun 2004 16:44:29 -0400, David Meyer <[EMAIL PROTECTED]> wrote: > I have a war file that I am trying to deploy on Weblogic 8.1. I am able to > deploy and access jsp's within the WAR file. H

A Select tag nested inside an iterate tag and Form that contains a String[] how do I do it?

2004-06-10 Thread Mark Palmer
I have a In my jsp I have a Form object which contains String[] userIds which is correctly populated with a list of userIds I want to display each of this in a list of select boxes (one select box for each element of String[] userId) I have the following code in my jsp

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-10 Thread David Friedman
Martin, The tile was defined in her included data with dot notation not slashes. I use dot notation myself so I know she's not crazy. Why did you suggest using slashes in the forward path when she has a tile defined with dots/periods? Regards, David -Original Message- From: Martin Gaint

RE: Struts, War files, and WebLogic

2004-06-10 Thread Mick . Knutson
Sounds like you have a security realm on WebLogic that is causing this. Is this a fresh install? -Original Message- From: David Meyer [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 1:44 PM To: [EMAIL PROTECTED] Subject: Struts, War files, and Weblogic I have a war file that I am

File Upload Problem

2004-06-10 Thread Rakeesh_Shringi
Can any one please look into the following error and tell me why i am getting that. I am using strust upload in weblogic Jun 10, 2004 2:41:47 PM org.apache.struts.upload.CommonsMultipartRequestHandler handleRequest SEVERE: Failed to parse multipart request org.apache.commons.fileupload.File

Struts, War files, and Weblogic

2004-06-10 Thread David Meyer
I have a war file that I am trying to deploy on Weblogic 8.1. I am able to deploy and access jsp's within the WAR file. However, when a Struts action is requested, i.e. http://server/someAction.do, I get the following NullPointerException: java.lang.NullPointerException at org.apache.struts.act

Re: Struts scalability and benchmarking

2004-06-10 Thread Bill Siggelkow
Personally, I think this would be more a function of (1) the application server/container that you are using (Tomcat/JBoss/WAS/...) and (2) the hardware/clustering etc. Also, you need to do some additional analysis on expected number of users, estimate how much data will be held in the session,

Re: Request object

2004-06-10 Thread Bill Siggelkow
Use -- this will create a page-scoped variable and a scripting variable. Complete details can be found at: http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter Naresh Sharma wrote: HI, In one of my include JSP I wish to fetch a particular request attribute which was set by main

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
Well, with most of the applications I have written, all or part of the form (sometimes hidden fields) need to be populated before the form is displayed. I prefer to keep my forms fairly stupid value objects as opposed to using smart getters and setters in the ActionForm that access the back-end

File Upload using struts in weblogic

2004-06-10 Thread Rakeesh_Shringi
Hi, Can any one please help me with the following error Jun 10, 2004 2:09:24 PM org.apache.struts.upload.CommonsMultipartRequestHandler handleRequest SEVERE: Failed to parse multipart request org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed.

Re: Is it bad when beans don't serialize?

2004-06-10 Thread Ron Grabowski
I think I've tracked down my offending code to one of the properties of my bean. getSiteList() uses iBatis to get information out of our database. Do I need to do anything special in terms of making those supporting calls/classes Serializeable? public LabelValueBean[] getSites() {

RE: Is it bad when beans don't serialize?

2004-06-10 Thread Linck, Ken
Don't know if this is a "good" or "bad" answer. Serialization is extremely important to us because of the clustering solution we use. We have to ensure objects stored in session implement the serializable interface so each machine in the cluster can stay in synch with each other and they do that

RE: Validation of dynaActionForm too early

2004-06-10 Thread Avinash Gangadharan
I have a question that I always thought of for such situations. It is adviesd to have 2 action mappings as Bill suggests for such situations, one that sets up the form with validate=false And the next that handles the form POST. Why is that?. In my ActionForm I look for a condition which tells me i

RE: Passing parameter : include

2004-06-10 Thread Avinash Gangadharan
using JSTL: HTH Avinash -Original Message- From: Naresh Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 10:13 AM To: Struts Users Mailing List Subject: Passing parameter : include HI, Please let me know equivalent struts tag,... I guess its bean:

Re: Request object

2004-06-10 Thread kkamholz
What are you trying to do based on the parameter?

Is it bad when beans don't serialize?

2004-06-10 Thread Ron Grabowski
A few days ago someone posted code to calculate the size of a user's session (very helpful! thank you). According to that code's serializiableTest method, the first version of the SearchForm bean below serializes fine while the second doese not. I thought as long as a no argument constructor was p

Do I have to use the html:form tag in order to automatically populate the form from a formbean?

2004-06-10 Thread hqfz
Hi, I want to use Struts to automatically populate the formbean data to the user's form. It seems that I have to use the html:form tag? Then I need to specifiy an "action" within the tag? But if I want to define this tag in a tiles template, then the action needs to be different for each differen

Re: how to check if html:errors will display anything

2004-06-10 Thread James Neville
Much better, good one Rick. Thanks everyone. James. Rick Reumann wrote: Would this work for you with JSTL? You probably want to throw in a test for not empty also. .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Struts scalability and benchmarking

2004-06-10 Thread Ashu Jaiswal
Hi, Just wondering if there have been any scalability and benchmarking studies done on struts. I am trying to figure out if struts would scale out well if the number of users in a system grew rapidly, starting from a small user base. I would appreciate any comments, suggestions or pointers. thank

RE: Passing parameter : include

2004-06-10 Thread Ram Venkataswamy
You can check this http://jakarta.apache.org/struts/userGuide/struts-bean.html but could not figure out solution for your problem :-( V.K.Ram www.m7.com NitroX for Struts -Original Message- From: Naresh Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 10:13 A

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
Set validate="false" on the Action that forwards to the JSP containing the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the action that processes the form. Tom Ansley wrote: Hi all, I am trying to use a dynaActionForm. The problem I am having is that when a user requests an act

RE: Validation of dynaActionForm too early

2004-06-10 Thread Wendy Smoak
> From: Tom Ansley [mailto:[EMAIL PROTECTED] > How do I go about getting it so that the first time the > action is called the validate() method is not called? http://jakarta.apache.org/struts/faqs/newbie.html#avoidValidate I use LookupDispatchAction so I don't have separate actions. Instead, i

Validation of dynaActionForm too early

2004-06-10 Thread Tom Ansley
Hi all, I am trying to use a dynaActionForm. The problem I am having is that when a user requests an action which has a dynaActionForm attached to it the first page the user gets from the action is a page which shows all the errors that the user needs to correct. Basically the form is being va

Request object

2004-06-10 Thread Naresh Sharma
HI,   In one of my include JSP I wish to fetch a particular request attribute which was set by main jsp page     <% HttpServletRequest httpRequest = (HttpServletRequest)request; String header     =  httpRequest.getParameter("header");   %>   Right now I am do

Passing parameter : include

2004-06-10 Thread Naresh Sharma
HI,     Please let me know equivalent struts tag,… I guess its bean:include but I am not sure how to pass parameters(struts equivalent of jsp:param) to this.   Can you please suggest good online resource on struts tags.             Regards naresh -

I am stuck in file Upload

2004-06-10 Thread Rakeesh_Shringi
Hi, I am getting the following error while I am using struts file upload. org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. EOF after reading only: '0' of: '2227' promised bytes, out of which at least: '0' were already buffered at org.apac

Struts in WAS 5.1

2004-06-10 Thread Alan Owen
I've just installed a simple struts application, from WSAD to WAS5.1. Whe I try to post a request, it fails with a page can not be found. Does anybody have any ideas ? Seems like a problem with the ActionServlet, or the *.do mapping to the ActionServlet. Best Regards Alan

RE: Dynamically creating URLs w/o request?

2004-06-10 Thread Frank Zammetti
Seems like a lot of people are asking a very similar question the past few days, including myself! :) One POSSIBLE approach is to creats a Struts plug-in. In that you can get access to the ServletContext through the ActionServlet reference that is passed in by Struts. I THINK that will give y

Dynamically creating URLs w/o request?

2004-06-10 Thread Ken Pelletier
I have a struts application that makes use of an email service layer. The email service provides a merge facility (via Velocity) and a delivery facility (via JavaMail). Typically, the application invokes the mail service within a struts action, where it has access to the request to get the rel

RE: html:img Tag Problem

2004-06-10 Thread Ram Venkataswamy
Hi You are missing to close the html:img tag (The tag "html:img" should end with "/>".) Empty tags: tags do not have Body - like or Non empty tags : tags with body tag Untitled Document V.K.Ram www.m7.com NitroX for Struts -Original Message- From: Caroline Jen [mailto:[EMAIL PROT

Re: getting a random number with JSTL?

2004-06-10 Thread Ron Grabowski
http://tinyurl.com/yqv2v http://jakarta.apache.org/taglibs/doc/random-doc/random-1.0/index.html " The Random tag library creates random strings and random numbers. You may specify a set of allowable characters as well as the length for randomly generated strings. You may specify a range of allowa

Re: HTML pages convert to Struts/JSP pages

2004-06-10 Thread Bill Siggelkow
Struts console allows you to view in a graphical format the the Struts configuration XML files. To do what you want to do I would use the following step-by-step process -- forgive me if you have already performed some of these steps. 1. Read the Struts User Guide 2. Read over the Struts tags --

RE: Application Resources Question

2004-06-10 Thread Ciaran Hanley
Thanks for your replies, Setting the filter did the trick CH -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 16:12 To: Struts Users Mailing List Subject: RE: Application Resources Question >> >help.info = First sentence of help. Second sentence Thir

RE: Application Resources Question

2004-06-10 Thread Joe Germuska
>help.info = First sentence of help. Second sentence Third etc... The tag is coming out as text on the page and in the source it is translated as
This is a side-effect of using bean:write or c:out. Both apply filtering to protect you when you use literal values which have special mea

Re: Application Resources Question

2004-06-10 Thread Niall Pemberton
My bet is its the way you are displaying the messages - are you using and ? If so set filter="false" on the tag. Niall - Original Message - From: "Ciaran Hanley" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, June 10, 2004 3:10 PM Subject: RE

RE: Application Resources Question

2004-06-10 Thread Danilo Gurovich
Can't you use "" ? Setting your filter attribute to true or false will change the rendering of HTML tags. Danilo Gurovich Manager, Web Development LowerMyBills.com [EMAIL PROTECTED] 2401 Colorado Ave., 2nd Floor Santa Monica, CA 90404 (310) 998-6412 -Original Message- From: Ciaran

RE: Pluggable User Security Framework

2004-06-10 Thread Wang, Yuanbo
No experience with this, but maybe worth a look. http://sourceforge.net/projects/jguard Thanks, Yuanbo -Original Message- From: Amin Lalji [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 9:55 AM To: 'Struts Users Mailing List' Subject: Pluggable User Security Framework Hello

RE: Downloading a file from an Action class.

2004-06-10 Thread Wang, Yuanbo
ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); ps.print(new String(returnStr)); ServletOutputStream sos = response.getOutputStream(); baos.writeTo(sos); sos.flush(); sos.close(); Then return null ActionForward in your action method. Thanks, Yuan

RE: Application Resources Question

2004-06-10 Thread Frank Zammetti
Hmm... Maybe someone smarter than me can say for sure, but I'd be willing to bet that ActionMessages can be textual messages only. This would seem to be what your experience indicates. One thing you could do is set your messages as attributes of your ActionForm, then display them from there wi

Re: [OT] getting a random number with JSTL?

2004-06-10 Thread Kris Schneider
Not directly. If you're using JSP 2.0, you can create an EL function to proxy access to java.util.Random: <%@ taglib prefix="rand" uri="http://dotech.com/random"; %> ${rand:nextInt(random, 10)} ${rand:nextDouble(random)} Another approach would be to create a JavaBean to proxy access to Random:

RE: Application Resources Question

2004-06-10 Thread Ciaran Hanley
Thanks for your reply. I'm using struts 1.1. I'm retrieving the values through an action class. The option value is passed from a jsp and the class looks up the corresponding resource. For example somePage.jsp?q=info will look up the help.info resource in the ActionClass ActionMessages messages

Pluggable User Security Framework

2004-06-10 Thread Amin Lalji
Hello All, Just wondering if anybody has come across an Open Source Pluggable User Authentication Frameworks that integrates well with struts... nothing fancy... just user login/password, tombstone information, group levels etc... Thanks

RE: Application Resources Question

2004-06-10 Thread Frank Zammetti
I just tried this, and the get rendered properly and I get linebreaks. What version of Struts are you using? What code is in your JSP to display the message resource? From: "Ciaran Hanley" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts User Mailing

RE: Single ActionForm accross multiple Actions

2004-06-10 Thread Frank Zammetti
That's good info, thank you! I was suspecting this was an issue that arises in a distributed environment and probably isn't quite as critical on a single server. I think the thought of keeping session as small as possible is ALWAYS a good idea, but my suspicion is that it only really becomes v

getting a random number with JSTL?

2004-06-10 Thread Axel Seinsche
Hi all, I know this is not a JSTL list, but maybe someone can tell me, if there is a possibilty to get a random number with a JSTL tag. Best would be to have min and a max value. If this doesn't exist, I think about wrtiting such a tag for me. But I don't have to do this, if it still exists. ;-)

Application Resources Question

2004-06-10 Thread Ciaran Hanley
Hi, I am trying to format some text so that it appears on separate lines so I am using the tag in my ApplicationResources.properties file. help.info = First sentence of help. Second sentence Third etc... The tag is coming out as text on the page and in the source it is translated as

RE: Downloading a file from an Action class.

2004-06-10 Thread Frank Zammetti
The problem I think is that you are never writing your output to the Response object. I'm guessing you think that setting the filename in the header as you are doing will be sufficient, but it's not. Try something along these lines: ServletOutputStream out = response.getOutputStream(); ba.wri

Re: Downloading a file from an Action class.

2004-06-10 Thread Niall Pemberton
Miquel, All you are doing is writing out a file on your server and then sending back an empty response to the user - if you want to download the file, you need to write it out to the response. Try creating your file by writing it to a ByteArrayOutputStream, rather than FileOutputStream ByteAr

Downloading a file from an Action class.

2004-06-10 Thread DGraham
Return Receipt Your Downloading a file from an Action class. document :

RE: How to Find Index Value

2004-06-10 Thread Nicholas L Mohler
The interesting thing is that you're not specifying a "name" attribute for your select tag. Will the page compile correctly and render accurate results? I would think you would have name="mySpeciality" as part of the select tag. If you were using "mySpeciality" as the name value, then the

Downloading a file from an Action class.

2004-06-10 Thread Miquel Angel
Hi! I try to download a file from an action class to the user PC. That's what I do in the action class: String Path = "C:" + java.io.File.separator; //Location of the file String FileName = Path +

RE: [OT] Expresso

2004-06-10 Thread Pilgrim, Peter
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] > > > -Original Message- > > From: Andrew Hill [mailto:[EMAIL PROTECTED] > > > > > Any Expresso users out there? > > Id be interested in hearing your comments and evaluation of > > this framework. > > > > It uses Struts as the basis for

Re: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-10 Thread Martin Gainty
Regards, Martin - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 11:29 PM Subject: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character > I am using "tile". When I try to display a JSP page, > I

RE: How to Find Index Value

2004-06-10 Thread Srinivas Rao
Hi Nick, I am able to get the indexId Using IndexId Attribute in iterate tag but i am asking How to find the particular select box name from Iteration tag. For Example Iterate tag contains 6 select list boxes and now i am find out the particular select box name from the iterate tag.

RE: How to Find Index Value

2004-06-10 Thread Nicholas L Mohler
Not having any information about what you're trying to do, its hard to give you an answer. I think that your answer will start with using the indexId attribute on the the iterate tag. Where the answer goes from there depends on what you're doing. Nick |-+---

Format a date with MessageResources depending on the Locale

2004-06-10 Thread user_struts
Hi, i want to format a date with the message ressources bundle depending on the locale. Is there a possibilty to do that? I found something like this app_de.properties welcome.message=bla {0] blub {1,date,mm:HH dd.MM.} app_en.properties welcome.message=bla {0] blub {1,date,HH:mm dd-MM-y

RE: How to Find Index Value

2004-06-10 Thread Srinivas Rao
Hi , I am able to get the index but i am asking How to find the particular select box name from tag. For Example Iterate tag contains 6 select list boxes and now i am find out the particular select box from the iterate tag. How to find out select Box . Thanks for

RE: How to Find Index Value

2004-06-10 Thread terry Highfield
Hi Srinivas, The way I solve this is to use the following code in the Action - but true I have only used indexed with buttons, the principle should be the same though. for (int i=0; i } Hope this helps, Terry From: Srinivas Rao <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL P

RE: How to Find Index Value

2004-06-10 Thread Satish Kataria
Use the indexId attribute from the nested:ietrate tag Thanks, Satish -Original Message- From: Srinivas Rao [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 2:18 PM To: Struts Users Mailing List Subject: How to Find Index Value Hi Friends, I am using tag. Here is the code i a

How to Find Index Value

2004-06-10 Thread Srinivas Rao
Hi Friends, I am using tag. Here is the code i am writing What my problem is, how to get the index of select list in the tag ... I am able to getting the select lists but i am not getting the index of select lists. Please Help me .. Thanks

RE: HTML pages convert to Struts/JSP pages

2004-06-10 Thread Heligon Sandra
One person said me that it could be possible to use Struts Console. Has soemone already used this tool to do that ? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 09 June 2004 23:03 To: Struts Users Mailing List Subject: Re: HTML pages convert to Struts/JSP pages well

[ANNONCE] jGuard : JAAS for J2EE

2004-06-10 Thread charles gay
jGuard v0.50 released! i am pleased to annouce the first release(v0.50) of the java security library called jGuard(http://sourceforge.net/projects/jguard/). this library is build on top of jaas, for J2EE web applications. his goal is to provide for webapp developers, an easy way to manage authent

RE: Single ActionForm accross multiple Actions

2004-06-10 Thread Jesse Alexander (KXT)
As far as I know... The recommendation to keep the session below the 4-5 kB limit comes from clustering. When you build a cluster for your webapp and specify "session failover", meaning that a session should be taken over by a running instance in the cluster if the original instance crashes, the