Bean named .. must be type of ...

2010-05-24 Thread Sam Wun
Dear everyone, I know this may not be the problem of struts, but you guys may knows the answer. I am using Liferay portal 5.2.3 and I want to overwrite a method in a liferay source class. Therefore I have created my own Wrapper class and I want it to be used. I realised I need to separate the

Why tiles-defs?

2009-08-19 Thread Sam Wun
Hi, Can anyone tell me why use tiles-defs? I used traditional structs from an Action class forward/redirect to a jsp file. With tiles-defs, I just simply added code to this file to achieve the url redirection. Case scenario: I want to forward to two different search jsp files from another jsp

2-dimensional array.

2009-07-27 Thread Sam Wun
Hi, sorry this is not a Struts specific question, but I am working on a JSP file that is related to the Struts. I believe most of you guys are using JSP with struts, so I hope I can get some help here. I want to declare a String 2-dimensional array in JSP as follow: String cat_sections[] =

How to fix this error.

2009-07-22 Thread Sam Wun
Hi, I got the followiong error when I tried to compile it with Ant: # ant Buildfile: build.xml compile: [javac] Compiling 2 source files to /usr/liferay-portal-5.2.3/dev/portlets/sample-datagrid/docroot/WEB-INF/classes [javac]

source code for examples

2009-07-21 Thread Sam Wun
Hi, Can anyone show me a link where I can download the example source codes from the following link: http://struts.improve-technologies.com/faqs/lists.html Very appreciate for any answers. Thanks Sam - To unsubscribe, e-mail:

Re: source code for examples

2009-07-21 Thread Sam Wun
Newtonnewton.d...@yahoo.com wrote: Sam Wun wrote: Can anyone show me a link where I can download the example source codes from the following link: http://struts.improve-technologies.com/faqs/lists.html http://struts.improve-technologies.com/download.html

Re: source code for examples

2009-07-21 Thread Sam Wun
, Dave Newtonnewton.d...@yahoo.com wrote: Sam Wun wrote: Can anyone show me a link where I can download the example source codes from the following link: http://struts.improve-technologies.com/faqs/lists.html http://struts.improve-technologies.com/download.html

Re: source code for examples

2009-07-21 Thread Sam Wun
I thought the project owner read this mailing list? On Wed, Jul 22, 2009 at 1:20 PM, Dave Newtonnewton.d...@yahoo.com wrote: Sam Wun wrote: For example, where is the source code for collections.do? Here is the link for the example demo, but there is no source code. http://struts.improve

How to correct this syntax for multiple submit buttons?

2009-06-27 Thread Sam Wun
Hi, here are the offending lines in my jsp file: html:form submit onsubmit=return submitFunction() value=Sign In / html:form submit onsubmit=return submitFunction() value=Cancel Checkout / html:form submit onsubmit=return submitFunction() value=New Visitor / Errors on console:

Re: Pre setAttribute for a form

2009-06-26 Thread Sam Wun
yah, this is old school answers. :D I have resolved the problem already by applying old school technique. :D On Fri, Jun 26, 2009 at 6:21 PM, Nils-Helge Garli Hegviknil...@gmail.com wrote: Don't have any more ideas, but generally, the message cannot find bean in any scope means exactly what it

canncellable with isCanncelled()

2009-06-26 Thread Sam Wun
Hi, There are 3 buttons on the jsp web page, first one is submit (sign in), another one is Cancel, the third one is something else. I used html:cancel for the Cancel and something else. I also included this.isCancelled() conditional check in the execute() method; as well as included

Re: Pre setAttribute for a form

2009-06-25 Thread Sam Wun
I just tried your suggestion, it doesn't work. The page flow is: RedirectAction - RedirectHelpAction - RedirectStep3Action Here is the RedirectAction.java file: import org.apache.commons.logging.LogFactory; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import

Re: Pre setAttribute for a form

2009-06-25 Thread Sam Wun
Like I have said before, if I manually navigated to the RedirectHellpForm page , then reload the first page (RedirectForm), and press the Submit button from the RedirectForm, it can find the name of RedirectHelpForm. My questions is how can I setAttribute(RedirectHelpForm ...) before navigated to

Cannot find bean in scope

2009-06-24 Thread Sam Wun
Hi, Can anyone help me please? I got this errors: 12:42:04,269 INFO [PluginPackageUtil:1391] Finished checking for available updates in 3 ms 12:42:14,020 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:

Pre setAttribute for a form

2009-06-24 Thread Sam Wun
Hi, I noticed the setAttribute() method is called too late in one of my Action class: import javax.portlet.PortletConfig; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import

Re: Pre setAttribute for a form

2009-06-24 Thread Sam Wun
How to do that with session? I am currently setting it in the execute() and render method with the following code: req.setAttribute(RedirectHelpForm, redirectHelpForm); but this is for request rather than session? Thanks for the suggesion. sam On Thu, Jun 25, 2009 at 3:09 PM, Nils-Helge Garli

Forward to another page on Submit

2009-06-23 Thread Sam Wun
Dear all, I have a problem when I click a submit button of a page, it doesn't go straight to the next desired page. Here is my little project: Firstly, I want to show you how it supposed to flow: Input page - Help page But the problem is it does go to the Help page when I click the submit button

Re: Forward to another page on Submit

2009-06-23 Thread Sam Wun
sorry for the typo, I meant it DOESN't go to the Help page when I click the submit button on the Input page. On Wed, Jun 24, 2009 at 12:10 AM, Sam Wunswun2...@gmail.com wrote: Dear all, I have a problem when I click a submit button of a page, it doesn't go straight to the next desired page.

Cannot find bean - Please HELP.

2009-06-23 Thread Sam Wun
Dear all, I was trying to going from one JSP page to another, where each JSP page has a submit button... and a Form bean as well. But when I click a submit button on the first JSP page, it said that the second Form bean is not found in the second JSP page. The workflow is supposed to be:

download link for struts UI Tags?

2009-06-22 Thread Sam Wun
Hi, Can anyone tell me where can I downnload struts (2) UI Tags library? Thanks - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: download link for struts UI Tags?

2009-06-22 Thread Sam Wun
Hi, I actually want to use the struts UI tags s:, but I don't know where to download the library from. Hereis the code I want to implement: s:textfield label=City name=city / s:textfield label=State name=state / tr tdZip+4/td !-- Manually outputting our label -- td

struts tags with class style format

2009-06-22 Thread Sam Wun
Hi, I am very new to struts. I am wondering how to format the text on the submit button with html class? I tried to do something like this: html:submit value=Cancel Checkout html:param class=jc_tran_input/ /html:submit or html:submit value=Cancel Checkout

Can't redirect to another jsp page.

2009-06-22 Thread Sam Wun
Dear all, I have a Registration form, when user click a Sign in button, the OrderAction.java is supposed redirect it to another page, but currently it stay on the same page (the registration form). Please refer to the following codes: -- OrderAction.java /** @struts.action name=OrderForm

Re: Can't redirect to another jsp page.

2009-06-22 Thread Sam Wun
Hi, thanks for the suggestion. How to turn the validation off? Thanks 2009/6/22 Paweł Wielgus poulw...@gmail.com: Hi Sam, it is most likely caused by validation, turn it off if that is the what You want to do. Best greetings, Paweł Wielgus. 2009/6/22 Sam Wun swun2...@gmail.com: Dear

Re: Can't redirect to another jsp page.

2009-06-22 Thread Sam Wun
) What are those funny quot surrounded the path user_info.jsp file? Thanks for the help 2009/6/22 Sam Wun swun2...@gmail.com: Hi, thanks for the suggestion. How to turn the validation off? Thanks 2009/6/22 Paweł Wielgus poulw...@gmail.com: Hi Sam, it is most likely caused by validation

Re: redirect action in s:submit

2009-06-22 Thread Sam Wun
What debugger can you suggest? I also wantn to debug struts in portal, but when there is problem in a protlet, if there is no error msg in the protal log file, I can't see anything wrong in the portal page, because the portal simply refresh the portal page and show the first page. On Tue, Jun 23,

Cannot retrieve mapping for action

2009-06-21 Thread Sam Wun
Dear all, I am a bit confused about generating mapping in the structs-config.xml file (with Xdoclet). Currently, I am getting this error: 15:55:47,890 INFO [PluginPackageUtil:1391] Finished checking for available updates in 2 ms 15:55:54,284 ERROR [PortletRequestDispatcherImpl:316]

empty validation.xml file - please help.

2009-06-21 Thread Sam Wun
Hi, I tried generate a validation.xml file with form name, field property, msg name, and key in the file, but it doesn't generate these information in the file from the struts tags given in my ActionForm java file. Here is the java soruce file I have: package com.XYZ.onlinepayment.portlet;

File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Dear all, Can anyone tell me what is wrong with the following errors: 00:05:59,378 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/order.jsp(1,1) File /WEB-INF/tld/struts-bean.tld not found org.apache.jasper.JasperException:

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
when you can't get to sleep. On Sat, Jun 20, 2009 at 7:42 PM, Sam Wun swun2...@gmail.com wrote: Dear all, Can anyone tell me what is wrong with the following errors: 00:05:59,378 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: /html/portlet

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
the configurations from the web.xml file? Sam Wun wrote: Here is the jsp file load the tld files: % /** %@ taglib uri=http://java.sun.com/portlet_2_0; prefix=portlet % %@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean % %@ taglib uri=http://struts.apache.org/tags-html; prefix=html % %@ taglib

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
is really just organized lightning. On Sat, Jun 20, 2009 at 8:57 PM, Sam Wun swun2...@gmail.com wrote: thanks for the response. I moved the following taglib lines into the /** ***/ area in the jsp file, and the recompile/deploy with ant. It still give me the same errors. Here is the jsp file load

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
://www.brainyquote.com/quotes/authors/g/george_carlin.html - Electricity is really just organized lightning. On Sat, Jun 20, 2009 at 8:57 PM, Sam Wun swun2...@gmail.com wrote: thanks for the response. I moved the following taglib lines into the /** ***/ area in the jsp file, and the recompile/deploy

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
understand why it still complained. Is a problem in my path setting, thus it can't find my OrderForm.class? Thanks On Sun, Jun 21, 2009 at 6:13 AM, Dave Newtonnewton.d...@yahoo.com wrote: Did you un-comment the taglib directives? Sam Wun wrote: Hi, Thanks for the instruction. It works after

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
/henny_youngman.html - I told the doctor I broke my leg in two places. He told me to quit going to those places. On Sun, Jun 21, 2009 at 10:24 AM, Sam Wun swun2...@gmail.com wrote: Opps. I commented out the taglibs in a jsp file. Added back in, now got antoehr problem with the getters: 14:48

how to correctly generate path and type in structs-config.xml file?

2009-06-18 Thread Sam Wun
Hi, I have an Action java source code with package at the top of the file. When I put the package line in the file, ant couldn't generate any content in all *.xml files. If I remove the package line from the java source code, all xml files are generated, but without path (that come after the

Reference xdocpath not found

2009-06-14 Thread Sam Wun
Hi, I just installed xdoclet and created a build.xml file (shown below), but execution of ant command failed with the followoing errors: # ant Buildfile: build.xml compile: BUILD FAILED /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:14: Reference xdocpath not found.

Re: Reference xdocpath not found

2009-06-14 Thread Sam Wun
I think you guys are using Xdoclet with Struts? On Mon, Jun 15, 2009 at 1:27 AM, Dave Newtonnewton.d...@yahoo.com wrote: I think you sent this to the wrong mailing list. Dave Sam Wun wrote: Hi, I just installed xdoclet and created a build.xml file (shown below), but execution of ant

Re: Reference xdocpath not found

2009-06-14 Thread Sam Wun
. Dave Sam Wun wrote: Hi, I just installed xdoclet and created a build.xml file (shown below), but execution of ant command failed with the followoing errors: # ant Buildfile: build.xml compile: BUILD FAILED /usr/liferay/liferay-portal-5.2.2/dev/portlets/online

About logic:messagesPresent

2009-06-08 Thread Sam Wun
Hi, I have some problem using Struts with JSP. I got an error here: org.apache.jasper.JasperException: An exception occurred processing JSP page /html/portlet/contact_us_portlet/input.jsp at line 35 32: 33: logic:messagesPresent 34: span class=es-error 35: bean:message

Most popular classes to be used in Struts

2008-04-09 Thread Sam Wun
Hi, What are the most popular classes to be used in Struts? Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Eclipse with struts

2008-04-02 Thread Sam Wun
Hi, I am new to Eclipse and Struts. When I tried to follow the tutorial as shown in the following link: http://www.laliluna.de/first-steps-using-struts-tutorial.html my newly created project in Eclipse don't have Struts libraries in the list. What should I do to import Struts in to Eclipse?

Re: Eclipse with struts

2008-04-02 Thread Sam Wun
- Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, April 2, 2008 11:46:06 PM Subject: Re: Eclipse with struts --- Sam Wun [EMAIL PROTECTED] wrote: When I tried to follow the tutorial as shown in the following