Custom types and select lists

2010-04-19 Thread Lance Hill
('button.label.submit')}/ /s:form /body Suggestions, corrections, pointers, or links to examples/tutorials of how to do this properly would be greatly appreciated. Regards, Lance Hill

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-17 Thread Lance Hill
the authenticated user from Spring Security for use in an Action Try: SecurityContextHolder.getContext().getAuthentication().getPrincipal() -Original Message- From: Lance Hill [mailto:la...@baldhead.com] Sent: Tuesday, March 16, 2010 5:15 PM To: 'Struts Users Mailing List' Subject: Getting

SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
I am trying to get access to the currently logged in user, but when I call SecurityContextHolder.getContext().getAuthentication(), the Authentication returned is null. I am assuming the user is logged in since they have access to the secure page I am testing, but I don't know how to tell for sure

RE: SecurityContextHolder.getContext().getAuthentication() returning null

2010-03-17 Thread Lance Hill
, March 17, 2010 11:52 AM To: Struts Users Mailing List Subject: Re: SecurityContextHolder.getContext().getAuthentication() returning null 2010/3/17 Lance Hill la...@baldhead.com: Any hints about why SecurityContextHolder.getContext().getAuthentication() would return a null? Spring version

Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
I need to access information about the currently logged in user. I don't think putting the user into the session during login is how it is supposed to be done, but I have not found examples of how to get access to the current user from Spring/Spring Security. Can someone please provide a link or

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
the authenticated user from Spring Security for use in an Action What mechanism are you using to handle authentication/authorization? -Wes On Tue, Mar 16, 2010 at 5:14 PM, Lance Hill la...@baldhead.com wrote: I need to access information about the currently logged in user. I don't think putting

RE: Getting the authenticated user from Spring Security for use in an Action

2010-03-16 Thread Lance Hill
using spring-security 2.0.4. -Wes On Tue, Mar 16, 2010 at 5:42 PM, Lance Hill la...@baldhead.com wrote: I have Spring Security set up to use CasAutheticationProvider to provide a UserDetails object. I did find an example that uses the SecurityContext to obtain an Authentication object

Struts + Spring 3

2010-03-09 Thread Lance Hill
the struts-spring-plugin 2.1.8 and when I started to implement spring security, I used version 3 which requires spring version 3, but the plugin relies on spring 2.5.6. Thank you, Lance Hill

Single Sign On And Spring Security

2010-02-25 Thread Lance Hill
and a Wordpress site. Thank you, Lance Hill

Re: How to allow to download several files in a zip in Internet Explorer

2008-10-14 Thread Lance Java
Try zos.flush() instead of close() It is not your responsibility to close the servlet output stream, it is the container's. 2008/10/13 Ariel [EMAIL PROTECTED] Hi Everybody: I 'm using struts 1.2 version, in my web application I have a chart where the user can add several files that are

Old tiles site

2008-10-14 Thread Lance Java
told me this first thing. Cheers, Lance.

Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
of date and haven't found any reference to tiles2 struts1 integration. Thanks in advance, Lance.

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
://tapestry.apache.org/tapestry5) each to their own :) 2008/10/13 Martin Gainty [EMAIL PROTECTED] Good Morning Lance I would start here http://www.jajakarta.org/struts/struts1.2/documentation/ja/target/userGuide/struts-tiles.html Any reason for your optioning against Struts2.x? Martin

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
2. Use (and probably fix) the Struts 1/Tiles 2 plugin: This is what I'm after... thanks! Spring 2.5 has an integration layer to Tiles 2: Yep... that's the easy bit :) Thanks, Lance. 2008/10/13 Antonio Petrelli [EMAIL PROTECTED] 2008/10/13 Lance Java [EMAIL PROTECTED]: Is it possible

Re: Multiple upload using Struts 1.0

2007-05-30 Thread Lance
You should be right if you implement the 4 indexed bean methods on your form. @see http://java.sun.com/j2se/1.4.2/docs/api/java/beans/IndexedPropertyDescriptor.html#IndexedPropertyDescriptor(java.lang.String, java.lang.Class) Here is an example if your property holding the files is called

Re: RE interceptor call

2007-05-24 Thread Lance
http://translate.google.com/translate_t?langpair=fr|en Is just the usual disclaimer etc apart from the link sudeepj2ee wrote: HI I could not understand the language pls can u communicate in english, I have seen the link posted by you but the functionality what i want is calling the

Re: Best practice - Wizard flow

2007-05-24 Thread Lance
Why not draw all 3 pages but hide 2 of them and javascript the next page on and off. All pages inside the same form, last page submits. Charbel Abdul-Massih wrote: I am developing a wizard type flow with 3 pages in the wizard... We'll call them page 1, page 2, and page 3... I need

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
param name=expression[0-9]*(\.[0-9]+)?/param Paolo Beccari wrote: --- Paolo Beccari [EMAIL PROTECTED] wrote: field-validator type=regex param name=expression[0-9]/param message key=requirednumber/ /field-validator /field /validators --- Dave Newton [EMAIL PROTECTED]

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
Ah... pls ignore Paolo Beccari wrote: param name=expression[0-9]*(\.[0-9]+)?/param Hi Lance, as already established (see previous posts), it is not a matter of regular expressions. The matter is: the variable in the Action is a Long (and MUST be a Long). The regex validation does

Re: JSP pre-compile question

2007-05-23 Thread Lance
This might also be because you are not specifying heights (and widths) for images. If you have any other static widths heights (menu area, header area etc) you should specify them too. Lance. Al Sutton wrote: P.S. If you're considering pre-compiling, the only thing you'll loose is the lag

Re: JSP pre-compile question

2007-05-23 Thread Lance
it locally on Weblogic 9.2 and Java 5... I doubt it's a pre-compile issue now because the slowness and streaming-like rendering is experienced on every request, not just the first... Any other ideas??? Thanks, Charbel -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday

Re: OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?

2007-05-22 Thread Lance
Firstly, I hope you are only using request scope for these forms. Session scope would kill your application. Have you tried experimenting with the JVM options? (http://blogs.sun.com/watt/resource/jvm-options-list.html) In particular -Xms (initial Java heap size) and -Xmx (maximum Java heap

Re: Struts2 DWR parameter issue

2007-05-22 Thread Lance
You could use jsp tags to create a hidden template row. Client side you can clone the template row using dwr.util.cloneNode() then tweak the appropriate bits. newtostruts struts wrote: I'm trying to use DWR with Struts2. The problem is when I'm trying to build the row of a table with a a

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Lance
You could forward rather than redirect. Another option is to use flash scope which has been discussed on this list previously. My understanding of this is that a filter manages a map on the session and requests have access to attributes added by the previous request. I have never implemented

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Lance
I am saying the standard struts tags do check session scope if scope=session or no scope is provided, so it's probably a bug in your code. Nuwan Chandrasoma wrote: Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Message - From:

Re: Populate two fields with one value

2007-05-18 Thread Lance
Do you have the approptriate getters and setters? eg action.getAcc().setFirstName() action.getAcc().setLastName() Mansour wrote: I tried it. It's not working either. Guillaume Carré wrote: 2007/5/18, Mansour [EMAIL PROTECTED]: how to populate 2 fields in my action with one value ? for

Re: Status of Tiles without Struts

2007-05-18 Thread Lance
I have used sitemesh in the past http://www.opensymphony.com/sitemesh/ This is a filter that intercepts the html on the way out, parses it then decorates it with a header, menu etc. etc. lightbulb432 wrote: Great, thanks! Out of curiosity, what are the alternatives to Tiles for JSP

Re: url, fill collection

2007-05-15 Thread Lance
You could use a lazy list and a factory to create your empty person objects. private List persons = org.apache.commons.collections.list.LazyList.decorate(new Vector(), new InstantiateFactory(Person.class)); Cheers, Lance. Jaan Tark wrote: problem solved, ignore gonna write the problem

Re: url, fill collection

2007-05-15 Thread Lance
java.util.Set does not guarantee that the order of it's elements remain constant and does not provide set(int,Object) or get(int) methods. Use a List or an array in the web tier and perhaps convert to a set in validation / middle tier. Cheers, Lance. Jaan Tark wrote: continues so i can

Re: session is not destroyed

2007-05-15 Thread Lance
HttpSession.invalidate() will remove all attributes from the session and consequent calls to getAttribute() on an invalidated session will cause an IllegalStateException. It could be that an attribute with the same name is in another scope (page, request or application) and is being picked up

Re: hashmap

2007-05-09 Thread Lance
, patternid))); In your jsp you can get it by html:text name=bean property=hashMap(7) / @see http://struts.apache.org/1.x/struts-taglib/indexedprops.html Cheers, Lance. jalal udeen wrote: hi all how to retrieve values from the HashMap i have set it as *hashMap*.put

Re: AW: Good JScript lib for disabling browser toolbars and good integration with Struts?

2007-05-04 Thread Lance
This should do what your after window.toolbar.visible = false; window.menubar.visible = false; Check out http://developer.mozilla.org/en/docs/DOM:window for more info. Peter Neu wrote: Hello, I'm using Struts 1.x. Do you know how to disable the toolbars with dojo? Is there a tutorial? I

Re: Jsp out to Persist

2007-05-01 Thread Lance
to the file system and the wrapped response. Cheers, Lance, nagesh.kumar wrote: Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTIONJSP gives HTML out oput to browser Now I need to persist this generated html from jsp

Re: Jsp out to Persist

2007-05-01 Thread Lance
, I need to send a mail by using the same html generated by jsp just like your idea [save the file to the server] How can I implement this do u have any example where I can refer. Thanks Regards Nagesh Reddy. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Lance
I think this is your problem... FileInputStream fin = (FileInputStream) in; Do you need to do this? Can you do RcsaPOIEventListner.readExcelStream(in); The input stream is coming from the request which is not necessarily saved to disk / read from a FileInputStream. Kirthi wrote: I am

Re: Dynamic back button

2007-04-30 Thread Lance
There are a couple of tricks 1. The referring page can be found in request.getHeader(referer)... the referring page's request parameters can not be found though so this will probably not work. 2. You can implement a javax.servlet.Filter This pushes and pops pages (and their parameters) to a

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Lance
(formFile.getInputStream()); Gotta go, good luck Martin Gainty wrote: Lance saw this on nabble.. ExcelFileUploadForm excelForm = (ExcelFileUploadForm) form; FormFile formFile = excelForm.getExcelFile(); InputStream in = (InputStream) formFile.getInputStream(); FileInputStream fin = new (FileInputStream

Re: Response already committed

2007-04-26 Thread Lance
It sounds like you are still redirecting after the repsponse is comitted. If you attempt to do this on tomcat, an error will be reported then instead of redirecting, the redirect page will be included at the end of the current page. Gajbhe, Laxman (Contractor) wrote: Lance, Thanks for your

Re: Response already committed

2007-04-26 Thread Lance
telling it to redirect itself. I'm sure one of the s2 users out there have some suggestions here. Lance. Lance wrote: It sounds like you are still redirecting after the repsponse is comitted. If you attempt to do this on tomcat, an error will be reported then instead of redirecting, the redirect

Re: struts Multipart

2007-04-26 Thread Lance
Sounds like a classpath issue to me. Try searching your webapp for multiple struts.jar or commons-fileupload.jar. Are they both in the same dir? (WEB-INF/lib probably) Michel Van Asten wrote: Hi, I got a strange problem... I got this error message When I try to do an upload in my

Re: Somewhat OT: Forward to JSP in JAR file

2007-04-25 Thread Lance
I was doing this sort of dodgy thing at one stage, dynamically writing jsp's to the filesystem To get the real path of the webroot you can use the following code: String webroot = pageContext.getServletContext().getRealPath(/); if (!webroot.endsWith(/)) { webroot += '/'; } From memory this

Re: Reset struts form values: Struts 1.3

2007-04-25 Thread Lance
You could use a reset button input type=reset value=Label for reset button / Chaudhary, Harsh wrote: Yea, that's what I was thinking too. I was just wondering if Struts (or some other API) has a built-in caching mechanism. Thanks though, Harsh. -Original Message- From: [EMAIL

Re: Response already committed

2007-04-25 Thread Lance
The response is considered committed once you have written to the outputstream (perhaps in a jsp). Once a response has been comitted, you can not redirect or forward etc. The best solution is to redirect before you write anything to the output stream, sometimes this is not possible. Another

Re: Reset struts form values: Struts 1.3

2007-04-25 Thread Lance
is loaded again with the wrong values you previously typed and an error message. If you push a reset button, it will reset to the wrong values ... The only way is to use an action for this. Mike Lance a écrit : You could use a reset button input type=reset value=Label for reset button

Re: compile error

2007-04-25 Thread Lance
I highly recommend using ant to manage your project including clean, compile, deploy, javadoc, etc. etc. http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/ant/ant.html http://ant.apache.org/ srikanth_arr wrote: i am new to struts when i compiling the my first struts app

Re: S2: Disable datetimepicker

2007-04-24 Thread Lance
I'm not a struts2 user (unfortunately) but this seems bad to me. From what I see of the s2 tags, they abstract you from the fact that dojo is being used under the hood. Should struts2 have it's own core js that proxies through to the dojo implementation? Scott Nesbitt wrote: Works great!

Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Lance
a href=bean:message key=contact.mail /Email Link/a piloupy GOTTAPIL wrote: Hi, I'd like to do something like this in a JSP file : html-el:link href=${contact.mail}Email Link/html-el:link where contact.mail is a key from my MessageResources.properties. I think the solution is quite simple,

Re: How to get original query string after more than two forwards

2007-04-19 Thread Lance
You could implement a javax.servlet.Filter that is mapped to *.do that pushes and pops to a session based stack. Deep Blue Li wrote: Hi, I'm using the way now, but just wonder if is there anyway I can do it using serlvet API. Thanks! Regards, Deep Blue On 4/19/07, piloupy GOTTAPIL [EMAIL

Re: How to get original query string after more than two forwards

2007-04-19 Thread Lance
work. By changing this, request.getQueryString() will work as you expect in your jsp so you may not need a filter after all. Lance. Lance wrote: You could implement a javax.servlet.Filter that is mapped to *.do that pushes and pops to a session based stack. Deep Blue Li wrote: Hi, I'm using

Re: Load an .xml file when server start up

2007-04-19 Thread Lance
You could implement a javax.servlet.ServletContextListener that is notified when your webapp loads / reloads. Needs to be attached to your webapp in web.xml. zhangfan wrote: On 4/18/07, Zhang, Larry (L.) [EMAIL PROTECTED] wrote: I need to load an .xml file when Websphere server starts

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Lance
Another option is to make a disabled style in your css and blur onfocus html:select property=id styleClass=disabled onFocus=this.blur() : /html:select Using a hidden element with the same name is slightly dodgy in that form.elements[id] will return a different value depending if the hidden

Re: Map-backed forms in Struts2

2007-04-17 Thread Lance
Do you have a getValue(String key) method? I am not a s2 user but I have read the OGNL spec so sorry if I'm wrong but OGNL needs public PropertyType getPropertyName(IndexType index) and public void setPropertyName(IndexType index, PropertyType value)

Re: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
You could use fmt:formatDate / in JSTL http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf Peter Neu wrote: Hello, I need to format a number string in a html:text tag because the default value must be written with a

Re: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
Oops, i mean fmt:formatNumber / Lance wrote: You could use fmt:formatDate / in JSTL http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf Peter Neu wrote: Hello, I need to format a number string in a html:text tag

Re: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
to embed the value in the html:text field so the user is able to edit the value. That won't work with 2 tags. :o( -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 10:45 An: Struts Users Mailing List Betreff: Re: HowTo Format Numbers in html:text

Re: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
: But that's more code than the brute force approach: input name=usage value=bean:write name=Obj property=usage format=##/ / If have about 20-30 items. :o( -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 11:05 An: Struts Users Mailing List

Re: Form data to Vector

2007-04-16 Thread Lance
Only way to get data into a Vector is by a scriptlet or in your action. Struts 2's OGNL has a nice way of doing this but unfortunately with S1 we're left with dirty scriptlets in JSPs some of the time. JSTL has a c:forTokens / that sometimes comes in handy where you provide a comma separated

Re: AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
? -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 11:31 An: Struts Users Mailing List Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag? Your brute force approach does not use html:text / tho? Also, I have a suspicion that struts

Re: Form data to Vector

2007-04-16 Thread Lance
Lance wrote: Sorry, it helps if i read your question fully. The way to do this is to name your html form elements using in the struts (BeanUtils) conventions If you have a form element named myVector[3] then struts will call myForm.getMyVector().set(3, ?) It is sometimes easiest to use

Re: Form data to Vector

2007-04-16 Thread Lance
; } Instantiating my Vector in the constructor won't help... Struts should call myForm.getMyVector().set(0, ?) Do I need to implement this metod? Do I need to write my own setters/getters to do this? How can I do this exactly? Thanks, MB - Original Message From: Lance [EMAIL PROTECTED] To: user

Re: Form data to Vector

2007-04-16 Thread Lance
therefore add one value to the Vector. I try to do this in my JSP, because I don't know how to call a specific bean method from the action class... Hope I could explain it clearly... Thanks for you help, MB - Original Message From: Lance [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Form data to Vector

2007-04-16 Thread Lance
a bean method that performs the actual adding? I couldn't figure it out... Of course, when you press the submit button (not the add button) all the previously added elements must be available... I hope my goal is clear for you, Thanks a lot, MB - Original Message From: Lance [EMAIL

Re: help me to use struts-layout

2007-04-13 Thread Lance
I hadn't heard of this before and it looks quite good. Has anyone had good / bad experiences with it? In particular with layout:collection / is it possible to get a reference to the current object and use it in and onRowClick for example? Antonio Petrelli wrote: 2007/4/13, OSMAN Mohamed

Re: ajax and struts 2

2007-04-13 Thread Lance
ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u

Re: ajax and struts 2

2007-04-13 Thread Lance
. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Users Mailing List Subject: Re: ajax and struts 2 ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript

[S1] Validating spoofed fields

2007-03-30 Thread Lance
this problem / have a different suggestion? Cheers, Lance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Filtering multipart content

2007-03-27 Thread Lance
this clears things up a bit. trad-ex wrote: Hi Lance, Sorry for my misunderstanding your issue. What I understood is: Your Filter class works fine except file parameter. Is this correct ? So, after I looked over your implementation, I found the line below: parameterMap

Re: Filtering multipart content

2007-03-26 Thread Lance
extend a common BaseAction and I was able to plug the filtering logic in there. It would have been nice to do it in a filter. I'm still interested if someone else has an answer. Cheers, Lance. trad-ex wrote: Hi Lance, Just curious, I implemented multipart request handler using Struts 1.2

Re: auto-refreshing stock price

2007-03-23 Thread Lance
You could use DWR's reverse ajax which allows the server to push data to clients rather than the clients polling which can be inefficient. http://getahead.org/dwr/changelog/dwr20m1 http://getahead.org/dwr/download YagNesh wrote: Hi, We have been trying to create a trading portfolio page

Filtering multipart content

2007-03-22 Thread Lance
the request if i do this. I am using struts 1.3.5 Thanks, Lance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
at the similarities in all of the nested tags I get the they're all broken in this way. Cheers, Lance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
List' Subject: RE: Upgrading to struts 1.3.5, nested tags are broken Instead of using investor.name use record.name Try this will work -Original Message- From: Lance Semmens [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 2:54 PM To: 'user@struts.apache.org' Subject: Upgrading

RE: Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
Problem solved... it ended up being one of our own custom tags that wasn't cleaning up after itself. Have changed the tag to mimic the behavior in the standard nested tags. Cheers, Lance. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 07 March 2007 14:22

RE: session maintenance in struts webapp

2006-11-21 Thread Lance Semmens
stable but it's pretty close. http://getahead.ltd.uk/dwr/changelog/dwr20m1 Lance. -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 2:41 PM To: Struts Users Mailing List Subject: session maintenance in struts webapp Hi Folks, In my Struts

RE: Logging to db

2006-11-21 Thread Lance Semmens
It would be easy enough to do by writing a custom javax.servlet.Filter. You would map your Filter to *.do in web.xml. Alternatively you could configure a JDBC appender in log4j for org.apache.struts.action.RequestProcessor at level debug although you might find a bit too much junk is being

RE: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-17 Thread Lance Semmens
-- From: Lance Semmens [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Date: Tue, 14 Nov 2006 09:51:00 + Subject: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form The only thing I can think is maybe

RE: custom tag for localization

2006-11-17 Thread Lance Semmens
Not exactly what you asked for but LocaleAction can set the locale then redirect to a page. http://struts.apache.org/1.x/struts-extras/apidocs/ -Original Message- From: Mahmoud Saeed(RSW) [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 23:30 To: user@struts.apache.org Subject: custom

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
go wrong ? Ken 於 四,2006-11-16 於 15:16 +,Lance Semmens 提到: I think you're missing a '/' forward name=success path=/showDocs.jsp / To keep your webapp a bit cleaner, perhaps consider forward name=success path=/WEB-INF/jsps/showDocs.jsp / -Original Message- From: Ken Hu [mailto

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
於 五,2006-11-17 於 10:22 +,Lance Semmens 提到: hmm... are you using IE? You may need to turn off show friendly error messages in the options somewhere. I'm thinking you've got a server error that IE is hiding from you. Any errors in the log? -Original Message- From: Ken Hu

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
scrap that idea... I was being a stupid head. cdms is your context path which it ok. -Original Message- From: Lance Semmens [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 13:01 To: 'Struts Users Mailing List' Subject: RE: can not reach the jsp file The URL that I ask my browser

RE: can not reach the jsp file

2006-11-16 Thread Lance Semmens
I think you're missing a '/' forward name=success path=/showDocs.jsp / To keep your webapp a bit cleaner, perhaps consider forward name=success path=/WEB-INF/jsps/showDocs.jsp / -Original Message- From: Ken Hu [mailto:[EMAIL PROTECTED] Sent: 16 November 2006 09:03 To:

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
to see what format the field names are as an example. HTH, -ed On 11/14/06, Lance Semmens [EMAIL PROTECTED] wrote: The least messy way is to post to an addRecord action which adds a blank record to your form. Form must be in session scope. This requires a page redraw so is less responsive

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
to see what format the field names are as an example. HTH, -ed On 11/14/06, Lance Semmens [EMAIL PROTECTED] wrote: The least messy way is to post to an addRecord action which adds a blank record to your form. Form must be in session scope. This requires a page redraw so is less responsive

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
as the formbean and java.util.Map as the contained object for a given property, and the framework does populate new records into the contained map for me. -ed On 11/15/06, Lance Semmens [EMAIL PROTECTED] wrote: I realize your field names have to comply with the struts naming (ie so

RE: Dynamically adding row!

2006-11-14 Thread Lance Semmens
usually involves cloning an existing row and blanking out the fields. Lance. -Original Message- From: Balwinder [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 10:05 To: Struts Users Mailing List Subject: Dynamically adding row! Hi All! I am trying to add a row in a table dynamically

RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-14 Thread Lance Semmens
however I then loose the ability to only get the checked value put into my action form after the page is submitted. From: Lance Semmens [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org

RE: how to add edit/add/delete functionality

2006-11-14 Thread Lance Semmens
I found this by googling struts crud http://www.learntechnology.net/struts-crud.do -Original Message- From: santas [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 12:03 To: user@struts.apache.org Subject: how to add edit/add/delete functionality Hi all i am new to struts can anybody

RE: setInput method of ActionMapping

2006-11-14 Thread Lance Semmens
A possible solution might be to 1. Set validate=false for your action. 2. Configure forwards for each of your error pages 2. Explicitly call form.validate() in your action 3. Call saveErrors() if validation fails 4. Redirect to the appropriate forward Lance. -Original Message- From

RE: Validation + multiple Submit buttons

2006-11-14 Thread Lance Semmens
that posts to a different action to your save. Lance. -Original Message- From: Andrew Martin [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 13:36 To: Struts Users Mailing List Subject: Validation + multiple Submit buttons Hi, I have just begun to add validation to my forms using struts

RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-13 Thread Lance Semmens
A couple of things to check 1. Is your get action using the same form as your post action? 2. Do the names of the checkboxes in the html match your form? 3. Where are you resetting the checkboxes? I'm hoping you're doing it by overriding ActionForm.reset(). -Original Message- From:

html:form without writing a form in the resultant HTML

2006-11-10 Thread Lance Semmens
/ /html:select /html:form Any other suggestions welcome. Thanks, Lance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:form without writing a form in the resultant HTML

2006-11-10 Thread Lance Semmens
: html:form without writing a form in the resultant HTML On 11/10/06, Lance Semmens [EMAIL PROTECTED] wrote: 1. Can I use struts tags (eg html:select) without wrapping them in an html:form (I'm pretty sure the answer is no). 2. Can I wrap my tags in html:form but somehow not output form

RE: How to make dropdown box editable.

2006-11-06 Thread Lance Semmens
Dojo has a control that sounds like what you're after. http://dojotoolkit.org/ go to: see it in action -- form widgets -- form tour and look at the state field. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 26 October 2006 14:30 To: user@struts.apache.org

RE: [OT] Identify file type

2006-11-03 Thread Lance Semmens
On your upload form, your property that maps to your file upload input should be of type org.apache.struts.upload.FormFile. Then save the FormFile .getFileData() and FormFile.getContentType() to the database. -Original Message- From: Vijay Venkataraman [mailto:[EMAIL PROTECTED] Sent:

RE: [OT] Identify file type

2006-11-03 Thread Lance Semmens
On your upload form, your property that maps to your file upload input should be of type org.apache.struts.upload.FormFile. Then save the FormFile .getFileData() and FormFile.getContentType() to the database. -Original Message- From: Vijay Venkataraman [mailto:[EMAIL PROTECTED] Sent:

Hot deployable actions

2006-09-18 Thread Lance
and where this should be plugged into struts. Also any problems I may come across. I realize that only 1 instance of each action is loaded per application. This is fine, my proxy will be loaded once and the delegate action (which of course has no member variables) will be re-loaded. Cheers, Lance

RE: R: Dynamically Generated html:Text

2006-09-18 Thread Lance
Try html:form action=/process -Original Message- From: Marcello Savino [mailto:[EMAIL PROTECTED] Sent: 18 September 2006 13:29 To: Struts Users Mailing List Subject: R: R: Dynamically Generated html:Text Something like that: public class myMapForm extends ActionForm { public

RE: Best practice for external webapp configuration ?

2006-08-30 Thread Lance
On jboss, this can be done by configuring the SystemPropertiesService. @see jboss\server\all\deploy\properties-service.xml Properties can be configured inline in the xml file or can be declared in a separate file which is referenced by properties-service.xml. Hello, I'm searching for best

RE: Struts form design question

2006-08-01 Thread Lance
I do this using 3 actions loadAction - called first time the page is loaded, populates the form with values from the db, the form has session scope. editAction - called by a click on the add or delete button, adds or removes a row from the form. Add and delete buttons should post to this action

RE: pagination

2006-08-01 Thread Lance
Displaytag will do it http://displaytag.sourceforge.net/11/displaytag/tagreference.html See the pagesize attribute. -Original Message- From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Sent: 01 August 2006 08:20 To: user@struts.apache.org Subject: pagination Hi All, Am using

  1   2   >