Custom types and select lists

2010-04-19 Thread Lance Hill
nstanceof Campus) { return ((Campus)o).getId().toString(); } return ""; } } Suggestions, corrections, pointers, or links to examples/tutorials of how to do this properly would be greatly appreciated. Regards, Lance Hill

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

2010-03-17 Thread Lance Hill
z.len...@googlemail.com] Sent: Wednesday, March 17, 2010 11:52 AM To: Struts Users Mailing List Subject: Re: SecurityContextHolder.getContext().getAuthentication() returning null 2010/3/17 Lance Hill : > Any hints about why SecurityContextHolder.getContext().getAuthentication() > would re

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 s

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

2010-03-17 Thread Lance Hill
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: G

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

2010-03-16 Thread Lance Hill
I am using spring-security 2.0.4. -Wes On Tue, Mar 16, 2010 at 5:42 PM, Lance Hill 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

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

2010-03-16 Thread Lance Hill
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 wrote: > I need to access information about the currently logged in user. I don't > think putting the us

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 br

Struts + Spring 3

2010-03-09 Thread Lance Hill
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
Wordpress site. Thank you, Lance Hill

Old tiles site

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

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 lo

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 <[

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
y5 (http://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 opti

Using tiles 2 with struts 1

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

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 "fil

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 use

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 interceptor

Re: JSP pre-compile question

2007-05-23 Thread Lance
L outputted is only 17KB... I am running 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

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 lo

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

2007-05-23 Thread Lance
Ah... pls ignore Paolo Beccari wrote: [0-9]*(\.[0-9]+)? 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 not work, if the variable is not

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

2007-05-23 Thread Lance
[0-9]*(\.[0-9]+)? Paolo Beccari wrote: --- Paolo Beccari <[EMAIL PROTECTED]> wrote: [0-9] --- "Dave Newton" <[EMAIL PROTECTED]> wrote: If it's defined as a Long in your action then you might not be able to run a regex on it--I would imagine type conversion has alre

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: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Lance
It should be ok, if you leave the scope attribute empty, all scopes will be checked. If scope="session" the tags will only check session scope. Can I also suggest checking jstl which may make things (esp logic) a lot easier http://jadecove.com/downloads/jstl-quick-reference.pdf hk wrote: I t

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 implemente

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 link

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 siz

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 templating

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 exa

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 by

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

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: hashmap

2007-05-09 Thread Lance
id, typeid, patternid))); In your jsp you can get it by @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(*new* Integer(questionId),*n

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
, 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: Tue

Re: Jsp out to Persist

2007-05-01 Thread Lance
bjects that write 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 ACTION > JSP > gives HTML out oput to browser Now I need to persis

Re: ClassCast Exception for ExcelFile Upload

2007-04-30 Thread Lance
xcelStream(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 (FileInput

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
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 havin

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 applicatio

Re: Response already committed

2007-04-26 Thread Lance
page 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, th

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: 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: Reset struts form values: Struts 1.3

2007-04-25 Thread Lance
rong 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 Chaudhary, Harsh wrote: Yea, that's what I was thinking too. I w

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 sli

Re: Reset struts form values: Struts 1.3

2007-04-25 Thread Lance
You could use a 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 PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Be

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 thi

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! Tha

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

2007-04-23 Thread Lance
">Email Link piloupy GOTTAPIL wrote: Hi, I'd like to do something like this in a JSP file : Email Link where contact.mail is a key from my MessageResources.properties. I think the solution is quite simple, but I can't find how to do. Thanks in advance, piloupy

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 u

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

2007-04-19 Thread Lance
rms won't 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:

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 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 : 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 element is placed before or after the select. Megani wrote: Hey, i was ha

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) http://www.ognl.org/2.6.9/Documentation/

Re: Form data to Vector

2007-04-16 Thread Lance
n class, but how can I reference 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 --

Re: Form data to Vector

2007-04-16 Thread Lance
Pressing one of them should 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 PROTECTE

Re: Form data to Vector

2007-04-16 Thread Lance
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@struts.apache.org Sent: Mond

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 easi

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

2007-04-16 Thread Lance
a double value. Does that make sense? -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 tho? Also, I hav

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 that sometimes comes in handy where you provide a comma separated list of String

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

2007-04-16 Thread Lance
more code than the brute force approach: " /> 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 Betreff: Re: AW: HowTo Format Numbers in html:text tag? You

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

2007-04-16 Thread Lance
You could combine with struts-el var="formattedNumber" /> Peter Neu wrote: That looks cool but I need 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: La

Re: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
Oops, i mean Lance wrote: You could use 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 m

Re: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
You could use in JSTL 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 comma sperator. e.g

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

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 c

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 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 AMINE <[EMAIL PROTECTED]

[S1] Validating spoofed fields

2007-03-30 Thread Lance
stion? Cheers, Lance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Filtering multipart content

2007-03-27 Thread Lance
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 Strut

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 which

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]

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:

RE: Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
g 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'

Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
getAdjustedProperty() whereas write uses NestedPropertyHelper.setNestedProperties(). is broken too, looking 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 PROTE

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 bein

RE: session maintenance in struts webapp

2006-11-21 Thread Lance Semmens
and is not yet production 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 web

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

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
he jsp file No , I am using firefox. I can see no exception or warning in log file(tomcat's log). My platform is Tomcat 5.5 on Debian Linux, I develope and test my code in Netbeans IDE. Ken 於 五,2006-11-17 於 10:22 +,Lance Semmens 提到: > hmm... are you using IE? > You may need to turn o

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
ss. My struts-config.xml is as following : The URL that I ask my browser to browse is : http://localhost:8080/cdms/ShowDocs.do Help ! what do I go wrong ? Ken 於 四,2006-11-16 於 15:16 +,Lance Semmens 提到: > I think you're missing a '/' > > > To kee

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 t

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

2006-11-17 Thread Lance Semmens
Any help? Shawn ------ From: Lance Semmens <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' 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 ca

RE: can not reach the jsp file

2006-11-16 Thread Lance Semmens
I think you're missing a '/' To keep your webapp a bit cleaner, perhaps consider -Original Message- From: Ken Hu [mailto:[EMAIL PROTECTED] Sent: 16 November 2006 09:03 To: user@struts.apache.org Subject: can not reach the jsp file Dear All: I'm doing a simple strus test, but all I ca

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ean 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

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ed HTML 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 > red

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ed HTML 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 > red

RE: Validation + multiple Submit buttons

2006-11-14 Thread Lance Semmens
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 vali

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

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 g

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

2006-11-14 Thread Lance Semmens
ike I want 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 Lis

RE: Dynamically adding row!

2006-11-14 Thread Lance Semmens
ption 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 dynamical

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: Garner

RE: without writing a in the resultant HTML

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

without writing a in the resultant HTML

2006-11-10 Thread Lance Semmens
answer is no). 2. Can I wrap my tags in but somehow not output to the resultant HTML. I was hoping for a render="false" or similar. eg: Any other suggestions welcome. Thanks, Lance.

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.or

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: 03

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: 03

RE: R: Dynamically Generated html:Text

2006-09-18 Thread Lance
Try -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 void setTxt(int index, Object

Hot deployable actions

2006-09-18 Thread Lance
ce / extend 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.

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 p

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 stru

  1   2   >