[OT] Just install NetBeans 5

2006-03-04 Thread PC Leung
I just install NetBeans 5. It allows me to choose jsf or struts projects and it is bundled with tomcat 5.5.9 It also let you add forms fields such as buttons and text box. currently I am using Eclipse and I find it has more functions than Eclipse.

how to retrieve data selected in previous page combo box?

2006-02-25 Thread PC Leung
current page: html:select name=userForm property=eng_name c:forEach var=user items=${userList} html:option value=${user.usernm}c:out value=${user.eng_name}//html:option /c:forEach /html:select action path=/selectUser input=user.selectUser

How to get the value of combo box of previous page?

2006-02-22 Thread PC Leung
bean:write name=userForm property=eng_name/ The above line returns blank. Where goes wrong? In previous page as below, the combo box has values. td html:select name=userForm property=eng_name html:options collection=userList property=eng_name/

Re: how to retrieve the selected value of jsp in action class

2006-01-11 Thread pc leung
UserForm And then cast it again UserSystemForm userSystemForm = (UserSystemForm)form; ? My english is not good. hope you understand. Thanks On 1/11/06, Rick Reumann [EMAIL PROTECTED] wrote: pc leung wrote the following on 1/10/2006 9:47 AM: The following is the dropdown box in jsp

Re: java.lang.ClassCastException: com.user.struts.form.UserSystemForm

2006-01-10 Thread pc leung
String messageKey; private String method; private String usernm; public String getMessageKey() { return messageKey; On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: pc leung ha scritto: Where does the error come from? ... in struts

Re: java.lang.ClassCastException: com.user.struts.form.UserSystemForm

2006-01-10 Thread pc leung
Thank you for reading and attention. I have written an error handler which simplies the error message. When the error handler is removed from struts-config.xml I find error comes from another action class. Thank you very much indeed. On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: pc

how to retrieve the selected value of jsp in action class

2006-01-10 Thread pc leung
The following is the dropdown box in jsp html:form action=setupAssignUserSystem.do method=post focus=engName html:select name=userForm property=engName html:options collection=userList property=engName/ /html:select How to get the value selected in action

java.lang.ClassCastException: com.user.struts.form.UserSystemForm

2006-01-09 Thread pc leung
Where does the error come from? The following is the action class, jsp and struts-config.xml Flow is like this. http://localhost:8080/setupAssignUserSystem forwards to http://localhost:8080/assignUserSystem automatically. thanks In SetupAssignUserSystemAction class,

Re: why Input form is skipped

2006-01-04 Thread PC Leung
to the /setupAssignUserSystem.do action, and what the browser displays will depend on what that action mapping says. We'd need to know what you're actually requesting when you want to display your form (the URL you request) and to see all the relevant action mappings from your config to help further. L. PC Leung

why Input form is skipped

2005-12-30 Thread PC Leung
I just want the control passing to a form with a dropdown box so that user can click. The form does not have a chance to display and it is skipped to the subsequent form. Why is it so? The following is the action class associated with the form being skipped. Thanks public final class

How to retrieve inside action class as it is in jsp?

2005-12-27 Thread PC Leung
How to retrieve message text inside action class as it is in jsp? bean:message key=${functionProgram.message_key}/ Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to retrieve inside action class as it is in jsp?

2005-12-27 Thread PC Leung
thnx On 12/27/05, ganesh kannusamy [EMAIL PROTECTED] wrote: Hi *Leung,* * The* code for accessing the message from a properties file in Action Class is, ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(

Re: [OT] Oracle Personal Edition andTomcat

2005-11-29 Thread pc leung
I use Oracle Express Edition and tomcat. No such problem you mention. On 11/29/05, R. Markham [EMAIL PROTECTED] wrote: Hi , this is not a direct Struts question. I just want to know if somebody already had experience with Oracle Personal Edition. Last night I installed the software my

[OT] performance of JDBC only, without Hibernate or iBatis

2005-11-27 Thread pc leung
I find it difficult to deal with ID generator, foreign key and composite ID of Hibernate. I wonder if I would fall into the same difficulty again with iBatis. So I am thinking of going back to using pure JDBC. I have read some postings here mentioned that they have web sites supporting 1M clicks

Re: [OT] performance of JDBC only, without Hibernate or iBatis

2005-11-27 Thread pc leung
Hello Larry, If a webapp uses, say, tomcat connection pool and JDBC, does it equal to what you call caching? On 11/28/05, Larry Meadors [EMAIL PROTECTED] wrote: I disagree Paul. :-) I believe that using a tool such as iBATIS can make an application use resources more efficiently by

Re: [shale] why shale?

2005-11-17 Thread pc leung
I find these web pages. They compare JSF with Tapestry. and tells something about Struts http://www.theserverside.com/articles/article.tss?l=JSFTapestry http://www.theserverside.com/news/thread.tss?thread_id=35899 On 11/17/05, Thomas Hamacher [EMAIL PROTECTED] wrote: On Thursday 17 November

Re: Is Shale the way forward?

2005-11-17 Thread pc leung
I have the same question too. Next month, Craig will deliver a speech at ApacheCon. After that it will be more clear. ;-) In documentation web page, several features contains 'FIXME' only. But there are several jsf demo out there. If there is a installation guide and a sample web app which shows

Re: Is Shale the way forward?

2005-11-17 Thread pc leung
As you memtion JSF over Struts 1.x is definitely on the upswing, why to use shale? why not just MyFaces? any additional value added by shale? Thanks On 11/18/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 11/17/05, pc leung [EMAIL PROTECTED] wrote: I have the same question too. Next

[shale] any installation guide and tutorial?

2005-11-15 Thread pc leung
I'd like to give it try. But in the documentation web page of shale, there is no installation guide. I do not know how to install it. It contains api only. Any installation guide or tutorial of using shale with myfaces? Moreover, in the shale-framework, it has a struts-shale-usecases.war. I put

Re: Integrate Hibernate in Struts

2005-11-15 Thread pc leung
there is an example of using hibernate and struts in myeclipseide web site. On 11/15/05, Gaet [EMAIL PROTECTED] wrote: HI guys! I'm currently integrating Hibernate in a web application with Struts. For those, who managed this integration, I'd have just simple questions : What's the

Re: [OT] JSF Interface Design - Is it Truly Limited?

2005-11-14 Thread pc leung
Ronald I am also thinking of switching to JSF. Do you use Shale, MyFaces or Sun JSF? Any reasons your company starts to use JSF as I am standing at the cross road of Struts and JSF? Thanks On 11/14/05, Ronald Holshausen [EMAIL PROTECTED] wrote: Hi Mike, I have switched from struts to JSF

Re: [OT] JSF Interface Design - Is it Truly Limited?

2005-11-14 Thread pc leung
need to implement any interfaces or extend base classes, which leaves your presentation java code more independent of the JSF APIs. On 14/11/05, pc leung [EMAIL PROTECTED] wrote: Ronald I am also thinking of switching to JSF. Do you use Shale, MyFaces or Sun JSF? Any reasons your

Re: How to clear DynaActionForm?

2005-11-09 Thread pc leung
Thnx On 11/9/05, Hubert Rabago [EMAIL PROTECTED] wrote: You can set the form's scope to request. This way, the values don't survive from one request to the next. Hubert On 11/8/05, pc leung [EMAIL PROTECTED] wrote: even the following cannot clear fields in form-bean name

How to clear DynaActionForm?

2005-11-07 Thread pc leung
struts-config.xml: form-bean name=userProfileForm type=org.apache.struts.validator.DynaValidatorForm DispatchAction class: DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.reset(mapping, request); return mapping.findForward(success); The reset function does not clear

Re: [OT] Trick or Treat? (aka +1 for Struts)

2005-11-02 Thread pc leung
The result of poll makes me feel disappointed. It strengthens the rumours of the death of struts. On 11/1/05, Ted Husted [EMAIL PROTECTED] wrote: There's an interesting poll posted at About.com http://About.com that asks Java web developers: Which framework would do you plan to use on your

where to define log level

2005-11-02 Thread pc leung
In the mailreader example of struts, there are lines of log.isTraceEnabled() log.isDebugEnabled() Where to make the trace or debug enable or disable? Thanks

Validator start immediately when page displays?

2005-10-24 Thread pc leung
When the first time the web page displays, the validator hightlights fields which are blank. However submit button is not clicked yet. Instead of hightlighting errors at the first time of web page displays, can the errors be shown up after the submit button is clicked? (My web page has a tile

How to set attribute in ForwardAction?

2005-04-07 Thread Daniel PC Leung
I make use ForwardAction to go from page A to page B, just clicking a link. e.g. action path=/userAccountMaintPath type=org.apache.struts.actions.ForwardAction parameter=user.userAccountMaint/ There are no form in between. How can I set an attribute in page A so that I

Re: How to set attribute in ForwardAction?

2005-04-07 Thread Daniel PC Leung
you away from linking directly to a jsp. Al -Original Message- From: Daniel PC Leung [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 10:13 AM To: Struts Users Mailing List Subject: How to set attribute in ForwardAction? I make use ForwardAction to go from page

How to assign value to variable from property?

2005-04-05 Thread PC Leung
Hello all, The following can print a value in jsp file. bean:write name=loginForm property=username/ How to assign the value to a variable in jsp from a property? Thanks PC Leung - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to assign value to variable from property?

2005-04-05 Thread Daniel PC Leung
, Leon Rosenberg [EMAIL PROTECTED] wrote: bean:define id=variable_name type=...bean:write name=beanname property=propertyname//bean:define Do you mean this kind of assignment? Regards Leon -Ursprüngliche Nachricht- Von: PC Leung [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5

Re: Tiles does not function in case validation error?

2005-03-15 Thread Daniel PC Leung
validation fails and can send the visitor to the failure mapping instead of using the action's input attribute. Regards, David -Original Message- From: Daniel PC Leung [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 8:52 AM To: Struts Users Mailing List Subject: Tiles does

Tiles does not function in case validation error?

2005-03-14 Thread Daniel PC Leung
In case validation error, the header, footer and menu portions disappear when error messages display on top of the body page which occupies the whole screen. If I can click cancel or validation is okay, Tiles function properly. Only the body page is changed. actionpath=/chgPassword

How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
I have a standand Tiles layout. ie. it has header, Left, Body and footer. In one of the body, I have this. td html:link page=/UserAccountMaint.jsp bean:message key=securityMaint.userAccountMaint/ /html:link /td Whenever it is clicked, only the body portion is changed. I

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
-defs.xml configuration properly you can eliminate lots of files. But I don't use that file yet. -Eric [EMAIL PROTECTED] 3/2/2005 12:53:59 PM I do not think it's possible... I hope someone can prove me wrong. --- Daniel PC Leung [EMAIL PROTECTED] wrote: I have a standand Tiles layout

Re: tiles definition overload

2005-03-02 Thread Daniel PC Leung
The email name of Jonathan wo_shi_ni_ba_ba means I am your father. Is it appropriate to be on list and let other child to answer Jonathan's question? On Wed, 2 Mar 2005 17:31:21 -0800 (PST), Jonathan M Z [EMAIL PROTECTED] wrote: It will be 5. You can overwrite the value of the var in your jsp

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
: Daniel PC Leung [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 7:29 PM To: Struts Users Mailing List Subject: Re: How to reduce jsp files by using Tiles? Yes, I am using tiles-def.xml If mylayout.jsp is defined in tiles-def.xml, do I have to write a mylayout.jsp? If yes, then I

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Daniel PC Leung
After download and installation, nothing happens. What is the purpose of installation if it does nothing. On Wed, 23 Feb 2005 23:46:45 +0100, Leon Rosenberg [EMAIL PROTECTED] wrote: Ever wondered if there is any software at all that holds the promise? Well, I found one:

How to get attribute of Form from Controller class?

2005-02-23 Thread Daniel PC Leung
The following class extends Tiles Controller class. After user logins, it cannot get the value of login username from the class LoginForm. How can I change the code so that it can get the value of login username? Thnx public void perform (ComponentContext context,

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Daniel PC Leung
Oh my god! I am cheated. On Wed, 23 Feb 2005 20:34:51 -0500, James Mitchell [EMAIL PROTECTED] wrote: Exactly! -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Daniel PC Leung [EMAIL

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Daniel PC Leung
no need to guess if I am vey dumb because I am really dumb. I do download and install it! Should we honor the person who write NaDa version 0.5? He affords to maintain web site and write a program for different platform. Best of all, the program does nothing. It takes time and money. On Wed, 23

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Daniel PC Leung
and install something they didn't understand, that's just crazy!! -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Daniel PC Leung [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Daniel PC Leung
for the National Automotive Dealers Association (www.nada.org). -Original Message- From: Daniel PC Leung [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 11:15 PM To: Struts Users Mailing List Subject: Re: [OT] [FUN] Software that works! Pls forgive me because

How can the controller class of Tiles get the attribute of other Action class?

2005-02-21 Thread Daniel PC Leung
I have the following controller class. I would like to change the parameter of createMenuItem dynamically based on the user group after login. How can the controller class of Tiles get the attribute of of other Action class? Thanks public class MyMenuAction implements Controller {

any free tools to design layout with Struts?

2005-01-31 Thread Daniel PC Leung
When the layouts are done by Tiles and they are composed of a number of JSP files and Tiles definitions, any tools to facilitate layout design? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

How to get the item of ArrayList?

2005-01-25 Thread Daniel PC Leung
The error message looks like this. [ServletException in:/layout/tabsLayout.jsp] java.util.ArrayList' The tabsLayout.jsp file looks like this. (How can I solve it? Thanls) logic:iterate id=tab name=tabList type=org.apache.struts.tiles.beans.MenuItem % String href = request.getRequestURI()

how to substring with JSTL taglib

2005-01-20 Thread PC Leung
I do not know how to display graphics in tab index of Tiles layout. So that I modify the tabsLayout.jsp to display graphics. In order to do that, I try to check the tab index name if it is ended with .gif. I add the taglib at the front of tabsLayout.jsp like this %@ taglib

How to define taglib within JSP file ?

2005-01-19 Thread PC Leung
I have attached standard.jar and jstl.jar within my project under /WEB-INF/lib How to define it in JSP file using local jar file? I have tried the following but in vain. % taglib uri=/WEB-INF/lib/standard.jar OR % taglib uri=org.apache.taglibs.standard.tag I just want to use Core prefix=c

Re: How to define taglib within JSP file ?

2005-01-19 Thread PC Leung
EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: PC Leung [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 19, 2005 9:22 AM Subject: How to define taglib within JSP file ? I have attached standard.jar and jstl.jar

Re: Struts Tiles : Image instead of text

2004-12-22 Thread PC Leung
the html/response is sent anyway. Jack On Wed, 22 Dec 2004 12:12:21 +0800, PC Leung [EMAIL PROTECTED] wrote: A simple tile layout: pages1 pages 2 -+--- url1 | url2 | url3 | url4 | For the vertical box layout or tab pages

Re: Struts Tiles : Image instead of text

2004-12-21 Thread PC Leung
, 20 Dec 2004 14:51:40 +0800, PC Leung [EMAIL PROTECTED] wrote: The sample of Tiles contains text only. Can I put images instead of texts where points to a URL? So that it is more nice looking to click an image. Please show a way. Thanks

Struts Tiles : Image instead of text

2004-12-19 Thread PC Leung
The sample of Tiles contains text only. Can I put images instead of texts where points to a URL? So that it is more nice looking to click an image. Please show a way. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For

How to change Tiles's tab?

2004-11-11 Thread PC Leung
For a page or summary tab, a tab is a label of words. Can I change it to an image file? If not, can I add an image file? Moreover, there is a purple border after clicking a tab. Can I change the border color and even remove it? Thanks

struts tiles tab and border

2004-11-05 Thread PC Leung
For page or summary tab, a tab is label of words. Can I change it to an image file? If not, can I add an image file? Moreover, there is a purple border after clicking a tab. Can I change the border color and even remove it? Thanks

Tiles Pages Tabs and Summaries Tabs

2004-11-03 Thread PC Leung
What is the difference between Pages Tabs and Summaries Tabs? It seems that they behaves similarly in Tiles examples. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tiles Summary Tab

2004-11-03 Thread PC Leung
I have tried the implementation of Tiles's Summary Tab. It has a purple boundary and grey tab. How can I 1. add image to tab 2. change color of boundary 3. or remove the boundary. thanks - To unsubscribe, e-mail: [EMAIL

Re: Tiles controllerClass

2004-10-28 Thread PC Leung
be definition name=mydef controllerClass=com.packagename.MyController .. he problem with controllers is that its hard to handle exceptions.. But if you're not doing anything that clever in there then perhaps you'd deem that as okay. Mark On Wed, 27 Oct 2004 23:41:07 +0800, PC Leung

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
out that uses this technique. This approach will allow you to make use of exception handlers. Mark On 26 Oct 2004, at 17:14, PC Leung wrote: Hello world, The following is a fragment of tiles-defs.xml. where MyMenuAction actually is UserMenuAction in Tiles. definition name

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
2004 23:22:03 +0800, PC Leung [EMAIL PROTECTED] wrote: Error messages display as follows. [ServletException in:/layout/menu.jsp] null' java.lang.ClassCastException at org.apache.jsp.layout.menu_jsp._jspService(menu_jsp.java:193) at org.apache.jasper.runtime.HttpJspBase.service

Tiles controllerClass

2004-10-26 Thread PC Leung
Hello world, The following is a fragment of tiles-defs.xml. where MyMenuAction actually is UserMenuAction in Tiles. definition name=erp.menu.home path=/layout/menu.jsp controllerClass=com.common.tiles.MyMenuAction put name=title value=Tiles / putList name=items item

erp backup

2004-10-25 Thread PC Leung
erp backup Tiles OK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: why it fires immediately?

2004-10-19 Thread PC Leung
to this action mapping. -- Jeff PC Leung wrote: WelcomeBody.jsp calls LoginBody.jsp. There is a submit button in LoginBody.jsp. When LoginBody.jsp is shown, the submit button seems to be pressed at the same time. Do I have to define global-forward login? WelcomeBody.jsp

Re: Does Tiles JSP go in pair?

2004-10-19 Thread PC Leung
) into an XML file and using definition names for your Struts forwards. -- Jeff PC Leung wrote: I use two JSP to form a page. Is it necessary? Welcome.jsp: tiles:insert definition=erp.mainLayout flush=true tiles:put name=body value=/WelcomeBody.jsp / /tiles:insert

form tiles link from database?

2004-10-19 Thread PC Leung
definition name=erp.menu.home path=/layout/menu.jsp put name=title value=Tiles / putList name=items item value=xlink=/y.jsp item value=ERP Home link=/index.jsp / Could the link be read from

Re: form tiles link from database?

2004-10-19 Thread PC Leung
:35:36 -0500, Vic Cekvenich [EMAIL PROTECTED] wrote: Yes. I put in the List of tiles into scope. .V PC Leung wrote: definition name=erp.menu.home path=/layout/menu.jsp put name=title value=Tiles / putList name=items item value=xlink=/y.jsp item

Does Tiles JSP go in pair?

2004-10-18 Thread PC Leung
I use two JSP to form a page. Is it necessary? Welcome.jsp: tiles:insert definition=erp.mainLayout flush=true tiles:put name=body value=/WelcomeBody.jsp / /tiles:insert WelcomeBody.jsp: bean:message key=main.welcome/ html:link action=login bean:message key=main.login/ /html:link

why it fires immediately?

2004-10-18 Thread PC Leung
WelcomeBody.jsp calls LoginBody.jsp. There is a submit button in LoginBody.jsp. When LoginBody.jsp is shown, the submit button seems to be pressed at the same time. Do I have to define global-forward login? WelcomeBody.jsp: bean:message key=main.welcome/ html:link action=login bean:message

Still cannot get it thru with Tiles

2004-10-15 Thread PC Leung
Can anyone give me a simple enough example so that I can modify my little app of using Tiles? my little app has basic tiles config header, menu, content and footer. When a URL in JSP of the content layout is clicked, the content layout is expected to change with another JSP. Header, menu and

Struts and Tiles

2004-10-11 Thread PC Leung
I am very new Tiles. I just want the content layout to change and keep header, footer and left menu unchanged. Is it right to change the value programmatically and how? or do it in another way? tiles:insert definition=erp.mainLayout flush=true put name=body value=/xxx.jsp / /tiles:insert

Re: Struts and Tiles

2004-10-11 Thread PC Leung
= /defaultContentUrl.jsp % tiles:insert definition=erp.mainLayout flush=true put name=body value=%=contentUrl% / /tiles:insert I hope there's a better way to do this (maybe through external tile xml configuration files ) but I've never tried. Bj PC Leung a écrit : I am very

How to write Tiles with Struts?

2004-10-09 Thread PC Leung
It is my 1st trial of tiles. Referring the tiles documentation, my index.jsp like this. %@ page language=java % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=erp.mainLayout flush=true / It has header, menu bar, content and footer. It is a classic layout. In the

Do most of you use more than one resource file?

2004-09-26 Thread PC Leung
Hello Do most of you use more than one resource message file? Or just put all messages into one single message file. If only one message file is used, then does it affect performance? eg, if you have many modules such as GL, AP, AL, POS... Thanks PC Leung

Cannot map default resource bundle?

2004-09-22 Thread PC Leung
My struts-config.xml contains more than one resource file. The default one cannot be mapped in bean:message, without specifing bundle. What needs to be changed? (I keep the default resource file for ValidatorForm.) Thanks Error Message: javax.servlet.ServletException: Missing message for key

Where to put the business logics?

2004-09-21 Thread PC Leung
In the mailing list, I have read some people suggesting not to put business logics in Action class. Certainly, business logics should not be in JSP or Form class. Then where should the business logics be put? Thanks - To

Re: Where to put the business logics?

2004-09-21 Thread PC Leung
I strongly agree with you of decoupling business logic and action class. If ejb is the right way, any easy tutorial online? On Tue, 21 Sep 2004 07:23:32 -0700, Michael McGrady [EMAIL PROTECTED] wrote: PC Leung wrote: In the mailing list, I have read some people suggesting not to put

Re: Where to put the business logics?

2004-09-21 Thread PC Leung
(Plain Ole Java Object) implementing your business may be sufficient. BTW, you might be interested in Rod Johnsons Expert J2EE w/o EJB book: http://www.bookpool.com/.x/7dybtc9v34/sm/0764558315 Dennis PC Leung [EMAIL PROTECTED] 09/21/2004 10:03 AM Please respond to Struts Users Mailing

How to specify which resource file to use in validation.xml?

2004-09-01 Thread PC Leung
I have two resources files. How can I specify which resource file to use in validation.xml? message-resources parameter=com.erp.quotation.ApplicationResources key=quotation null=false / message-resources key=user

Re: Is Tiles the right way to go?

2004-08-31 Thread PC Leung
Do you know where the trend will go? your sitemesh or tiles? On Tue, 31 Aug 2004 01:57:03 -0400, Rick Reumann [EMAIL PROTECTED] wrote: PC Leung wrote: I am trying to learn Tiles. Is Tiles the right way to go with Struts? Should I study other tool before sticking with Tiles? Tiles

Re: Is Tiles the right way to go?

2004-08-31 Thread PC Leung
How about other tools such as sitemesh or other? Do I get paid? Yes, and yes. You get paid for your knowledge and skill. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Is Tiles the right way to go?

2004-08-30 Thread PC Leung
I am trying to learn Tiles. Is Tiles the right way to go with Struts? Should I study other tool before sticking with Tiles? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Token is re-generated automatically.

2004-08-28 Thread PC Leung
When a page is displayed with a token, data is inputted into the form. Clicking the submit button will save a record. Then click back previous page. Click the submit button again. Invalid token is detected as expected Error message displays on top of the page. However I find the token is changed.

Re: Token is re-generated automatically.

2004-08-28 Thread PC Leung
? PC Leung wrote: When a page is displayed with a token, data is inputted into the form. Clicking the submit button will save a record. Then click back previous page. Click the submit button again. Invalid token is detected as expected Error message displays on top of the page. However I find

My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
After clicking submit button and then go back previous page, data is still there, click the submit button again. record will be saved once more time. The IsValidToken cannot trap the duplicated submission. Initial page: http://localhost:8080/erp/AddUserProfile.jsp if clicking submit button, goes

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
Weber [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 10:57 AM To: Struts Users Mailing List Subject: Re: My IsValidToken() cannot trap duplicated submission. When you are done processing the submitted form, invoke resetToken. Erik PC Leung wrote: After clicking submit

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
prepare for your processing, // but the first thing is to reset the token resetToken(request); // put your logic here to process your action form return mapping.findForward(goodForwardPage); } -Original Message- From: PC Leung [mailto:[EMAIL PROTECTED] Sent: Friday, August 27

How to embed a method in a link inside a jsp file?

2004-08-26 Thread PC Leung
My JSP file contains a link like this. td html:link page=/AddUserProfile.do?method=setup bean:message key=userMaint.addUserProfile/ /html:link /td This link points to AddUserProfile.jsp. When I click on the link, it gives invalid path error message. How can I embed

Re: How to embed a method in a link inside a jsp file?

2004-08-26 Thread PC Leung
What needs to be done? the entry in struts-config.xml like this. actionpath=/addUserProfile type=com.erp.quotation.AddUserProfileAction name=addUserProfileForm scope=request validate=true parameter=method

How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
The web page displays at the first time with the following error. java.lang.NullPointerException java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1108) java.text.DateFormat.parse(DateFormat.java:333)

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
-0400, Erik Weber [EMAIL PROTECTED] wrote: Is validation turned on in the action mapping for your setup action? If you are using the same form bean for both setup and save actions, the action mappings should have validation turned off for the former and on for the latter. Erik PC Leung

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
. Erik PC Leung wrote: The web page displays at the first time with the following error. java.lang.NullPointerException java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1108) java.text.DateFormat.parse(DateFormat.java:333

Re: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
does your user access to view the blank form in the first place? Erik PC Leung wrote: How can I define it in struts-config.xml as you suggest. my current fragment of struts-config.xml is the following. actionpath=/addUserProfile type

how to use DispatchAction?

2004-08-25 Thread PC Leung
my setup DispatchAction does not show a token when the form first displays. When I click submit button to create record, it shows error messages of handler. What does needs to be done? my flow likes this UserMaint.jsp --- AddUserProfileAction.java (AddUserProfile.jsp) UserMaint.jsp constructs:

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
2004 22:54:33 +0800, PC Leung [EMAIL PROTECTED] wrote: my setup DispatchAction does not show a token when the form first displays. When I click submit button to create record, it shows error messages of handler. What does needs to be done? my flow likes this UserMaint.jsp

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
2004 10:19:04 -0500, Joe Germuska [EMAIL PROTECTED] wrote: At 10:54 PM +0800 8/25/04, PC Leung wrote: my setup DispatchAction does not show a token when the form first displays. When I click submit button to create record, it shows error messages of handler. What does needs to be done? What

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
*. PC Leung wrote: Error message is solved. but the form does not display with token when it displays at the first time. I think the following line does not work properly. UserMaint.jsp constructs: html:link page=/AddUserProfile.jsp?method=setup In the setup

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
=userMaint.addUserProfile/ /html:link Notice the .do on the page attribute. PC Leung wrote: My first web page is page contains links only. No Form nor Action. UserMaint.jsp --- AddUserProfileAction.java (AddUserProfile.jsp) UserMaint.jsp constructs: html:link page

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
to the DispatchAction subclass using the help of JavaScript. PC Leung wrote: UserMaint.jsp (contains links only) calls AddUserProfile.jsp which links with AddUserProfileAction.java (it contains DispatchAction) and AddUserProfileForm.java UserMaint.jsp constructs originally like

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
which links with AddUserProfileAction.java (it contains DispatchAction) and AddUserProfileForm.java On Thu, 26 Aug 2004 00:09:16 -0400, Rick Reumann [EMAIL PROTECTED] wrote: PC Leung wrote: Do you mean my approach is wrong? Originally UserMaint.jsp contains links only. Do I need