Re: additional onsubmit javascript validation

2010-09-22 Thread Mead Lai
Hi Robert, Do you have another submit button? such as , Try to bind a event listener to this button, that when you click this button, you do some validation(); Another way is using the js to remove the "onsubmit" event, then binding another method you write, and invoke the myValidation() in that

About Type-Conversion

2010-09-24 Thread Mead Lai
Hi All, I try some type-conversion example, and do it step by step following this document: http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-AdvancedTypeConversion Unfortunately, it show nothing, although, I add some c

Re: About Type-Conversion

2010-09-24 Thread Mead Lai
Hello Dave, Thanks for your response so quickly. It is running fine, but show a blank page.No data in the page. There are some "conversion"-examples in "struts2-showcase-2.1.8.1" package; And they are seems working good. Regards, Mead

Re: Logging not working

2010-10-06 Thread Mead Lai
try the tag on the page Regards, Mead On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens wrote: > Hi, > I can't seem to get any errors to appear when struts goes wrong > (action trying to set/get an attribute that doesn't exist etc). I have > the commons-logging-1.1.jar file in my /WEB-INF/lib >

Re: Logging not working

2010-10-06 Thread Mead Lai
t; > Dave > > On Wed, Oct 6, 2010 at 10:39 AM, Darren Karstens > wrote: > > > The tag worked, thanks that will come in handy. I would > > still like to get errors reporting in the logs, any got any ideas? > > > > On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai w

How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
Hello all, I create a simple tag following this link http://joshuajava.wordpress.com/2008/12/27/creating-custom-components-with-struts-2/ but, I am trying to add some extra functions into that tag. Actually, I c

Re: How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
I read the attribute "name" in the template, the Exception log: Attribute theme invalid for tag hello according to TLD org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407

Re: How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
Regards, Mead On Sat, Oct 9, 2010 at 9:31 PM, Li Ying wrote: > Hi Lai: > > The error message looks like the value of the attribute [theme] (in > your jsp) is invalid. > > Can you show us your jsp and TLD file? > > > > 2010/10/9 Mead Lai : > > I read the at

Re: How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
Thank you again. Any Demo or tutorial? I search all of the Struts2 document, but find nothing.

Re: How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
The same error, I have modified the extends class to BaseUI JasperException: /demo.jsp(14,4) Attribute theme invalid for tag hello according to TLD I ref the ui.CheckBox.java, but confused me. Thanks for your replies, All of them inspirit me very much. I will look insight source. Appreciate you.

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Mead Lai
Hello all, I am trying to create my struts2 UI-Tag too. Did you change the org.apache.struts2.views.jsp.ui.CheckboxListTag to your rewritten the Tag-class and the correspond CheckboxList yet? Regards, Mead

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Mead Lai
I mean in the modified "struts-tags.tld": checkboxlist org.apache.struts2.views.jsp.ui.CheckboxListTag JSP It seems nothing changed about the tag-class

Re: How to create a costume struts2 tag? any demo?

2010-10-09 Thread Mead Lai
Hello Li, Thank you for your help, I think I shall ask this question in the dev-mail-list, Maybe I will get the answer. Regards, Mead

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Mead Lai
(template/simple/checkboxlist.tld) to do what I > wanted. > > Essentially I just did what it says on this page entitled "Creating > And Applying Your Own Themes For Struts 2 Tags": > > http://struts.apache.org/2.2.1/docs/struts-2-themes.html > > > On Sat, O

Re: Struts nested and tags

2010-10-28 Thread Mead Lai
Why not using the tag, I haven't use the tag like that, which a form nested another form. Regards, Mead On Thu, Oct 28, 2010 at 7:51 AM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > The first form doesn't contains enctype attribute. Did you try to set > it to multipart/form-dat

Re: The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread Mead Lai
add the tag to check the objects on that page. Regards, Mead

How to use

2010-11-05 Thread Mead Lai
Hi All, I am now using tag with simple theme. It shows two select-list fine, but if I click the button to move the items, it doesn't work. Any clue can help me? Now I am trying to write a double-select with JQury & HTML. Thank you in advance. Regards, Mead

Re: How to use

2010-11-06 Thread Mead Lai
Thanks for you reply. There is a JavaScript Error, shows"no object found", and I checked the page HTML source, found there was no JavaScript files included. Than I add a tag , it cause a exception " no freeMark template found". It seems the tag was obsolete. Regards, Mead

Re: Setting css of a row

2010-11-06 Thread Mead Lai
right, set a property in Action. private String color; private String css; then generate get/set. ... Regards, Mead

Re: How to use

2010-11-06 Thread Mead Lai
e before I can tell what is > getting wrong. > > > > 2010/11/6 Mead Lai : > > Thanks for you reply. > > There is a JavaScript Error, shows"no object found", and I checked the > page > > HTML source, found there was no JavaScript files included. > > T

Re: How to use

2010-11-06 Thread Mead Lai
Appreciate all of you very much. Is the "/struts/optiontransferselect.js" included in the struts-core.jar? I am confused why the "optiontransferselect.js" was not automatically imported/generated into HTML page. I config the "struts.theme = simple" for entire project. Regards, Mead On Sat, Nov 6

ONGL & EL expression problem.

2010-11-08 Thread Mead Lai
Hello all, I have a Action contain a list List, and a String property titleID, how to display the value from list? Detail code is here: //**IndexAction** public class IndexAction{ private List list; private String titleID; //get & set public String viewPage() { //#{'a1'

struts2.1 validation problem! with "fileUploadStack"

2010-11-17 Thread Mead Lai
Hello all, I am now using struts2 "UserInfoAction-doModify-validation.xml" to validate my form input. It is work fine. but when I add a interceptor into this action, the validation not work anymore. /WEB-INF/pages/usermanage/modifyUser.jsp IndexAction_search Does anyone get th

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-17 Thread Mead Lai
While, I add the default interceptor into that action, everything work fine. But I am also do not know why,Ha ha... Thank you, all... Regards, Mead On Thu, Nov 18, 2010 at 2:19 PM, Mead Lai wrote: > interceptor

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-18 Thread Mead Lai
Thank you, Dave. Your explain is helpful for me to understand it. I want to validate the birthday in struts2 validation.xml, The range of date is between 1900-01-01 and current Date. How to get current date time in the struts2 validation.xml,? Thanks! 1900-01-01 ${current Date} your birthday s

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-19 Thread Mead Lai
roperty in your validation > configuration. > > If both of these don't work, you have to implement your check by a > validate method in your action. > > > 2010/11/19 Mead Lai : > > Thank you, Dave. > > Your explain is helpful for me to understand it. > > &g

Re: JSON plugin suggest : parse String value "" to Number with null / 0

2010-11-22 Thread Mead Lai
Hello Knight, I think you can change the Value-Object(Model obj), modify the get method code: if(this.value.equal("")){ this.value=null; or this.value=0 } You can pass a Value-Object to server side, instead of Json-Text formation. Regards, Mead On Mon, Nov 22, 2010 at 8:12 PM, K

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Mead Lai
Hello, 1,convert the munber into string in the jsp/view page. 2,write a JSTL to render that dataType by your self. Regards, Mead On Tue, Dec 7, 2010 at 10:25 AM, Yanto Bong wrote: > Hi Li, > > thanks...unfortunately we already use this model in many places and we need > to have BigDecimal ret

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Mead Lai
you can use JsonLib, following is the usage. http://json-lib.sourceforge.net/usage.html I do not really clear your requirement, if you provide a example would be better. Regards, Mead On Sat, Dec 18, 2010 at 5:58 AM, Ken McWilliams wrote: > build a url with parameters so I can return it as a JS

Re: Jquery field validation

2010-12-29 Thread Mead Lai
Hello Karthick, you can use some plug-in: http://code.google.com/p/struts2-jquery/wiki/Validation or Jquery validate plug-in: http://jquery.bassistance.de/validate/demo/ Regards, Mead On Thu, Dec 30, 2010 at 2:33 PM, wrote: > > Any body tell be how to do jquery filed validation using struts 2

Re: generate SQL Hibernate Query using session

2011-02-17 Thread Mead Lai
I think you may use the Composite Class in Hibernate. Query q = session.createQuery (" select new NewCompositeClass(members, classInfo.className) " + " from Members members, ClassInfo classInfo " + " where members.level = classInfo.classCode "); and you need a class:NewCompositeClass.java

Re: refresh table every 5 sec

2011-04-30 Thread Mead Lai
it's nothing about s2, you just use javascript ajax to request you user list from Server side, every 5min. Regards, Mead On Sun, May 1, 2011 at 1:42 AM, newbee7 wrote: > I am new into struts2, > I wanted to create a page having two section(upper, lower) . In upper > screen > i wanted to displa

Re: Dynamic radio buttons with bean

2008-09-10 Thread Mead Lai
use servlet the get the html, create the item name from database; then use servlet request get the value in the html, the name of buttons U can get from database 2. I think it's simple than others. -- BestRegards, Mead http://yayisoft.com Jack Benny - "I don't deserve this award, but I have arth

Re: how to pass parameter in next action

2008-10-06 Thread Mead Lai
attriblist AddComboValue?parm1=${value} append the actionName "AddComboValue?parm1=${value}", but no ".action". It's OK! On Tue, Oct 7, 2008 at 1:22 PM, Hardik Shah <[EMAIL PROTECTED]> wrote: > > can anybody say how to pass or push parameter in valuestack

Re: Upload file without struts 2

2008-10-06 Thread Mead Lai
config the servlet-mapping. alter the URL, that some old modules url don't filtered by struts2! On Tue, Oct 7, 2008 at 11:30 AM, Po Po <[EMAIL PROTECTED]> wrote: > Hello, > Some modules in my application not yet migrate to struts 2. > upload file doesn't work (using commons file upload), because

Re: how to pass parameter in next action

2008-10-06 Thread Mead Lai
reply > > and how i can get this parameter in my addattribute action java file > > using actioncontext or what? > > > > > Mead Lai wrote: > > > > > class="com.docmgmt.struts.actions.attribute.SaveAttribute"> > >attri

Re: how to remove dojo in struts 2.0.11.2

2008-10-12 Thread Mead Lai
theme=sample, struts ajax need dojo On Sun, Oct 12, 2008 at 9:33 PM, kay2008 <[EMAIL PROTECTED]> wrote: > > I wonder how struts2 import dojo for me, > is that a built-in part, > can i turn if off in some configration file? > -- > View this message in context: > http://www.nabble.com/how-to-remov

How to pass params with 'URL herf'

2008-10-12 Thread Mead Lai
How to pass params with 'URL herf'? well, the params data wanne pass to Model's property. such, I have a "page" object in myAction, with get and set method. public class myAction{ private Page page; } public class Page{ public int index; public int next; } my struts tag is : 12 Index Page

How to pass Model.value params with 'URL herf'?

2008-10-12 Thread Mead Lai
How to pass params with 'URL herf'? well, the params data wanne pass to Model's property. such, I have a "page" object in myAction, with get and set method. public class myAction{ private Page page; } public class Page{ public int index; public int next; } my struts tag is : 12 Index Page

How to pass params with 'URL herf'?

2008-10-12 Thread Mead Lai
How to pass params with 'URL herf'? well, the params data wanne pass to Model's property. such, I have a "page" object in myAction, with get and set method. public class myAction{ private Page page; } public class Page{ public int index; public int next; } my struts tag is : 12 Index Page

How to pass params to Action model.value with 'URL herf'?

2008-10-12 Thread Mead Lai
How to pass params with 'URL herf'? well, the params data wanne pass to Model's property. such, I have a "page" object in myAction, with get and set method. public class myAction{ private Page page; } public class Page{ public int index; public int next; } my struts tag is : 12 Index Page

How to pass params to Action model.value with 'URL herf'?

2008-10-12 Thread Mead Lai
Hi All, How to pass params with 'URL herf'? well, the params data wanne pass to Model's property. such, I have a "page" object in myAction, with get and set method. public class myAction{ private Page page; } public class Page{ public int index; public int next; } my struts tag is : 12

Re: devMode dead

2008-10-12 Thread Mead Lai
havan't try it before! On Mon, Oct 13, 2008 at 2:38 PM, Zoran Avtarovski <[EMAIL PROTECTED]>wrote: > Hi Adam, > > For what little it¹s worth we just finished up an intensive I18n project > using dev mode and it worked as expected. We use netbeans and tomcat but > the > altered properties file was

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
; } } --BestRegards, Mead On Mon, Oct 13, 2008 at 4:15 PM, Lukasz Lenart <[EMAIL PROTECTED] > wrote: > 2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > > How to pass params with 'URL herf'? > > well, the params data wanne pass to Model's property. > > such,

Is there some problem with maillist server ? I awalys get failture message about delivery .

2008-10-13 Thread Mead Lai
Action: failed Status: 5.1.1 -- Forwarded message -- From: "Mead Lai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Date: Mon, 13 Oct 2008 16:22:06 +0800 Subject: Re: How to pass params with 'URL herf' -- BestRegards, Mead http://yayisoft.c

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
well, It's not work, It throw NullPointException at following line: System.out.println("##index" + this.page.getIndex()); It seems page object haven't been created? full code: public class myAction{ private Page page; public Page getPage() { return page; } public void s

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
oid setIndex(int index) { this.index = index >= 0 && index <= this.getNum() ? index : 0; } On Mon, Oct 13, 2008 at 4:44 PM, Lukasz Lenart <[EMAIL PROTECTED] > wrote: > 2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > > well, It's not work, > &

Re: Hibernate and Struts

2008-10-15 Thread Mead Lai
haven't use this plug before. but I think Spring-plug-in, would be better! It's less config! On Wed, Oct 15, 2008 at 11:04 AM, Anoop <[EMAIL PROTECTED]> wrote: > Hi, > We are looking forward to integrating struts with hibernate in our web > application project. Could you guide us on how to to in

Re: Want to make dropdown () readonly without making it disabled

2008-10-17 Thread Mead Lai
May, write yourself define struts2-Tag is good solution. On Fri, Oct 17, 2008 at 1:18 PM, arunabh <[EMAIL PROTECTED]>wrote: > > Hi , > > Thank you for the reply . But the side you reffered me to , they charge > money for signing up . And without signing up i can't see the solutions . > So > could

Re: Is it a bug for

2008-10-17 Thread Mead Lai
the param like %{id} you shall use tag On Thu, Oct 16, 2008 at 5:00 PM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > Hi, all > When I use , everything > works well, struts2 generate the html as below: > > But when I want to add some parameters, and change the code as: namespace="website" action="e

user@struts.apache.org

2008-10-19 Thread Mead Lai
use Tag. In the result page.jsp of actionTagAction, shall I contain "<%@ page language="java" contentType="text/html; charset=GBK"%> <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>" at the first line in the jsp file? And can the page, which include "actionTagAction", access the values in the "

Re:

2008-10-19 Thread Mead Lai
I did a test a minute age. The jsp Page is impossible to get the value in the inlcluded action, but "actionTagAction" can get params from the jsp. May everyone now is in bed now. thx. On Mon, Oct 20, 2008 at 10:21 AM, Mead Lai <[EMAIL PROTECTED]> wrote: > use Tag. > >

how to find out the NULL value?

2008-10-20 Thread Mead Lai
Hi All, Show something here Show something here which is right Tag above? I heared, It can't use like that expression after 2.0.11version, really? Any feedback is appreciated. -- BestRegards, Mead http://yayisoft.com Bob Hope - "A James Cagney love scene is one where he lets the other guy liv

Re: how to find out the NULL value?

2008-10-20 Thread Mead Lai
like this format? Show something here Thank you very much. On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > I use > > username neq null > > or > > usename eq null > > Al. > > Mead Lai wrote: > >> Hi All, >> >> S

Re: how to find out the NULL value?

2008-10-20 Thread Mead Lai
I use can't find the blank String(""), like '' On Mon, Oct 20, 2008 at 3:31 PM, Mead Lai <[EMAIL PROTECTED]> wrote: > like this format? > Show something here > Thank you very much. > > > On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL P

Re: How to read selected items from listbox in action??

2008-10-20 Thread Mead Lai
private List checkBoxIds; use bove List in Action; You'll get some String about 'fieldValue' in Tag. On Tue, Oct 21, 2008 at 4:34 AM, A. Lotfi <[EMAIL PROTECTED]> wrote: > Hi, > If you have a listbox and you selct items or all items and submit to an > action, how to read the selected items in

Re: File Upload into database

2008-10-20 Thread Mead Lai
There is Example in the "show-case" app, which is contain with the struts Full Releases package. simplely, U add into Action: private String uploadContentType; private String uploadFileName; private File upload; and use Tag in the jsp Page. U can get file just call upload field. On Tu

Re: [ANN] VTD-XML extended edition released

2008-10-21 Thread Mead Lai
supports 256 GB max file sizes?? Any system memory requirement? Wanne PC memory larger than 256G? There is no pc support so max memory now. On Wed, Oct 22, 2008 at 10:24 AM, jimmy Zhang <[EMAIL PROTECTED]> wrote: > The Java version of extended VTD-XmL is released and available for > download. > T

Re: s2 Checkbox problem

2008-10-22 Thread Mead Lai
in the Action, you need a list; List checklist;//getter & setter then, you can get the fieldValue="Y" in the struts tag, from field "checklist" in the Action. and the value is the same value in html tag value="Y". On Wed, Oct 22, 2008 at 3:50 PM, Harden ZHU <[EMAIL PROTECTED]> wrote: > I have a

Re: [ANN] VTD-XML extended edition released

2008-10-22 Thread Mead Lai
T5440 Server is server, not pc. The common PC we have, is less than 4G memory. 2008/10/22 Paweł Wielgus <[EMAIL PROTECTED]> > Hi Mead, > yes there are, > just looking at the sun offer, T5440 Server -> 512G. > > Best greetings, > Paweł Wielgus. > > 2008

Re: Unable to get messages from Message resources file for keys

2008-10-23 Thread Mead Lai
Wrong configuration! Do U add struts-spring-plugin.jar to the lib folder? Any config in the struts.properties and web.xml to correct load spring context with context-listener? On Thu, Oct 23, 2008 at 3:20 PM, Rajiv Singla <[EMAIL PROTECTED]>wrote: > > Configuration: Websphere 6.1.0.19 App Server,

Re: [S2] actions responding only to POST/GET methods

2008-10-27 Thread Mead Lai
. How can i write an action, that only serves GET / POST requests. or On Tue, Oct 28, 2008 at 11:09 AM, esemba <[EMAIL PROTECTED]> wrote: > > I've a simple question. How can i write an action, that only serves GET / > POST requests. Lets suppose I've an actions that authenticates users. In >

Re: [S2] actions responding only to POST/GET methods

2008-10-27 Thread Mead Lai
r (and thus use GET method), the action will work > as well. > Thank you for your suggestions. > > > > > > Mead Lai wrote: > > > > . How can i write an action, that only serves GET / > > POST requests. > > > > > > or > > > > > >

Re: Struts2 upload

2008-11-01 Thread Mead Lai
On Sun, Nov 2, 2008 at 6:02 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > what is in the fileUpload interceptor stack? Since the setter is never > called, I would wonder if it is a complete stack. > > When you use in an action definition, you are > overwriting the existing stack with the sta

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Mead Lai
"java.lang.UnsupportedOperationException: Don't use default servlet session". Just use the session from ActionContext, don't use the servlet's. protected Map getSession() { return ActionContext.getContext().getSession();//from ActionContext here! } protected HttpServletRequest request(){

Can I put a "public final static" field in the Action, and How to read the static field in JSP page?

2008-11-04 Thread Mead Lai
my Action is: public class myAction extends BaseAction { public final static String BASE_URL = ""; } Should the "BASE_URL " declare as "private" access modifier, and add get() & set() in the Action? How to get the static field in the JSP? Or maybe there is any other way to get "constant" val

Re: What are Pros and Cons for Struts 2?

2008-11-06 Thread Mead Lai
don't like the theme. On Fri, Nov 7, 2008 at 11:48 AM, ryan webb <[EMAIL PROTECTED]> wrote: > Can anyone share to me some of the things you like about > Struts 2 as well some of the things you don't like about struts 2? > > Thanks! > -- BestRegards, Mead http://yayisoft.com J. Paul Getty -

Re: Struts2: Getting multiple values from tag

2008-11-11 Thread Mead Lai
Where the tag will render to HTML, whatever you do in struts2-Tag, the HTML just only pass the value in . so, it seems no good idea. I do it like this: "name,anotherValue,id" is the value you need. join the string value which you wanne get, and separator them with "separatorString", then put

Re: s1: get Class object

2008-11-18 Thread Mead Lai
Do you create an object In the struts Action? or others, i.e formBean? On Wed, Nov 19, 2008 at 1:16 AM, farmer2008 <[EMAIL PROTECTED]> wrote: > > In my project with struts 1.3.5, Class object can only be created via > anInstance.getClass(). If I use Class.forName(...) or .class, I get > java.lang

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-04-30 Thread Mead Lai
Exception starting filter action2 2008/04/29 00:59:30 | at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles from upstair Infomtion, I think it's the problem of filter named "action2" Xml files couldn't be found by the filter. try 2 heck the struts.xml fi

Re: Retrieving action names configured in struts.xml

2008-04-30 Thread Mead Lai
read the struts.xml files, and phrase it On Wed, Apr 30, 2008 at 5:50 AM, Volker Karlmeier <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello struts freaks, > > i would like to implement a rights management for my application. Therefore > I need to retrieve a

Re: problem sending values to dao class

2008-04-30 Thread Mead Lai
There is no RegistrationAction Code here. I think it mostly something wrong in Action. just print the username & password value in the Action, it's no relation with DAO. the following is some sample & demo for download. Wish it's useful for U http://www.learntechnology.net luck, ##

Re: Way to forward to another action in Struts 1

2008-05-01 Thread Mead Lai
just input the URL of Action in the path="someAction": On Fri, May 2, 2008 at 9:02 AM, bhaarat Sharma <[EMAIL PROTECTED]> wrote: > Hi > > I started struts with struts 2 but currently am in a project which is using > struts 1 > > we have tags like these > > type="org.cipe.c

Re: How to get dynamic number of arguments into ActionForm

2008-05-04 Thread Mead Lai
List type On Sun, May 4, 2008 at 7:51 PM, venkat reddy <[EMAIL PROTECTED]> wrote: > I'm using struts 1.2.7 > > I've a poll-posting-form in adminstrator section of my application. format > of the form is as follows. > > pollsubject: String > lastDate:String > choice1:String > choice2:String >

Re: Struts 2 - Namespaces and hiding JSPs in WEB-INF

2008-05-16 Thread Mead Lai
/WEB-INF/web/user/login.jsp My app config like that. It's ok. Haven't get this problem. On Sat, May 17, 2008 at 3:59 AM, Jim Kiley <[EMAIL PROTECTED]> wrote: > False alarm, please ignore. Sheesh. > > On Fri, May 16, 2008 at 2:50 PM, Jim Kiley <[EMAIL PROTECTED]> wrote: > >> Hey gang, >> >> I'm do

How to use Tag? thx

2008-09-02 Thread Mead Lai
the Action has a ModelData:userList private List userList; for(int i=0;i<3;i++){ user.setUserId(i+"i"); //userId user.setEmail(i+"@user.com"); //email userList.add(user); } my tag in jsp is showed following: -

struts2 How to get a option item which can invoke a action or redirect another URL

2008-09-03 Thread Mead Lai
Hi, struts2 How to get a option item which can invoke a javascript-function? the final HTML code show to browser is like following: http://www.cnn.com";>cnn http://www.bbc.com";>bbc http://www.facebook.com";>book more website how to get the last option item? more website it can invoke a action

Re: struts2 How to get a option item which can invoke a action or redirect another URL

2008-09-03 Thread Mead Lai
+redirect&btnG=Buscar&meta= > > 2008/9/3 Mead Lai <[EMAIL PROTECTED]>: > > Hi, > > struts2 How to get a option item which can invoke a > > javascript-function? > > > > the final HTML code show to browser is like following: > > > >

Re: struts2 How to get a option item which can invoke a action or redirect another URL

2008-09-04 Thread Mead Lai
struts2 tags: get the HTML code: id0 id1 id2 but how to insert javascript function in the id1 like that: id2 On Thu, Sep 4, 2008 at 10:12 AM, Mead Lai <[EMAIL PROTECTED]> wrote: > Maybe the question is not clarity clear! > > if write Html code in the jsp page, it can

Re: struts2 How to get a option item which can invoke a action or redirect another URL

2008-09-04 Thread Mead Lai
Thanks very much, I think I shall write a struts tag by myself! On Thu, Sep 4, 2008 at 9:21 PM, Gabriel Belingueres <[EMAIL PROTECTED]>wrote: > I believe is not possible to add an event to an tag using the > tag. > > 2008/9/4, Mead Lai <[EMAIL PROTECTE