Re: [appfuse-user] javax.servlet.ServletException: Java heap space

2008-09-30 Thread BruceLee
Joachim, thanks for advice. However, it happens only on hosting server which I don't have control for debug. Is any general configuration I can try? or some typical mistakes I might make in coding? -Mike Joachim Ansorg-3 wrote: > > Hi, > I think the best way to debug this is to use a profil

[appfuse-user] javax.servlet.ServletException: Java heap space

2008-09-29 Thread BruceLee
Dear Team, I tried hard for this heap space issue for several days. Also searched this forum but couldn't find the proper answer. On my hosting server, I got this error after I viewed 2 or 3 pages. My main page is always OK though. I tried JAVA_OPTS -Xms128m -Xmx512m -Xss1024k -XX:MaxPermSize=12

Re: [appfuse-user] org.springframework.mail.SimpleMailMessage not work with UTF-8?

2007-12-19 Thread BruceLee
12/18/07, Peter Schneider-Manzell <[EMAIL PROTECTED]> > wrote: >> Maybe this forum entry can help you: >> >> http://forum.springframework.org/showthread.php?t=22155 >> >> Bye, >> >> Peter >> >> 2007/12/17, BruceLee <[EMAIL PROTECT

[appfuse-user] org.springframework.mail.SimpleMailMessage not work with UTF-8?

2007-12-17 Thread BruceLee
Dear Team, We want to send Asian character email with UTF-8 encoding. But receiver gets all ?? Our env: appfuse 1.9.4 with WebWork2, Linux Tomcat web server. Not sure what mail server on our web hosting. Thanks! -Bruce -- View this message in context: http://www.nabble.com/org.springframew

[appfuse-user] Auto copy data from JSP page to data model when clicking a button

2007-12-17 Thread BruceLee
Dear Team, My User form also has a 'Upload' button to upload user's picture. But After user uploads a file and redirects back User form, the changes just made on editbox (like First Name) are gone. Is it any way, when user clicks 'Upload', code logic copies the data on JSP page to data model Use

Re: [appfuse-user] Auto copy data from JSP page to data model other than clicking 'Submit'

2007-12-11 Thread BruceLee
Thank Mike for response. I use AppFuse 1.9.4 with WebWork. -Bruce Mike Horwitz wrote: > > Hi, > > It may help if you could let us know which web framework and version of > AppFuse you are using? > > Mike > > > On 12/7/07, BruceLee <[EMAIL PROTECTED]>

[appfuse-user] Auto copy data from page to data model other than clicking 'Submit'

2007-12-07 Thread BruceLee
Dear Team, My User form also has a 'Upload' button to upload user's picture. But After user uploads a file and redirects back User form, the changes just made on editbox (like First Name) are gone. Is it any way, when user clicks 'Upload', code logic copies the data on JSP page to data model Use

Re: [appfuse-user] work with excluding set in Hibernate/MySQL

2007-12-05 Thread BruceLee
ble [don't forget to add the other user properties to the select]: > > SELECT user.username, CASE WHEN (city.name IS NULL) THEN 'Other' ELSE > city.name END as city FROM user LEFT OUTER JOIN city on (user.city = > city.name) > > > Nathan > > > - &qu

[appfuse-user] work with excluding set in Hibernate/MySQL

2007-11-28 Thread BruceLee
Dear Team, This question may be best in Hibernate forum. However I give it try here since many are knowledgeable and helpful in this forum. I use appfuse 1.9.4 with WW2. My problem is, There is City field in user table, some users are in big cities like LA, San Francisco and others in not well-k

[appfuse-user] Model driven problem in userForm?

2007-11-28 Thread BruceLee
Dear Team, If a JSP page doesn't include all columns in a table, saving back to database will cause data lose. e.g. In appfuse userForm.jsp, if I comment out "phoneNumber" edit box, when I change lastName on editProfile page and save the form, the previous phone_number in app_user table is gone.

Re: [appfuse-user] Appfuse DateConverter not working?

2007-11-16 Thread BruceLee
Rob, I don't use JSF either. I just use JSP with WebWork2. Rob Hills wrote: > > AppFuse does a good job of identifying Date-type columns and injecting > the appropriate code into generated JSPs so it wasn't hard to work out > how to do it from the generated code. > Can you help give the exa

Re: [appfuse-user] Appfuse DateConverter not working?

2007-11-16 Thread BruceLee
asses/ApplicationResources_zh_CN.properties:date.format=-MM-dd web/WEB-INF/classes/ApplicationResources.properties:date.format=-MM-dd I'm looking forward to your more advice. Thanks again! -Bruce Rob Hills wrote: > > Hi Bruce, > > BruceLee wrote: >> I digged days, tried to search on this foru

[appfuse-user] Appfuse DateConverter not working?

2007-11-16 Thread BruceLee
Dear Team, I digged days, tried to search on this forum, got some good info for my question, but still puzzles. We use 1.9.4 with WebWork. We want default conversion from string on JSP to Date in model using Appfuse DateConverter. I want to use fixed format -MM-dd. Then I set ApplicationReso

Re: [appfuse-user] File Upload behavior not consistent on different web server

2007-11-14 Thread BruceLee
Thank Nathan and John. I have figured out XP working with relative path. -Bruce melinate wrote: > > I think just because it is generally a good idea, or at a minimum a common > requirement. It is pretty simple to change or remove if you are making > your own FileUploadAction based on the one p

[appfuse-user] File Upload behavior not consistent on different web server

2007-11-13 Thread BruceLee
Dear Team, We develop a website that allows user to upload image files to web server. The server will save the file path to database. Then the JSP will retrieve this file path for displaying image on page. But one web server (Windows XP) can only display image with absolute file path like D:\Pro

Re: [appfuse-user] Cannot access database with remote shared web hosting

2007-10-27 Thread BruceLee
ate mappings must be good. There should be a > nested lower level SQL exception which will give more details as to the > exact error. There may also be an issue with sequence numbers for the user > ids - try adding the user a few times, and you may find it magically > starts > worki

[appfuse-user] Cannot access database with remote shared web hosting

2007-10-26 Thread BruceLee
Dear Team, I'm new with Appfuse 1.9.4 with WW2. We have a weird problem: When I test our website locally with Tomcat & MySQL, everything is OK. But after I copy our webapp under Tomcat to remote web hosting, I can only access the JSP pages, not able to access data from database. The error on pag

[appfuse-user] How to connect to multiple databases

2007-10-24 Thread BruceLee
Team, We want to add 3rd party Jars to our webapp. It uses torque as ORM layer and another database name in MySQL. There is no problem at local test, but we have issues when putting it to remote hosting site. Our env Appfuse 1.9.4 with WW2 I noticed myapp.xml is in D:\Programs\Apache Software F

[appfuse-user] Dropbox list for Country and State

2007-10-05 Thread BruceLee
Hi Team, I tried to search in this forum but still have puzzles. Our env is 1.9.4-WebWork2. We want to have a dropbox list for some Countries. If user chooses one, then the State/Province edit box will change to a dropbox list for all states in that country. in userForm.jsp can list countries f

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-10 Thread BruceLee
e the same FileUploadAction.java (or variant) Thanks! -Bruce mraible wrote: > > Your "commandClass" would have two nested objects with getters and > setters. Then in your JSP, you would refer to them as > command.nested1.property and command.nested2.property. > &g

Re: [appfuse-user] pass parameter at sumbit form

2007-09-10 Thread BruceLee
en submit the form - > put the name/value in a hidden field. > > Matt > > On 9/9/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> Team, >> >> I'd like to pass parameter to action at sumbitting a form. However I >> searched this forum an

[appfuse-user] How to pass parameters from 1 action to another, 1 JSP to another with WW2?

2007-09-09 Thread BruceLee
Team, When I search in this form, I actually found the same question, which asked for a Spring solution. However, I'd like a simpler way, e.g. some config in xwork.xml and in JSP. When passing parameter requests to a controller (as request parameters in the URL), is there a way for passing those

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread BruceLee
May I ask how to do that? My experiment appears not to work. When I click the inner form 'Submit', it still calls outer form's action. Thanks! -Bruce mraible wrote: > > You should be able to nest two forms (or data holders) in a parent data > holder. > > Matt &g

[appfuse-user] pass parameter at sumbit form

2007-09-09 Thread BruceLee
Team, I'd like to pass parameter to action at sumbitting a form. However I searched this forum and no luck. e.g when I click 'upload' button, I want to get result url my.com/profileUpload.html?item=myPicture How can I accomplish it from form below? ... " /> Thanks a lot in advance! -

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread BruceLee
I have same issue. On profile page, I want to upload several files (user's picture, favorite things). When user clicks "Upload Picture", a choose file window pops up, after "OK", it returns the profile page and show the recent uploaded picture. I tried to put a > Hello, > > I would like to ask

Re: [appfuse-user] Cannot display WebWork validation error message on same page

2007-09-06 Thread BruceLee
Yes. We did with 1.9.4. Thanks for query! -Bruce mraible wrote: > > Did you get this solved? > > On 8/2/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> I use 1.9 WebWork option. I want to validate username and confirmed >> password >> in register.jsp,

Re: [appfuse-user] AW: Add new function after login

2007-08-27 Thread BruceLee
ner in your > web.xml. That way, you can get the request from a ThreadLocal and get > the session from that. > > http://www.springframework.org/docs/api/org/springframework/web/context/request/RequestContextListener.html > > Matt > > On 8/24/07, BruceLee <[EMAIL PROTECTED]

Re: [appfuse-user] AW: Add new function after login

2007-08-27 Thread BruceLee
the session from that. > > http://www.springframework.org/docs/api/org/springframework/web/context/request/RequestContextListener.html > > Matt > > On 8/24/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> Thank Absolut a lot for sharing the helpful code.

Re: [appfuse-user] AW: Add new function after login

2007-08-24 Thread BruceLee
fter login > > > ACEGI generate Spring application events on login. You will need to create > a > listener to log the appropriate events - do a search on this list, or look > at Spring events on the Spring framework site for more information. > > Mike. > > > On

Re: [appfuse-user] AppFuse 1.9.x validator with WebWork

2007-08-15 Thread BruceLee
That's fine. You are always responsive. We upgraded to 1.9.4 and try to curve these issues. mraible wrote: > > Sorry for the massive delay - did you ever get this resolved? To test > that your AppGen is working correctly, you can perform the following > steps: > > 1. Back up your project or m

Re: [appfuse-user] Cannot display validation error message with WebWork

2007-08-15 Thread BruceLee
Thank Matt. However, I mostly want all error messages show on top of the form. -Bruce mraible wrote: > > You need to use if you want the field errors to show up > next to the input fields - just like signup.jsp and userForm.jsp use. > > Matt > > On 7/31/07, DreamBig <[EMAIL PROTECTED]> wrote

Re: [appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-11 Thread BruceLee
e <[EMAIL PROTECTED]> wrote: >> When you say "it's not working", what do you mean? Do you mean you >> want to bypass the login form for this form? If so, it's really all >> about getting the URLs correct in security.xml. To prove it, remove >> the f

[appfuse-user] Add new function after login

2007-08-10 Thread BruceLee
Team, I want to add some function e.g. storing login date to database after login. What is the hook to add this? Using a filter, interceptor or override some class? My env: 1.9.4 WebWork Thanks! -Bruce -- View this message in context: http://www.nabble.com/Add-new-function-after-login-tf4252462s

Re: [appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-10 Thread BruceLee
> Matt > > On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> Matt, you are right. It doesn't like /user/*. >> However, it still asks me to sign in after I submit the form even I set >> it >> ROLE_ANONYMOUS in security.xml as below >&g

Re: [appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-10 Thread BruceLee
file to control this mapping? Thanks a lot, -Bruce mraible wrote: > > Do you have an Action for register.jsp? It looks like it's getting > confused and links that /user/* maps to UserAction. > > Matt > > On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote: >> &

Re: [appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-10 Thread BruceLee
/signup.html*=ROLE_ANONYMOUS,admin,user > /users.html*=admin > /**/*.html*=admin,user > > > > > Just add the link to your page with ROLE_ANONYMOUS. > > Mike. > > On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >&

[appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-09 Thread BruceLee
Team, I tried to add a new page web/user/register.jsp to my project based on appfuse 1.9.4. When I submit a form on localhost:8080/myprj/user/register.jsp, it redirect to login.jsp. If I login with an active user first, then I get error org.acegisecurity.userdetails.UsernameNotFoundException:

Re: [appfuse-user] java.lang.NullPointerException on log4j

2007-08-09 Thread BruceLee
Yes. It happens always. Thank Matt for reply, -Bruce mraible wrote: > > Does this happen often? If you restart Tomcat (stop/start), does it > happen. Can you reproduce the problem consistently? > > Thanks, > > Matt > > On 8/8/07, BruceLee <[EMAIL PROTECTED]

[appfuse-user] java.lang.NullPointerException on log4j

2007-08-08 Thread BruceLee
Team, When I start tomcat, I got java.lang.NullPointerException on log4j. But I didn't change anything on log4j except set log4j.rootCategory=DEBUG, stdout in log4j.properties. Any ideas? Thanks! -Mike ---catalina.log--- Aug 9, 2007 12:50:07 AM org.apache.catalina.core.AprLifecycleListener lif

Re: [appfuse-user] In JSP page, cannot jump to new .jsp in pages/ directory

2007-08-08 Thread BruceLee
We use AppFuse 1.9 and WebWork. We plan to upgrade to 1.9.4 though. Thanks! Michael Horwitz wrote: > > It all depends on the web framework you have chosen. Which version of > AppFuse, and which web framework are you using? > > On 8/8/07, BruceLee <[EMAIL PROTECTED]> wrote

Re: [appfuse-user] In JSP page, cannot jump to new .jsp in pages/ directory

2007-08-08 Thread BruceLee
Michael Horwitz wrote: > > Normally you do this by pointing to an .html link and then mapping it > through your chosen web tier, e.g. mainMenu.html maps to > mainMenu.jspthrough the web tier. > > Mike. > > > On 8/8/07, BruceLee <[EMAIL PROTECTED]> wrote: >&g

[appfuse-user] In JSP page, cannot jump to new .jsp in pages/ directory

2007-08-07 Thread BruceLee
Team, I'm new user of appfuse. In /web/pages/user/main.jsp, I want to click a link and jump to another .jsp page in pages/ directory. However I also get 404 error. Any advice on config or the code? Thanks a lot in advance! -Mike ...

[appfuse-user] Will AppFuse 2 support WebWork2 flavor?

2007-08-02 Thread BruceLee
I have not seen M5 release includes WebWork2 support. Is it in the roadmap? Thanks a lot! -Bruce -- View this message in context: http://www.nabble.com/Will-AppFuse-2-support-WebWork2-flavor--tf4209338s2369.html#a11974088 Sent from the AppFuse - User mailing list archive at Nabble.com.

[appfuse-user] Cannot display WebWork validation error message on same page

2007-08-02 Thread BruceLee
I use 1.9 WebWork option. I want to validate username and confirmed password in register.jsp, just same as AppFuse's Signup page. The validators seems to work. But the warning message above the register form cannot be displayed. I expect the messages like "Warning Username is a required field. ...