Re: where to download 1.3.6 - broken link ?

2006-12-19 Thread Lixin Chu
thanks for your clarification ! On 12/19/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 12/18/06, Lixin Chu [EMAIL PROTECTED] wrote: the linked provided on WiKi seems broken: http://people.apache.org/builds/struts/1.3.6 http://people.apache.org/builds/struts/1.3.6 are we going to have

where to download 1.3.6 - broken link ?

2006-12-18 Thread Lixin Chu
the linked provided on WiKi seems broken: http://people.apache.org/builds/struts/1.3.6http://people.apache.org/builds/struts/1.3.6 are we going to have a new release soon ? thanks

Re: jsp page/actions design question

2006-11-13 Thread Lixin Chu
you can use %@ include file=... % to include the common JSP. On 11/14/06, fea jabi [EMAIL PROTECTED] wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that

Re: struts2 action and spring bean

2006-11-03 Thread Lixin Chu
just curious, what's the benifits of configuring Struts Actions in Spring ? isn't Struts config file enough ?

Re: Forward Action to Action

2006-10-23 Thread Lixin Chu
how abt using the same formbean for both actions ?

Re: struts 1.2.9 and tomcat 5.5

2006-10-19 Thread Lixin Chu
i use TC 5.5 and Struts 1.2.9 w/o problems. but i can not tell what's wrong. when did the error occur ?

how to avoid action chaining

2006-10-02 Thread Lixin Chu
hi, I am hearing that action chaining is something we should avoid, however, I am not sure what's the common practice for this use case: given User and Department, we need to list User/Department, view User/Department; when listing User, we also show their department. When listing Users, we may

Re: about pagination

2006-09-21 Thread Lixin Chu
struts itself does not (need to) handle pagination. for displaytag, you can check http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html

Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu
a custom tag library... From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Sat 16/09/2006 1:25 PM To: Struts Users Mailing List Subject: Re: calling method of a bean from JSP i do not think it works

Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu
On 9/17/06, Yujun Liang [EMAIL PROTECTED] wrote: Have you tried Mapped Properties? http://struts.apache.org/1.2.9/faqs/indexedprops.html Regards this is a good point. I have not tried it. Is it ok (in terms of performance) to use a custom class as the key, not using Java primitives like

Re: calling method of a bean from JSP

2006-09-15 Thread Lixin Chu
i do not think it works.

Re: calling method of a bean from JSP

2006-09-14 Thread Lixin Chu
What are you trying to achieve? Maybe you're trying to put logic in your JSPs that more properly belongs in an action. thanks. what i am trying to do is to get the value of a field. Say I get a list of items: class item { Set values; ... } The item has a set of Values: class Value {

Re: calling method of a bean from JSP

2006-09-13 Thread Lixin Chu
c:out value=${beanName.methodName}/ I thought this is for getting the value of a property ? and how to pass a parameter to the method ? I think I have tried that but does not work.

calling method of a bean from JSP

2006-09-12 Thread Lixin Chu
Hi, would like to check if there is existing tag available to allow method invocation from JSP directly, something similar to this : Call JavaBean methods from JSP 2.0 pages http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html thanks lx

Re: Dynamic directory creation and access

2006-08-10 Thread Lixin Chu
is Apache Slide somthing you are looking for ?

can not enable I18N properties

2006-08-03 Thread Lixin Chu
Hi, I am trying to enable I18N in my struts based application, here is what I have done: - added a LocaleFilter, which I copied from Appfuse: String locale = request.getParameter(locale); Locale preferredLocale = (*null* ==

Re: can not enable I18N properties

2006-08-03 Thread Lixin Chu
I tried Appfuse on my machine, it works. so I assume the browser configuration is fine. I use Tiles, Struts, and Spring framework in my application btw.

Re: Client Side Validation

2006-08-01 Thread Lixin Chu
do you have something like: onsubmit=validateAttendeeDetailsForm (this); in html:form ? and form name is not attendeeDetailsForn ?

Re: [again] how to disable browser's back button after logout ?

2006-06-25 Thread Lixin Chu
page is benign. -- Paul Lixin Chu [EMAIL PROTECTED] wrote: this may be posted before though i can not find any in the archive: how to make sure that browser's back button will bring back the previous page after log out ? Googled, and added these into our logout action, but still no effect

Re: [again] how to disable browser's back button after logout ?

2006-06-25 Thread Lixin Chu
is there a clearner way of doing this if I want to protect every page except the login/out ?

Re: [again] how to disable browser's back button after logout ?

2006-06-25 Thread Lixin Chu
yes, it works. thanks. this should be the simplest way of supporting this. On 6/26/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 6/25/06, Lixin Chu [EMAIL PROTECTED] wrote: is there a clearner way of doing this if I want to protect every page except the login/out ? What about the 'nocache

[again] how to disable browser's back button after logout ?

2006-06-24 Thread Lixin Chu
this may be posted before though i can not find any in the archive: how to make sure that browser's back button will bring back the previous page after log out ? Googled, and added these into our logout action, but still no effect: response.setHeader(Cache-Control, no-cache);

Re: Global forwards don't support Tiles definitions?

2006-06-02 Thread Lixin Chu
not sure if this is what you want but this one should work: global forward is defined as, fot example: forward name=authorizationError path=.authorizationError redirect=true/ the .authorizationError is defined as a Tile: definition name=.authorizationError extends=.baseDef put name=menu

Re: Deciding which DispatchAction to use

2006-05-31 Thread Lixin Chu
how to handle action chaning in EventDispatchAction, for example, if my mapping is something like this: forward name = nextaction path = /nextAction.do?action=true/ When we use: return mapping.findForward(nextaction); the current parameters, including the event for the current action will be

Re: Re: How to lock the access of methods within an action?

2006-05-30 Thread Lixin Chu
i think transaction manager will take care of this. On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote: Thanks a lot for your answer! My thinking behind is the application level! I'm not sure but the goal is (my hope..)to solve this problem using aspect oriented programming or Spring

Re: struts token

2006-05-22 Thread Lixin Chu
i think the hidden field is automatically created if you use html:form tag.

is there any way to customize the client side validation popup window

2006-05-19 Thread Lixin Chu
Hi All, would like to know if there is any way to customize the client side validation popup window ? i am using struts client side validator. thanks lixin

Re: Browser Back Button

2006-05-15 Thread Lixin Chu
A cleaner back button solution is almost a must-have for logout: after logout, the back button should not bring back the previous page. looking at that Gmail does. any idea how it is implemented ?

Re: How to use displayTag

2006-05-02 Thread Lixin Chu
check the latest display tag (i think 1.1 or 1.2), it does support pagination though. there is also a AjaxTag which enables a AJAX displaytag. On 4/30/06, H. Kerem Cevahir [EMAIL PROTECTED] wrote: Hi, display:table tag works on beans( or lists) which are kept in one of scopes. You can

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Lixin Chu
if the validation is done at the server side (in your actionform), then you can easily get the errors. On 4/28/06, Asad Habib [EMAIL PROTECTED] wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action

Re: Struts 1.2.9 does not throw InvalidCancelException

2006-04-25 Thread Lixin Chu
exactly, thanks ! On 4/25/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 4/24/06, Lixin Chu [EMAIL PROTECTED] wrote: just upgraded from 1.2.8 to 1.2.9. I did not add set-property property=cancellable value=true/ in struts-config.xml and still use html:cancel as per normal in jsp

Struts 1.2.9 does not throw InvalidCancelException

2006-04-24 Thread Lixin Chu
just upgraded from 1.2.8 to 1.2.9. I did not add set-property property=cancellable value=true/ in struts-config.xml and still use html:cancel as per normal in jsp files. Tested, do not see exception and no validation is called. any reason why ? default setting ? btw, my action is

Re: DWR throws errors

2006-04-17 Thread Lixin Chu
thanks. but according to the doc, I can use the form bean for Struts creator. I tried Spring creator, it works if I only use the bean name not fully qualified class name though. On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -- Original Message --- From: Lixin Chu

DWR throws errors

2006-04-16 Thread Lixin Chu
Hi, I am trying my luck to see if someone in this forum has any idea of why - i have not got response from DWR forum so far. I am using DWR 1.1.1 (also tried 2.0M1) with Struts 1.2.8. My DWR configuration is like this: create creator=struts javascript=GetMultipleUsers param

Re: Struts Calendar Component

2006-03-25 Thread Lixin Chu
this might be of interest. very easy to integrate into your application: http://www.dynarch.com/projects/calendar/ HTMLArea is also something cool.

Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-02 Thread Lixin Chu
oh, did not notice that.

Re: Why global error handling doesn't work with struts?

2006-03-02 Thread Lixin Chu
to show your own error page in IE, you need to have error page size more than 512 bytes. On 3/3/06, Partha Pratim Dutta [EMAIL PROTECTED] wrote: Thanks George. It really works fine in Firefox. Why Microsoft is bent upon changing everything their way ? -Original Message- From: [EMAIL

Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-02 Thread Lixin Chu
thanks Ted. no problem, i just need to add one more bookmark entry. On 3/2/06, Ted Husted [EMAIL PROTECTED] wrote: On 3/2/06, Lixin Chu [EMAIL PROTECTED] wrote: why not consolidate all into one place ? Struts planet, struts central, wiki, etc ? Planet Struts is powered by Roller

Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Lixin Chu
why not consolidate all into one place ? Struts planet, struts central, wiki, etc ? On 3/2/06, Michael Jouravlev [EMAIL PROTECTED] wrote: Why not to expand and improve Struts wiki? On 3/1/06, Ted Husted [EMAIL PROTECTED] wrote: There is a small resource directory on the Struts wiki, but it

Re: Sorting paging search results with delete button for each row?

2006-02-22 Thread Lixin Chu
why displaytag does not meet your requirements ? On 2/22/06, Narayanan, Shiva [EMAIL PROTECTED] wrote: Hello All, What is the best way to sort and page search results, (with delete button for each row) using Struts? Are there are any open source tag libraries to achieve this? Looked at

Re: Another struts design question

2006-02-14 Thread Lixin Chu
ok, I let page A or B pass a returnURL to page C who keeps it in the session scoped actionForm. On 2/15/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Michael Jouravlev wrote: On 2/14/06, Rick Reumann [EMAIL PROTECTED] wrote: In the action just look for some param like fromPage and key

data in session affecting performance ?

2006-01-26 Thread Lixin Chu
Hi, I saw a thread discussing this but can not find it anymore now. I remember someone mentioned that the amount of data put into the session context should not exceed 32KB in general otherwise performance might be affected. I may interpreted it wrongly. so i would like to clarify if it is indeed

Re: hard question - Single Sign On

2006-01-22 Thread Lixin Chu
may you would like to take a look at these two: Yale's CAS : http://www.ja-sig.org/wiki/display/CAS/Home Acegi : http://acegisecurity.org/

[Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
Hi All, appreciate any help here ...This is what I have done in trying to show strings in the selected language: - I have various /WEB-INF/classes/ApplicationResources.properties files, for example APplicationResoruces_ja.properties - in struts-config.xml, I have: message-resources

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
I set to ja in the session; I removed locale=true from JSP but the result is the same. Browser encoding is set to UTF-8. When I 'view source' in the browser, I saw html lang=zh if I set to Chinese. But I do not see this : meta http-equiv=Content-Type content=text/html; charset=UTF-8 is this

Re: [Help] I18N does not work and I think I have tried all ....

2005-11-17 Thread Lixin Chu
1. I use this to set the locale: request.getSession().setAttribute(Globals.LOCALE_KEY, Lcoale.JAPANESE); 2. yes, properties file has some. 3. the whole page is in english - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Shale ... where can I find out more?

2005-08-18 Thread Lixin Chu
is there a road map/milestone for Shale developemnt ? I am pretty comfortable with Struts now but would like to explore Shale in the next project. thanks lixin On 8/18/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 8/17/05, Joe Germuska [EMAIL PROTECTED] wrote: At 11:49 AM +0100 8/17/05,

Re: Shale ... where can I find out more?

2005-08-18 Thread Lixin Chu
thanks ! On 8/18/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Lixin Chu [EMAIL PROTECTED] is there a road map/milestone for Shale developemnt ? I am pretty comfortable with Struts now but would like to explore Shale in the next project. Craig has posted a roadmap on the Struts Wiki

Re: [OT] Hidden Fields V/S session scope

2005-06-20 Thread Lixin Chu
I would think that beside performance, you might also need to think about how to manage memory for session scoped objects. on the other hand, if we have some sort of cache facility, performance may not be a big issue. On 6/20/05, Nitish Kumar [EMAIL PROTECTED] wrote: I am again stuck on to the

Re: http 404 page

2005-06-16 Thread Lixin Chu
your message size has to be more than 512 bytes otherwise the default IE 404 page will be used - if I remember correctly. On 6/16/05, McDonnell, Colm (MLIM) [EMAIL PROTECTED] wrote: Use the optional error-page element defined in web.xml, this allows you to map an error code _or_ exception type

Re: displayTag needs session scoped objects for sort/export ?

2005-06-12 Thread Lixin Chu
. Regards, David -Original Message- From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 6:36 AM To: user@struts.apache.org Subject: Re: displayTag needs session scoped objects for sort/export ? you can but have to hit the DB every time. On 6/11/05

Re: displayTag needs session scoped objects for sort/export ?

2005-06-11 Thread Lixin Chu
you can but have to hit the DB every time. On 6/11/05, Lixin Chu [EMAIL PROTECTED] wrote: Hi, would like to clarify with those who use displayTag: is it a must to put list of objects into session to be able sue sort and export function ? thanks lixin

[OT] using JSTL c:out / with escapeXML=false for preview HTML

2005-06-10 Thread Lixin Chu
Hi, I am trying to preview a piece of html content. but the c:out with escapeXML=false can not handle space char correctly. is there an easy way to replace the ' ' with html special space char ? thanks lixin - To unsubscribe,

[OT] displayTag needs session scoped objects for sort/export ?

2005-06-10 Thread Lixin Chu
Hi, would like to clarify with those who use displayTag: is it a must to put list of objects into session to be able sue sort and export function ? thanks lixin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: AjaxTags v1.0 beta 1 released

2005-06-09 Thread Lixin Chu
Hi, I am using Struts 1.1, do I have to switch to 1.2 ? thanks lixin On 5/17/05, Dakota Jack [EMAIL PROTECTED] wrote: Congratulations! Good work! On 5/12/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Finally got it all set up on http://struts.sf.net. The first official release is up!

Re: Autologin?

2005-05-25 Thread Lixin Chu
i guess http://acegisecurity.sourceforge.net will most likely not shown in the search list. you may want to take a look at it if you do not want to develop something from scratch again. On 5/25/05, atta-ur rehman [EMAIL PROTECTED] wrote: I'll start with the first five :)

request.getCharacterEncoding always return null ?

2005-05-24 Thread Lixin Chu
Hi, I always get null from request.getChaaracterEncoding(), do not know why. I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which ever encoding I select in browser, my servlet always reprots as null from the above call. thanks for any info! li xin

Re: request.getCharacterEncoding always return null ?

2005-05-24 Thread Lixin Chu
. Lixin Chu wrote: Hi, I always get null from request.getChaaracterEncoding(), do not know why. I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which ever encoding I select in browser, my servlet always reprots as null from the above call. thanks for any info! li xin

chat engine to integrate with Struts application ?

2005-05-05 Thread Lixin Chu
hi, I am looking for a chat engine that I can integrate it into my Struts based web application. basically, my application wants to do the following things: - get notified when a client wants to open a chat - redirect to the target audience for the incoming chat request based on pre-configured

Re: [OT] Recommendation of Instant Messagging System

2005-05-05 Thread Lixin Chu
Hi, I am also interested in integrating a chat engine with my Struts application - with very similar requirements. In fact I posted a msg here before checking this thread ! I am not familar with any of the Sockets, ServerSockets, XML API or Threads. So looks like building from scratch is not an

Re: [OT] Recommendation of Instant Messagging System

2005-05-05 Thread Lixin Chu
and you can find an announcement of it. Probably, there are JavaScript-based chat implementations out there too. If you are going to use JavaScript and have simple requirements, Leon's suggestion might fit the bill. Lixin Chu wrote: Hi, I am also interested in integrating a chat engine

Re: LookupDispatchAction problem with double byte resource files - working with DisplayTag ?

2004-10-30 Thread lixin chu
=done' is sent to the server. So now I hope I have a complete decoupled, I18N aware DispatchAction. Thanks Jack !!! li xin --- lixin chu [EMAIL PROTECTED] wrote: I realize that the problem is action chaining. In my code, action one goes on to the next action - I persume

Re: LookupDispatchAction problem with double byte resource files - working with DisplayTag ?

2004-10-30 Thread lixin chu
. Jack On Sat, 30 Oct 2004 05:18:41 -0700 (PDT), lixin chu [EMAIL PROTECTED] wrote: problem solved - I made a mistake in the JSP file, here is the right one to return a parameter for a submit button: html:submit property=ListPermission.dispatch value=done bean:message key

Re: LookupDispatchAction problem with double byte resource files - working with DisplayTag ?

2004-10-29 Thread lixin chu
hi jack, thanks, the solution is cool ! I am trying it. a small problem i am experiencing now is that (i am not sure if there is something wrong in my configuration), the parameter on one page is passed on to the next page, so when we getMethod, the earlier method name is returned. I have one

Re: mechanism to clear objects in the session

2004-10-15 Thread lixin chu
much. Erik lixin chu wrote: Hi, I saw an ealier thread discussing this but still can not fully understand the solution. appreciate if any one can provide some more detailed info on this. basically if the current page flow is terminated for some reason, how the Struts application

RE: mechanism to clear objects in the session

2004-10-15 Thread lixin chu
this solution is :) Chris McCormack -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: 15 October 2004 10:05 To: Struts Users Mailing List Subject: Re: mechanism to clear objects in the session thanks. it indeed helps me, in fact the points are critical - i

mechanism to clear objects in the session

2004-10-14 Thread lixin chu
Hi, I saw an ealier thread discussing this but still can not fully understand the solution. appreciate if any one can provide some more detailed info on this. basically if the current page flow is terminated for some reason, how the Struts application can clear the objects stored in the session ?

need advice: session scoped objects or session scoped ActionForm ?

2004-10-12 Thread lixin chu
Hi, I am seeking your expert advice: I have a simple page with Done and Cancel buttons. If any of these buttons are clicked, I suppose to go back to the calling page - there are a few pages that will come to this page. It is a simple workflow type of thing. So I need to know the retutn URL, pls

Re: need advice: session scoped objects or session scoped ActionForm ?

2004-10-12 Thread lixin chu
actually I do not like either option. my understanding is: * session scoped obejcts (I mean those put into the session using request.getSession().setAttribute()) are like global variables. I need to take care of potential naming conflict-but I can not use fully qualified domain name type of naming

Re: How To Display Check Boxes in Struts?

2004-10-05 Thread lixin chu
something like this: input type=checkbox name=value(bean:write name=yourBean property=emailAddress/) value=x/ --- Caroline Jen [EMAIL PROTECTED] wrote: I am able to create check boxes using HTML. But, I do not know how to display check boxes in Struts. Here is what I plan to do: I have

looking for sample code of importing data into a database

2004-10-04 Thread lixin chu
Hi, I am looking for sample code/plug-in that can import data into a database. Idealy it can support both CSV and XML format. I need to import user info from a legacy system into a new mySQL database. Wondering if there is a package available for user to import the data from browser. very much

RE: Validator with DispatchAction...help!...newbie

2004-09-14 Thread lixin chu
There is an interesting article talking about validation in DispatchAction. That may not be what you are looking for but I would like to know if the method suggestted by the author is a good choice or not: http://www.reumann.net/struts/articles/request_lists.jsp Another common practice is to have

Re: Help - struggling this for days !

2004-09-11 Thread lixin chu
c:forEach items=${applicationScope} var=itm tr tdc:out value=${itm.key}//td tdtextarea rows=5 cols=50c:out value=${itm.value}//textarea/td /tr /c:forEach /table --- lixin chu wrote: Here is how I prepare action

Re: Help - struggling this for days !

2004-09-11 Thread lixin chu
ActionMessage(something here); the something here corresponds to a key in your messages.properties file (or whichever file has your resource messages)? lixin chu wrote: Here is how I prepare action messages in Action: ActionMessages messages = new ActionMessages(); messages.add

Help - struggling this for days !

2004-09-10 Thread lixin chu
Hi, Appreciate your help, I have been trying to find out why for days. Here is my JSP: bSearch Templates/b font color=red size=2 logic:messagesPresent ul html:messages id=error libean:write name=error//li /html:messagesbr /ul /logic:messagesPresent /font font color=blue size=2

Re: Single sign-on

2004-09-09 Thread lixin chu
open source Yale CAS could be one possible choice. --- Prasad, Kamakshya [EMAIL PROTECTED] wrote: Hi, We have lot of web application built on struts for which we need to provide single sign-on. Please advise me how to implement the same. We are using Weblogic 8.1 as the app server.

Help ---- Error: can not find bean messages in any scope

2004-09-07 Thread lixin chu
Hi, I got this error log ~~ 07.09.04 15:21:34 [http8080-Processor24] ERROR org.apache.struts.taglib.tiles.InsertTag - ServletException in '/WEB-INF/tiles/home.jsp': Cannot find bean messages in any scope javax.servlet.ServletException: Cannot find bean messages in any

Struts messages are not displayed in JSP

2004-09-06 Thread lixin chu
Hi, I gies a strange problem, the messages are not displayed. here is the code in my Action: messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage (templates List error)); saveMessages (request, messages); In JSP: font color=blue size=2 logic:messagesPresent message=true

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread lixin chu
- read up on what reset() does. servlet is a variable of Action and is available in all methods of your own Action classes. Paul -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 3:52 AM To: [EMAIL PROTECTED] Subject

ActionForm: simply calling reset() or have to recreate one ?

2004-08-27 Thread lixin chu
Hi, IN one of my Actions I need to clear the existing session scoped ActionForm, should I just call form.reset() and then repopulate values, or I have to remove it and recreate it using RequestUtils ? I saw a recent message talking about this, but I am not sure if I have to recreate one. If so,

Re: duplication of codes in different Action class

2004-08-25 Thread lixin chu
so JSP1 should be associated with another Action, which fetch data from DB and setAttribute in request or session. You should make your Action not the JSP1 available to the user. --- Sebastian Ho [EMAIL PROTECTED] wrote: Hi Scenario : 1. User submits form in JSP1 which Action1 saves to

Re: Emulate a modal screen (Struts newbie)

2004-08-23 Thread lixin chu
i am tring Struts Workflow Extension, which I guess should be able to support your use case. however, I am not sure how it handles multiple window in the same session. --- Varley, Roger [EMAIL PROTECTED] wrote: Hi I'm trying to write what is esentially a web based data entry program using

workflow violation handling in Struts Workflow Extension

2004-08-21 Thread lixin chu
Hi, Got a problem, no idea what's wrong: I have defined a violation handler: --- action path=/admin/OrgWorkflowViolation type=net.canal.admin.action.OrgWorkflowViolationAction forward name=success path=.createOrgDef/ /action

Question: Struts Workflow extension - primary and secondary workflow

2004-08-20 Thread lixin chu
Hi, I am looking for some good document on Workflow extension - especially detail explaination on primary and secondary workflow: * when do I need to define a new primary workflow ? * how does this extension work with LookupDispatchAction ? any example code is very much appreciated ! thanks li

mutable variable in ActionForm is always reset to ture ?

2004-08-20 Thread lixin chu
Hi, Could not figure out why the mutable variable is always reset to true. Here is the snipet of my session scoped ActionForm: .. private boolean mutable = true; public void setMutable(boolean mutable) { this.mutable = mutable; } public

Re: mutable variable in ActionForm is always reset to ture ?

2004-08-20 Thread lixin chu
thank you very much for your promopt response ! I found out the problem: I used a wrong attribute name when I save the form in prepareAction, which causing a new form being created after submitting the JSP file (html:form) --- Rick Reumann [EMAIL PROTECTED] wrote: lixin chu wrote: I

html:reset does not clear all on the page ?

2004-08-20 Thread lixin chu
Hi, A new problem: I have a Clear button which suppose to clear the input fields. However, when I use bean:write to display the current value on the page, and disable reset() in the ActionForm, after pressing Clear button, the value in Form (session scope) is still displayed on the page. is it

RE: best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details

2004-08-17 Thread lixin chu
as a wizard using struts session scope strategy. This strategy has certain complications and is generally disadvantageous. Thanks, Satish Kataria -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 4:59 AM To: [EMAIL PROTECTED

Re: best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details

2004-08-17 Thread lixin chu
you somehow use hidden variables to specify running objects that get recreated for each request. Erik lixin chu wrote: solution 1. persisting data may cause some problems, for example performance, as users may need to create a few detail objects. I prefer to keep these objects

error code 404 not used in IE

2004-08-16 Thread lixin chu
Hi, MS IE has default setting: Tools-Options-Advanced-Browsing-Show friendly HTTP error message When it is checked, the IE default error page is used not your own 404 error page. How can I change the http status code in Struts application so that my own 404 page is used ? thanks li xin

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
sorry, i am new to this, what message ? --- Rosenberg, Leon [EMAIL PROTECTED] wrote: Send a message with more then 1024 bytes. (resin does it) -Ursprüngliche Nachricht- Von: lixin chu [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. August 2004 16:22 An: [EMAIL PROTECTED

Re: AW: error code 404 not used in IE

2004-08-16 Thread lixin chu
this url explains this: http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml --- lixin chu [EMAIL PROTECTED] wrote: sorry, i am new to this, what message ? --- Rosenberg, Leon [EMAIL PROTECTED] wrote: Send a message with more then 1024 bytes. (resin

best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details

2004-08-15 Thread lixin chu
Hi, How should I handle this: I have 2 jsp, in a.JSP, I need to display an ArrayList. When users click 'Add', B.JSP is displayed which allows users to fill in the details of a new object. When users click 'Done', I need to return back to A.JSP, display the newly added object, and ArrayList should

Re: Struts, checkbox and optionally displaytag

2004-08-10 Thread lixin chu
thanks ! --- Koon Yue Lam [EMAIL PROTECTED] wrote: Hi ! From your question, I guess that you need a multiple of checkboxes, so you need html:multibox instead of html:checkbox for your reference: http://struts.apache.org/userGuide/struts-html.html#multibox and a wonderful example:

LookupDispatchAction qustion: how to name the method

2004-08-08 Thread lixin chu
Hi, Still strugling with the LookupDispatchAction. I got this error message: javax.servlet.ServletException: Action[/admin/OrgAction] missing resource 'button.list' in key method map . I suspect that there is something wrong with the string I used. Here is what I aming doing: 1.

Struts, checkbox and optionally displaytag

2004-08-07 Thread lixin chu
hi, guess many questions were raised on this but could not find detail enough sample code. i am looking for sample code demostrating the support of checkbox in Struts ActionForm, Action and JSP files. I am using displaytag (really good!) to generate the table with a column of checkboxes. how do i

[OT] How to get Role/Group info only in JAAS client/tagish package

2004-07-20 Thread lixin chu
Hi, A bit OT question: how to get the Role/Group info only in JASS client - I am using Tagish package but I guess it is common. In my login.java, I use: ~~~ lc = new LoginContext(); lc.login(); Set p = lc.getSubject().getPrincipals();

how to check a 'set' variable in Struts tag/JSTL

2004-07-19 Thread lixin chu
hi, how to check a 'set' variable using JSTL or Struts tags ? for example, I have a variable called 'Roles' which is a Set. In a JSP, I want to check if 'Admin'/'Guest'/'User' is in the Set. How do I do this ? Could not find a suitable tag to handle this. thanks li xin