garrick chen

Greenhorn
+ Follow
since Jan 16, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by garrick chen

hi
finally, i know what caused the problem form occurring
one of the list contain a null data

the correct Action is below
14 years ago
hi
I am still interested in the tag s:doubleselect
when i open the jsp page then
the tag s:select displays ok
the tag s:doubleselect displays list="freights" ok
but doubleList="sitestylepricemap.get(top.freightid)" shows FreeMarker template error
Is the code below right ?

jsp





Action


14 years ago
thanks a lot
now all the s:action work well
i did sort the action and remove the setter but the members named ****Service

CustomerSortAction
14 years ago
XXXaction.java should be the reason
because i rebuild the XXXaction.java and it works well
isn't the s:action stable???
14 years ago
hi
there is some thing strange
suddenly all the s:action are failure and display nothing with no error message
i've checked the struts.xml and applicationContext.xml
now i have no idea why the problem show up

applicationContext.xml


struts.xml


a.jsp


b.jsp
14 years ago
i use map because my system was unstable and the list didn't work well
now it's ok
thanks a lot
14 years ago
hi
i'd like to save a column named package so use a struts2 tag s:select
when i submit
the column package will save the value 01,02,03,04 or 05 into it
how can i save the real value 25kg into the column package

a.jsp


b.jsp
14 years ago
ok but i still can't display the page correctly
then i found a help page on apache struts2 FAQs
how to repopulate controls when validation fail
now i use action tag and it works well
thanks for your help again
14 years ago
that means applicationContext.xml and struts.xml??
or could you please explain more

i know i have to execute action first
but i don't know how to do it
14 years ago
yap thanks for your help first
now when i startup the tomcat , run the saveOrder.jsp
i got the exception below


i've checked the myeclipse then i found there is no sql(select from customer or product) shown on myeclipse's console
i don't know which step is wrong

my env
myeclipse8,tomcat6,spring2.0,hibernate3.3.2,struts2.0.14,postgresql

src/
bean
dao
daoImpl
service
serviceImpl
14 years ago
hello
i am trying to display customer and product info. on saveOrder.jsp
but only the customer(s:select) could display correctly
and on myeclipse only show a sql for customer
could anybody tell me how to fix it

CustomerSortAction


portion of saveOrder.jsp


bean
14 years ago
thanks a lot
now i prefer to use DWR to execute
14 years ago
hi everyone
i've tried to doubleselect two different columns on the same table but don't work

action.java

myeclipse shows the query happens

portion of saveOrder.jsp


select.jsp


and explorer show the error message



the first drop down menu displays ok but the second doesn't work
could somebody help me to resolve
14 years ago