[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: On the current page, a combobox displays data. When user clicks one of the data, and then clicks the submit and then

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

2006-02-22 Thread PC Leung
The above line returns blank. Where goes wrong? In previous page as below, the combo box has values. struts-config.xml is

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

2006-01-11 Thread pc leung
he value of previous page 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: &

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 How to get the value selected in action class ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

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

2006-01-10 Thread pc leung
wrote: > pc leung ha scritto: > > >type="com.user.struts.form.UserSystemForm" /> > > > > > >public class UserSystemForm extends ActionForm implements Serializable { > > > > // --

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

2006-01-10 Thread pc leung
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-config.xml > >...

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, UserSystemF

Re: why Input form is skipped

2006-01-04 Thread PC Leung
est) and to see all the relevant > action mappings from your config to help further. > > L. > > PC Leung wrote: > > 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 displa

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 SelectUs

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(" > view

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? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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 th

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 conv

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

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

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 h

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

[shale] why shale?

2005-11-16 Thread pc leung
After downloading MyFaces, I can write a little webapp already. In the shale home page. it lists out a number of features. Together with MyFaces, does shale implement more features than sun jsf? Does shale add jsf features Struts? If I add MyFaces to Struts, can existing struts web app has jsf

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 t

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

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

2005-11-14 Thread pc leung
hat your backing java beans don't > 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

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

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: > &g

Re: How to clear DynaActionForm?

2005-11-08 Thread pc leung
ot;success"); How can the form's fields be cleared after input successfully? Thanks On 11/7/05, pc leung <[EMAIL PROTECTED]> wrote: > struts-config.xml: > type="org.apache.struts.validator.DynaValidatorForm" > > > > DispatchAction class: > DynaActio

How to clear DynaActionForm?

2005-11-07 Thread pc leung
struts-config.xml: DispatchAction class: DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.reset(mapping, request); return mapping.findForward("success"); The reset function does not clear form. How it be cleared? Thanks ---

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

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 that > asks Java web > developers: "Which framework would do you plan to use

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 co

Re: (OT) Re: Struts vs .NET???

2005-07-07 Thread PC Leung
very good article on this topic. http://java.oreilly.com/news/farley_0800.html On 7/7/05, Emmanouil Batsis <[EMAIL PROTECTED]> wrote: > > John Henry Xu wrote: > > >Now I can focus on my job and be more productive by not having to write > getters and setters manually. > > > >Only when I wrote

Re: How to set attribute in ForwardAction?

2005-04-07 Thread Daniel PC Leung
l") %> > > o.a.s.a.ForwardAction is really designed to be used when you don't have > to perform any logic, and to keep you away from linking directly to a > jsp. > > Al > > > -Original Message- > From: Daniel PC Leung [mailto:[EMAIL PROTECTED] >

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. There are no form in between. How can I set an attribute in page A so that I can get the attribute back in page B? Thank you very much! - To unsu

Re: How to assign value to variable from property?

2005-04-05 Thread Daniel PC Leung
property="propertyname"/> > > Do you mean this kind of assignment? > > Regards > Leon > > > -Ursprüngliche Nachricht- > > Von: PC Leung [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 5. April 2005 17:43 > > An: user@struts.apach

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. How to assign the value to a variable in jsp from a property? Thanks PC Leung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tiles does not function in case validation error?

2005-03-15 Thread Daniel PC Leung
orm the validation > call in your Action whenever you need it. That way, you'll know when > validation fails and can send the visitor to the "failure" mapping instead > of using the action's "input" attribute. > > Regards, > David > > -Ori

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

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
o go and > > edit.) > > > > Al > > > > > > -Original Message- > > From: Eric Lemle [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 02, 2005 4:29 PM > > To: user@struts.apache.org > > Subject: Re: How to reduce jsp files by u

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 y

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
> > >>> [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. > > ie. it has he

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. Whenever it is clicked, only the body portion is changed. I have to use 2 jsp files to make it happen, UserAccountMaint.jsp: Can I use only 1 jsp file so t

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

2005-02-23 Thread Daniel PC Leung
t; > it's an acronym -- it stands 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 > > T

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

2005-02-23 Thread Daniel PC Leung
anyone would download 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: "

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 Fe

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 Me

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
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: > > http://www.bern

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 { priv

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) <% String href = request.getRequestURI() + "?"+parameterName + "=" + index; String color = notSelectedColor; if( i

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 uri="http://java.su

Re: How to define taglib within JSP file ?

2005-01-19 Thread PC Leung
; James Mitchell > Software Engineer / Open Source Evangelist > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx > > - Original Message - > From: "PC Leung" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Wednesday, January 19

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 pre

Re: Struts Tiles : Image instead of text

2004-12-22 Thread PC Leung
ghtower.com";)); list.add(createMenuItem ("Trivera", "http://www.triveratech.com";)); return list; } ... } On Tue, 21 Dec 2004 20:47:02 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > Yes. The uploading of the image is after the html/r

Re: Struts Tiles : Image instead of text

2004-12-21 Thread PC Leung
ding. > > Jack > > > On Mon, 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

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 additio

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

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]

Re: Tiles controllerClass

2004-10-28 Thread PC Leung
> Alternatively the example i gave you of a controller would be > > > .. > > 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

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
ot;/myaction.do" > > Mark > > > > On Wed, 27 Oct 2004 23:22:03 +0800, PC Leung <[EMAIL PROTECTED]> wrote: > > Error messages display as follows. > > > > [ServletException in:/layout/menu.jsp] null' > > java.lang.ClassC

Re: Tiles controllerClass

2004-10-27 Thread PC Leung
tems",menuItems); // perhaps application scope > >return doExecute(mapping, form, request, response); >} > } > > Now execute will be run for ever class that subclasses it, and they > will have to use the doExecute(), method.. For more details c

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. ^^ ^^^ Where and how should I put the coding inside MyMenuAction so that I can add a number of items

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: form tiles link from database?

2004-10-19 Thread PC Leung
> Yes. > > I put in the List of tiles into scope. > .V > > > > PC Leung wrote: > > > > > > > > > > > >

form tiles link from database?

2004-10-19 Thread PC Leung
Could the link be read from database? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Does Tiles JSP go in pair?

2004-10-19 Thread PC Leung
(the part in > Welcome.jsp) 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: > > > >

Re: why it fires immediately?

2004-10-19 Thread PC Leung
gin.jsp"/> > > and change the link on WelcomeBody to point 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 show

Re: Does Tiles JSP go in pair?

2004-10-18 Thread PC Leung
AIL PROTECTED]> wrote: > Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381. > It describes how to move your Tiles definitions (the part in > Welcome.jsp) into an XML file and using definition names for your Struts > forwards. > > -- Jeff > > > >

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: struts-config.xml: ---

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: WelcomeBody.jsp: Login.jsp: LoginBody.jsp: ---

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 foot

Re: Struts and Tiles

2004-10-11 Thread PC Leung
; > <% > > String contentUrl = request.getParameter("contentUrl"); > > if (contentUrl == null ) contentUrl = "/defaultContentUrl.jsp" > > %> > > > > > > > > > > > > I hope there's a better way to do this

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? Thank you very much. - To un

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" %> It has header, menu bar, content and footer. It is a classic layout. In the content jsp, it has URL link. It points to

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

Re: [FRIDAY] GMail invites

2004-09-21 Thread PC Leung
invitation sent. On Tue, 21 Sep 2004 14:19:20 +0100, James Neville <[EMAIL PROTECTED]> wrote: > Shailesh Patel wrote: > > >I've got several more if anyone needs em. > >- Shailesh > > > > Love one if you're still handing out ;) > > Cheers > > James. > > This e-mail is confidential. If you hav

Re: Where to put the business logics?

2004-09-21 Thread PC Leung
our needs, a POJO (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 Ple

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

Re: Where to put the business logics?

2004-09-21 Thread PC Leung
Lots of people support the use of EJB. I have not touched EJB before. I have a book about EJB which is quite difficult. I am afraid of being too old to learn. Any other simpler methods for oldies (nearly 41)? - To unsubscribe, e-

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 unsubscr

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? Validation.xml: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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]

Re: Is Tiles the right way to go?

2004-08-30 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 s

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]

Re: Token is re-generated automatically.

2004-08-28 Thread PC Leung
you could post more of your action where you have anything that > uses/resets tokens? > > > > 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 clic

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: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
quot;); > }else{ > // good token so 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"); > > > } > &g

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
ubmission. > > > > > >When you are done processing the submitted form, invoke "resetToken". > > > >Erik > > > > > > > >PC Leung wrote: > > > > > > > >>After clicking submit button and then go back previous

Re: My IsValidToken() cannot trap duplicated submission.

2004-08-27 Thread PC Leung
cannot trap duplicated submission. > > > When you are done processing the submitted form, invoke "resetToken". > > Erik > > > > > PC Leung wrote: > > >After clicking submit button and then go back previous page, > >data is still there, click the s

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: How to stop the first validation when a web page first displays?

2004-08-26 Thread PC Leung
rm, but what path 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-conf

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

2004-08-26 Thread PC Leung
lace? > > 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. > > > > > type="com.erp.quotation.AddUserProfileA

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

2004-08-26 Thread PC Leung
up 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 wrote: > > >The web page dis

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) com.erp.quotation.AddUserProfileForm.getSqlJoinDate(AddUserProfileFo

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. where AddUserProfileAction is a DispatchAction public final class AddUserProfileAction extends DispatchAction { public ActionForward setup (ActionMapping mapping, ActionForm form, Http

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. This link points to AddUserProfile.jsp. When I click on the link, it gives invalid path error message. How can I embed "?method=setup" inside a html:link? Thnx

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 conta

Re: how to use DispatchAction?

2004-08-25 Thread PC Leung
he form that submits 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) &

  1   2   >