Re: Returning values from a BasicDynaBean in jsp

2003-08-07 Thread jack beany
From: Kris Schneider <[EMAIL PROTECTED]> Didn't like the JSTL Result suggestion, I guess ;-). As a JavaBean, Well personally I have no preference, just want something that works efficiently and cleanly :) The example you have had the query in the jsp, wheras I'm trying to stay away from anything

RE: How to add Java Script to a JSP page with struts tags

2003-08-07 Thread Rohit Aeron
Try onclick="javascript:validate();" regards Rohit -Original Message- From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:20 AM To: 'Struts Users Mailing List' Subject: RE: How to add Java Script to a JSP page with struts tags Hi, I have created a

Select Box and validation (plz help :)) (repost)

2003-08-07 Thread Khalid K.
- Original Message - From: "Khalid K." <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 4:26 PM Subject: Select Box and validation (plz help :)) (repost) > Any suggestion? please??? :) > > > I am submitting a form using "onchange" java

RE: how to pass a jsp variable to a javascript function

2003-08-07 Thread Steve Armstrong
Howdy, There are definitely a number of funky things in your code example. I'm not exactly sure what you're trying to do since your onchange attribute is calling a JavaScript function called "projectChange" which I don't see anywhere, but here are a couple of things to look out for: 1. I don't

RE: Struts Problem!!!!Urgent

2003-08-07 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Sridhar Kotagiri [mailto:[EMAIL PROTECTED] Sent: Friday, 8 August 2003 00:16 To: Struts Users Mailing List Subject: Struts ProblemUrgent Hi, I have a HashMap in my ActionForm bean.I am able to display

RE: [Q] Struts and date formatters

2003-08-07 Thread Bailey, Shane C.
You could think of it as a business logic function and do it (the date/String conversion)in the middle tier and pass it to the view already to go. It seems like the date format would be the same if you were printing it to a JSP page or a Swing GUI. If you ever had to support two or more front e

Re: N form items as fields

2003-08-07 Thread Adam Hardy
Hi Dave, you should look at indexed or nested tags with the iterate tag. hth Adam David Thielen wrote: Hi; I have a jsp page where I want to display N items where I get the N items from the database. I need to have an edit field with each item. Whats the best way to do this in struts? thanks - da

RE: risk of upgrading?

2003-08-07 Thread Slattery, Tim - BLS
> Can someone with a bit of in-depth Struts experience comment > on the risks of upgrading a project from Struts 1.0 to Struts 1.1? > Should my project work without any modifications? Are there any > issues I need to be aware of (changes in behavior and the like)? I just did this. I had a sligh

Tiles-EL ???

2003-08-07 Thread Jeff Caddel
Anyone know of a non-scriplet way to do what this jsp snippet is doing? <% String editPage = (String) pageContext.getAttribute("editPage"); %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Applet tree menu or using jsp/struts? URGENT !!

2003-08-07 Thread Vicky
Hello group, I have tree menu running in applet in one of my applications. Currently i am in the process of evaluating whether to continue with tree menu in applet or to develop tree menu using jsp, struts etc.? what are the pros and cons between these two options. Also i am looking for some e

Re: Allowing only POST for form submittal ????

2003-08-07 Thread Jason Lea
Hi Shane, I guess it is so they can have one servlet method per HTTP method The spec includes doGet(), doPost(), doPut(), doDelete(), doHead(), doOptions(), doTrave() HTTP/1.0 has doGet, doPut, doHead. HTTP/1.1 adds the others. -- Jason Lea Bailey, Shane C. wrote: Jason, That makes since ab

RE: Sample code to upload file with struts

2003-08-07 Thread Mark Galbreath
Would you like us to write the rest of your application as well? Hunter and Crawford, "Java Servlet Programming, 2d ed." (O'Reilly 2002). Mark -Original Message- From: Pierre Houdagba [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 6:59 PM To: 'Struts Users Mailing List' Subje

Re: struts, Dreamweaver, & Dreamweaver templates

2003-08-07 Thread David Thielen
No major problems - but I was worried I was going down a road that was going to be impossible - I figured it was better to ask first. thanks - dave - Original Message - From: "Stephen Brown" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, August

RE: Validator

2003-08-07 Thread Bailey, Shane C.
I don't think it is the formbean that is checked for isString() it is the data members of the formbean. Since it is http I guess there is only 2 choices: String and String[] and so the test determines how the validation for a value is to be done. Kinda goes back to that old question posted here

Re: Hindi i18n Iscii Font

2003-08-07 Thread Vineet Bhatia
If your doing Struts you gotta have a character encoding filter servlet. Try googling it. - vineet import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.Servle

initializing ActionForm from a session bean

2003-08-07 Thread David Thielen
Hi; If I want to initialize an ActionForm from a session bean, what's the correct way. Looking at it it seems to me that I want to tie the session bean to the session. However, reset passes a ServletRequest instead of a HttpServletRequest so there is no way to get the session to do a getAttribu

HashMap population with jsp form!!!!Urgent..........

2003-08-07 Thread Sridhar Kotagiri
Hi, I have a HashMap in my ActionForm bean.I am unable to populate with the form in the jsp page. can anyone help me regarding this.

RE: Drop down Boxes help

2003-08-07 Thread Rohit Aeron
I don't think you can specify different action for different options in html:select. But I can suggest ,if you are using javascript you can manipulate it on the basis of options. Regards Rohit -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, Aug

RE: Java Help

2003-08-07 Thread ansuman_behera
Zille, following would be the rough steps that you'd have to do for accessing from a normal java class... 1. set the "jdbc.drivers" property of the system to the full path name of the driver 2. Call the getConnection method of the DriverManager class by passing the URL of the database however i

[ANNOUNCE] StrutsDoc 0.3.1 Released

2003-08-07 Thread Nick
StrutsDoc 0.3.1 has been released and can be found here: http://sourceforge.net/project/showfiles.php?group_id=49385 This release fixes a few minor bugs and includes a Spanish translation of the user guide. The strutsdoc for the struts-example application has been updated and can be found at: h

Struts optimization

2003-08-07 Thread Laurent MARQUEZ
Hi, I m using tiles, but i would like to kwnow if it's possible to refresh only one page of the tiles layout. Thus, the browser should load only the data page(body) which has changed, And not all,footer, header, menu bar, etc... Is it possible to do with STRUTS, like the HTML frameset do? How

struts problem(Unable to populate the form in the jsp to ActionForm bean)

2003-08-07 Thread Sridhar Kotagiri
Hi, I have a Action form which contains an arraylist the array list adds beans which are called IpAddress(two String properties).I am able to display in the jsp page but when I submit this form it is unable to populate to the action form.

Re: Select and Option Tags

2003-08-07 Thread Sergey Smirnov
You can limit it with using style="width:". For example: However, some old browser versions, such as Netscape 4.5, do no support this style. "Silverio Wagner Silva(Secorp)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > People, > > Is there any way to limit

RE: Service Locator pattern useful if not using EJBs?

2003-08-07 Thread Yansheng Lin
It's really hard to tell without knowing what kind of struts-based web application you are designing. You might want to find out what service components you will lookup and/or create, and how often are these operations. Struts handles action dispatch pretty well. (On a side note, I am not sure

[Q] Struts and date formatters

2003-08-07 Thread Riaan Oberholzer
I am using the tag and for date fields (java.util.Date), I get the (rather ugly) full: Wed Aug 06 12:08:07 CEST 2003 I have tried to do: DateFormdat df = DateFormat.getDateTimeInstance(); SimpleDateFormat sdf = (SimpleDateFormat)df; sdf.applyPattern("-MM-dd hh:mm"); But it gets ignored

RE: Delete Validation -- with Vector displayed

2003-08-07 Thread Mike Jasnowski
Return an ActionError with a message parameterized to include the names of the entities, then on the JSP, render that errors collection. -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:08 PM To: 'Struts Users Mailing List' Subject: Delete

RE: Bean tag lib help

2003-08-07 Thread Vance Heredia
Thats my code I changed it as suggested and this was the error I got org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 51 in the jsp file: /files.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/tomcat-imageshed/wor

RE: Not getting javascript Popup on buttons

2003-08-07 Thread Yansheng Lin
Put an alert() in your validateRequired(). Maybe it's not getting called since it's a radio field... -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 11:06 AM To: 'Struts Users Mailing List' Subject: Not getting javascript Popup on buttons I have a f

RE: RE: validating a html:select box

2003-08-07 Thread Yansheng Lin
Pushing the limit, eh:). How hard is it to write your own two line JavaScript. Besides, since it's a select box(not a combo), all the options are assumed to be valid from the beginning, why there is an invalid option there:). -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED

Tiles Reload and View Action give a null pointer exception when using multiple Struts modules

2003-08-07 Thread Marcel Overdijk
Can anyone confirm this ? Kind regards, Marcel Overdijk

Re: Returning values from a BasicDynaBean in jsp

2003-08-07 Thread jack beany
From: Kris Schneider <[EMAIL PROTECTED]> I guess my previous example wasn't clearly formatted, but it certainly wasn't supposed to illustrate executing a query from a JSP. Here's a modified example: Java (e.g. an action): -- import javax.servlet.jsp.jstl.sql.Result; import

RE: Can I do multiple updates/inserts with one struts form?

2003-08-07 Thread Rohit Aeron
I would suggest you use nested beans Regards Rohit -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 7:14 PM To: [EMAIL PROTECTED] Subject: Can I do multiple updates/inserts with one struts form? I have a dynamic table with a list of en

RE: Validator

2003-08-07 Thread Yansheng Lin
It's not only limited to String[]. For me, it's more like a map. (Got to go home, too late now.:) --- In ValidatorUtil.java --- public static String getValueAsString(Object bean, String property) { Object value = null; try { value = PropertyUtils.getProperty(bean, proper

Cancel Button Not Working in 1.1

2003-08-07 Thread Natalie D Rassmann
Hi, I am trying to use the cancel button in Struts 1.1. It is not working The isCancelled(request) is always returnning false Can anyone help me? Natalie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Where in the Framework URI gets mapped to an Action Class

2003-08-07 Thread Kommineni, Sateesh (IndSys)
Hi, I would like to know how the Framework extracts the Path from the URL so that it can instantiate the corresponding Action Class for which the path specified in the config file .. Which class of the Framework takes care of this ?? Thanks in Advance Sateesh "THIS E-MAIL MESSAGE ALONG

Redirect option instead of findForward!!!Urgent

2003-08-07 Thread Anurag Garg
Hello All, I have created a page where i submit the data for saving it in the database. I have some hidden variables defined in the same page. After saving the data when my control comes in the action class I do mapping.findForward to the other page. The new page also contains some hidden variable

ActionForm Initialization

2003-08-07 Thread Kommineni, Sateesh (IndSys)
Hi All, Which class in the Framework initializes the ActionForms specified in the XML Config files.. When we declare an ActionForm for an Action, the Framework will automatically sets the values in the from submitted using the form and calls the validate() method . But which class in the

current year in JSP

2003-08-07 Thread Erez Efrati
I have a scriptlet in my JSP which I wish to rewrite using JSTL and tags and to get rid of the java code. How can I perform this? <% for (int i = 30; i < 90; i++) { %> <%=2003-i%>

RE: Still struggeling: howto get ActionForward to calling page

2003-08-07 Thread Kamholz, Keith (corp-staff) USX
This is definitely what I would do. And just to be more clear, I would copy that action mapping into as many new ones as you need. Just change the name and input page, then you should be all set. Also, if you don't specify the input page correctly, you can't return to that page if there are valid

Re: Help req urgently on file upload

2003-08-07 Thread Alok Tijoriwala
Hi, I think you are using the old one. Please use commons-fileupload.jar that comes with the 1.1 version. Alok --- bhanu sistla <[EMAIL PROTECTED]> wrote: > HI > I am using structs upload.war but i am not able to > deploy it. i am getting following error. > > java.lang.NoSuchMethodError >

RE: RE: Actions Best Practice

2003-08-07 Thread Erez Efrati
Yes David, it would work but it was not what Struts had in mind. I regard your solution as trick, a way around but not something I want to follow as development guidelines. Erez -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:54 AM

RE: Button labels and DispatchActions mix?

2003-08-07 Thread Alex Shneyderman
I guees if you want to assign the meaning to your form based on the context where you placed it, it might make some sence. Todor, you can probably create another action and extend it from your original action, where you would override getKeyMethodMap (). This will probably the least amount of wor

Internationalizing 100's of pages of text

2003-08-07 Thread Gary Kephart
I have a web site at http://www.pobox.com/~encyclopaedia_wot. It contains 100's of pages of HTML of mostly text. I'd like to migrate this to JSPs and use Templates/Tiles because: 1) I want to better standardize the layout 2) I want the content writer to not have to worry about anything but conten

RE: [Q] Struts and date formatters

2003-08-07 Thread Riaan Oberholzer
It is/was a known bug for WL 6.1 sp2. If you like more info on it, do a google search for "CR064391". A patch was realeased for this bug (CR064391_610sp2.jar) and it is fixed as of sp3. But we cannot upgrade or install patched, for a number of reasons. So, if you use WL 6.1 sp2 without patches, y

Re: Model and Business in Struts

2003-08-07 Thread Laurent PETIT
hi, expresso may hit the target. -- Laurent - Original Message - From: "Mehdi Bizhani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 8:15 AM Subject: Model and Business in Struts > > Hi, > > Please introduce me a Struts-compatible and complete framewor

RE: [OFF TOPIC] JavaScript + tag question

2003-08-07 Thread Mark Galbreath
You may be right - might have to use the .index property instead. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:19 AM To: Struts Users Mailing List Subject: Re: [OFF TOPIC] JavaScript + tag question I believe that document.forms[0].ele

RE: How to add Java Script to a JSP page with struts tags

2003-08-07 Thread Rohit Aeron
Hi Seshadhri Then you must be getting javascript error .just look at the bottom left corner of explorer & see what does it say .. Just mail me that error so that I can will tell you more ... Regards Rohit -Original Message- From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED] Sent: Th

RE: RE: validating a html:select box

2003-08-07 Thread Erez Efrati
I hope I am not the first one to push the limit :) because I don't think selection boxes are that rare :) -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:16 PM To: 'Struts Users Mailing List' Subject: RE: RE: validating a html:select box

RE: how to use requiredif

2003-08-07 Thread Kamholz, Keith (corp-staff) USX
It looks like you're just trying to make sue that the password field is filled in right? If so, all you need to use is the 'required' validation. Just replace requiredif with required, and get rid of the var section. This will make sure a password was entered. Is this what you want to do? - Keit

Re: confirm unsubscribe from struts-user@jakarta.apache.org

2003-08-07 Thread Caoilte O'Connor
On Tuesday 05 August 2003 13:46, [EMAIL PROTECTED] wrote: > Hi! This is the ezmlm program. I'm managing the > [EMAIL PROTECTED] mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > removed from the str

[OT] Performance Improvement

2003-08-07 Thread sreekant_gottimukkala
Any idea on the performance (turn-around-time) improvement achieved by using OSCache ? A rough range might do. Thanks Sreekant G. TCS AMBATTUR This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral Road TCS Chennai -

RE: uploadfile path

2003-08-07 Thread Daniel Massie
its only the original file's location that i require, i can't find any mention of how to aquire this in any online articles. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: 06 August 2003 16:24 To: Struts Users Mailing List Subject: Re: uploadfile path Folow the Struts

Re: Struts with Tomcat 4.1.27 ?? (YES)

2003-08-07 Thread David G. Friedman
> Do Struts works with Tomcat 4.1.27 ? Yes. I just saved my webapps struts-*WHATEVER* applications (and my tomcat-users.xml ids/passwords), erased my tomcat-4.1.24, installed 4.1.27, and started the new one in under 5 minutes time. My application, the struts example application, and a few til

RE: Date validation and format

2003-08-07 Thread Yansheng Lin
I think there is a trick you can perform with regard to this: > 2) Or is it possible in action read the value of the var named > datePattern in validation for particular form?? You can call your validate method in your Form.validate() initial when you populate the form. If the date forma

Re: Cannot find bean "XXX" in any scope - error

2003-08-07 Thread Nagendra Kumar O V S
hi, u don't have to declare any classes .. the framework pick it up from the classpath     is absolutely correct & should work for u...   BTW, FYI my brother-in-law is working in ur company   -- nagi ---Origin

RE: New Bie: How to apply styles to submit buttons created with struts tags

2003-08-07 Thread Seshadhri Srinivasan
Hi, I have a few submit buttons to which I wish to apply a style. I tried the following but I could not get the desired blue coloured buttons. LOGIN Please suggest what I should do to get blue coloured buttons. I also have the following *.css file with me. .edit { FONT-WEIGHT: bold;

Re: changing to JSTL

2003-08-07 Thread Adam Hardy
Wow. I like this EL, but I'm not sure it's a good thing unless they ban <%scripting%> in jsps. :) Alex Shneyderman wrote: test="${yourFormName.yourProperty ne 0}" -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 9:29 AM To: Struts Users Mail

Re: ResponseUtils.write and null properties

2003-08-07 Thread vellosa
Yeah, we found this too. When using WebLogic 6.1 our reset functions set all values to null, which then left them blank on the JSP. When upgrading to WebLogic 7.0 then suddenly were all output as "null" and not a blank field. Upon investigation this is the way it should be done and was a bug (we

RE: [OT] Retrieve all messages ever sent to this list

2003-08-07 Thread Mainguy, Mike
I believe on the apache site there is a "full mbox archive" or something like that. -Original Message- From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:01 AM To: Struts Users Mailinglist Subject: [OT] Retrieve all messages ever sent to this list Hi,

RE: Using Struts Validator on Map-backed ActionForms

2003-08-07 Thread Gandle, Panchasheel
Has anybody come up with any validations for map-backed fields what should go in ??? for <% for (int i=0;i<5;i++;) { %> <% } %> Thanks Panchasheel -Original Message- From: Cordingley, Charles [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 1:24 PM To: '[EMAIL PROTECTED]

RE: Using Struts Validator on Map-backed ActionForms

2003-08-07 Thread Gandle, Panchasheel
<% } %> my actual fieldname is phone but on jsp it would be value(phone0),value(phone1),value(phone2),value(phone3),value(phone4) if it was a single phone then its fine mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 5:52 AM To: 'Struts Users Mailing List' Subject: RE: Using Struts Va

Domain Value LookUp

2003-08-07 Thread sreekant_gottimukkala
Though this is not directly related to STRUTS, I was wondering if someone has come across something like below that can be integrated with STRUTS. Is anyone aware of any generic component for Domain Value LookUp. Domain Values might be based on one or more contexts. e.g list of states is sing

RE: Location of JSPs for TILES

2003-08-07 Thread Hibbs, David
> Must all files for a given Tiles definition be located in the same > folder? I am extending one layout where the base file is located in > /WEB-INF/jsp and the added file is located in /WEB-INF/jsp/proptype No, this shouldn't be a problem. I do the same thing--the only difference is that you

Re: Returning a result set

2003-08-07 Thread Reinhard
have a look at www.ibatis.com The db-layer is a pretty good counterpart to struts and very well documented. It's worth to look at (I'm not sponsered by ibatis) cheers Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: Redirect option instead of findForward!!!Urgent

2003-08-07 Thread Anurag Garg
Hi Rohit, Could u please be more elaborate on your given solution. I am still not able to get through the solution. Anurag Garg -Original Message- From: Rohit Aeron [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:37 PM To: Struts Users Mailing List Subject: RE: Redire

uploadfile path

2003-08-07 Thread Daniel Massie
I am trying to upload a file using html:file which is received as a FormFile, the problem is I need to find out this files absolute path. Hwo can I retrieve this information? Thanks Daniel - To unsubscribe, e-mail: [EMAIL PROTEC

RE: Returning a result set

2003-08-07 Thread Mehta, Chirag (IT)
Thanks for that. So what would be the best way of displaying such data on a JSP page? Would logic iterate be ok for such large amounts of data? -Original Message- From: Mehta, Chirag (IT) Sent: 07 August 2003 09:49 To: [EMAIL PROTECTED] Subject: Returning a result set Hello, I am de

RE: How to use ActionError with two keys?

2003-08-07 Thread Mike Jasnowski
The name of the host would presumably be available from the actionform, or some bean in your action. Then you would create an ActionError like this: new ActionError("errors.required",hostName); I'm not sure I understand why the host name, which seems to be a variable would be represented as a k

RE: changing to JSTL

2003-08-07 Thread Alex Shneyderman
test="${yourFormName.yourProperty ne 0}" > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 9:29 AM > To: Struts Users Mailing List > Subject: changing to JSTL > > Can anyone give a quick snippet to show how to replace the > tag with the

RE: [OT] - [TOPIC] - [VOTE]

2003-08-07 Thread message message
I have noticed that this list alone has more postings then the all the Sun mailing postings put together ? Why do you think that is the case ? From: "James Mitchell" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED