bean:define ???
Anybody knows how can I define a script variable with bean define tag or another, for the first element of a collection??? for example: % ArrayList users = (ArrayList)pageContext.getAttribute(users); User user = users.get(0); % How I do it with tags??? Because I want to get the firt element of a collection, e define it! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameter ???
How can I compare a parameter in my URL (someAction.do?type=Alteração) with the tag logic:equal name=type value=Alteração do something /logic:equal The problem is the ção . How can I sove this ??? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
parameter
How can I compare a parameter in my URL (someAction.do?type=Alteração) with the tag logic:equal name=type value=Alteração do something /logic:equal The problem is the ção . How can I sove this ??? thanks
radio checked???
Help!! I have a actionForm with a boolean property and set and get and in my jsp html:radio property=propertyName value=true/ html:radio property=propertyName value=false/ The radio checked always is the second, where is false. How I put the first to be checked when de jsp is loaded? thanks
Radio button CHECKED ???
Help!! I have a actionForm with a boolean property and set and get and in my jsp html:radio property=propertyName value=true/ html:radio property=propertyName value=false/ The radio checked always is the second, where is false. How I put the first to be checked when de jsp is loaded? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Radio button CHECKED ???
How to use the html:radio tag and define a specific radio with CHECKED by default ? p.e input type=radio name=radiobutton value=1 checked thanks
bean:write with formatKey ???
Anybody knows how can I show I CNPJ in this format (33.435.231/0001-27) ??? I my bean I just have number (33435231000127) So I have to show with . and / There are a way to put something in the resource bundle??? What?? []´s Mauricio
bean:write with formatKey ???
Anybody knows how can I show I CNPJ in this format (33.435.231/0001-27) ??? I my bean I just have number (33435231000127) So I have to show with . and / There are a way to put something in the resource bundle??? What?? []´s Mauricio
Action to JSP
There are a way to: When a click in a link in my jsp page, in address bar in my browser dont write the name of the action, and go direct to the jsp page (defined in action forward) ??? Thanks. Mauricio
Action to JSP
Thanks Smoak, but I have do execute a Action and go to a jsp page, but I dont want to show the name of the action in my address bar (htt://www.domain.com/someaction.do) I dont want this. When I execute the action I want to show the jsp, p.e. (htt://www.domain.com/mypage.jsp) thanks Message - From: Wendy Smoak [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 09, 2004 5:57 PM Subject: RE: Action to JSP There are a way to: When a click in a link in my jsp page, in address bar in my browser dont write the name of the action, and go direct to the jsp page (defined in action forward) ??? Most of us go to great lengths to prevent users from accessing the JSPs directly, including putting them under WEB-INF or behind a security constraint. But if you have JSP's that don't need Action code in front of them, just put them somewhere accessible and use a plain old a href=filename.jspLink/a. If the link text/location needs to be dynamic, JSTL can be of help. However, if there are any Struts tags on the target JSP, they probably won't work right unless you go through an Action first. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action to JSP
Sorry Vanessa, I didn´t undestand. I just want to execute the action e show the jsp, but in my address bar I want to show the jsp page not the action (action.do) []´s Hi Mauricio can you send your caller jsp, the mapping and the action class? Vanessa [EMAIL PROTECTED] 09/01/2004 17:51:46 There are a way to: When a click in a link in my jsp page, in address bar in my browser dont write the name of the action, and go direct to the jsp page (defined in action forward) ??? Thanks. Mauricio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action to JSP - Works!!!
Thanks People Works!!! Thanks Geeta for the solution []´s Mauricio - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 09, 2004 6:06 PM Subject: Re: Action to JSP The easiest way is perhaps to simply add a redirect=true in your action mapping. However, be aware that this will kill your request attributes (since your request object is no longer forwarded..) Regards, Geeta Mauricio T. Ferraz wrote: There are a way to: When a click in a link in my jsp page, in address bar in my browser dont write the name of the action, and go direct to the jsp page (defined in action forward) ??? Thanks. Mauricio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No Action
Help, please!!! My application dont execute the action anymore, I don´t know what happened The method validate() of the ActionForm is executted return null rigth, but it don´t go to the Action. Any Action im my application work anymore! And I dont get ANY message error on server and ANY log. Anybody can help me? []´s Mauricio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No Action
I got the HTTP 500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Drow-Down list HashMap???
How can I generate I dropDown List with a HashMap getting the key(HashMap) how value(HTML) and the value(HashMap) how name(HTML) With this HashMap: HashMap map = new HashMap(); map.put(1,test1); map.put(2,test2); map.put(3,test3); map.put(4,test4); And I want this output select name=teste option value=1teste1/option option value=2teste2/option option value=3teste3/option option value=4teste4/option /select
Validator with a property java.util.Date ???
In my Form a hava a property java.util.Date, I can use the validator Struts?Or I just can have properties "Strings" ??? in my textfiels on form???In the Struts' webapps has a example, the use only String to input ofdata...I gotjava.lang.IllegalArgumentException: argument type mismatchThanks, for help. Mauricio Tavares FerrazDesenvolvedor Java/J2EE Av. Ibirapuera, 2120 Sala 205 Indianópolis - SPCEP 04028-001 - Brasil www.cilix.com.brTel. (+55 11) 5054 6505Fax. (+55 11) 5054 6505
validator java.util.Date object ???
In my Form a hava a property java.util.Date, I can use the validator Struts? Or I just can have properties Strings ??? in my textfiels on form??? In the Struts' webapps has a example, the use only String to input of data... Thanks, for help.
Struts validator with Date property ???
In my Form a hava a property java.util.Date, I can use the validator Struts? Or I just can have properties Strings ??? in my textfiels on form??? In the Struts' webapps has a example, the use only String to input of data... I got java.lang.IllegalArgumentException: argument type mismatch Thanks, for help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator a property java.util.Date is possible??
In my Form a hava a property java.util.Date, I can use the validator Struts? Or I just can have properties Strings ??? in my textfiels on form??? In the Struts' webapps has a example, the use only String to input of data... I got java.lang.IllegalArgumentException: argument type mismatch Thanks, for help.
Validation of a property java.util.Date is possible?
In my Form a have a property java.util.Date, I can validate it ? Or I just can have properties Strings ??? in my textfiels on form??? I can map a textfield of a Form HTML to a property java.util.Date of a JavaBean ??? How can I do it? I got java.lang.IllegalArgumentException: argument type mismatch Thanks, for help. Mauricio
bean:define ??? I think
I want to create a scriptlet variable with tag struts, how can I do it??? for example: I have: String testStr = session.getAttribute(test); but I don´t want use it, it´s ugly!!! I saw the tag bean:define id=testStr property=test/ but whe I try show it with a expression ( %=testStr%) I have canot resolve the symbol error!!! But when I use the bean:write name=testStr/ I show the value, but I have to use %=testStr% Anybody can help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bean:define I think ???
I want to create a scriptlet variable with tag struts, how can I do it??? for example: I have: String testStr = session.getAttribute(test); but I don´t want use it, it´s ugly!!! I saw the tag bean:define id=testStr property=test/ but whe I try show it with a expression ( %=testStr%) I have canot resolve the symbol error!!! But when I use the bean:write name=testStr/ I show the value, but I have to use %=testStr% Anybody can help me?
Iterate a Collection of Properties ???
How can I iterate a ArrayList have Properties Objects elements??? with logic:iterate ??? In my Action I pass the ArrayList. Arraylist list = new ArrayList(); Properties prop; for (int i = 0 ; i 10 ; i++){ prop = new Properties(); prop.put(name,michael); prop.put(number,i); prop.put(end,Street foo); list.add(prop); } request.setAttribute(lista,list); In my JSP, how can I iterate this ArrayList??? Thanks.
Re: Iterate a Collection of Properties ???
Thanks Markus and Felix !!! It works!!! Thanks!!! - Original Message - From: Markus [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:16 AM Subject: Re: Iterate a Collection of Properties ??? Hi, Look inside the struts-exercise-taglib webapp of the struts package! There you will find all you need. Regards, Markus How can I iterate a ArrayList have Properties Objects elements??? with logic:iterate ??? In my Action I pass the ArrayList. Arraylist list = new ArrayList(); Properties prop; for (int i = 0 ; i 10 ; i++){ prop = new Properties(); prop.put(name,michael); prop.put(number,i); prop.put(end,Street foo); list.add(prop); } request.setAttribute(lista,list); In my JSP, how can I iterate this ArrayList??? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:link pass more then one paramater (no JSTL)
how can use this tag to pass more the one parameter, for example 4 parameter? With out use JSTL . Only Struts tag! How can I do?
Re: html:link pass more then one paramater (no JSTL)
Kris, do you have any example to show me? How can I use this? I´d like to pass 3 parameter fixes and other parameter in a (java.util.Property) Is there a way to do it??? - Original Message - From: Kris Schneider [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 2:00 PM Subject: Re: html:link pass more then one paramater (no JSTL) This would be a fine place to look: http://jakarta.apache.org/struts/userGuide/struts-html.html#link Hint: If you prefer to specify a java.util.Map that contains all of the request parameters to be added to the hyperlink, ... Quoting Mauricio T. Ferraz [EMAIL PROTECTED]: how can use this tag to pass more the one parameter, for example 4 parameter? With out use JSTL . Only Struts tag! How can I do? -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generate a Drop-Down ???
I Can´t put script in my code, I have find another way to do it. - Original Message - From: Rob van Oostrum [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:28 PM Subject: RE: Generate a Drop-Down ??? ehm ... [dropdown list html] % ProdutoView view = (ProdutoView) session.getAttribute(produtoView); ArrayList list = view.getFormatosArquivos(); java.util.Iterator iterator = list.iterator(); while( iterator.hasNext() ) { String format = (String) iterator.next(); % [list item html]%= format % % } % -Original Message- From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] Sent: November 14, 2003 6:23 PM To: Struts Users Mailing List Subject: Generate a Drop-Down ??? I put the bean on the method execute on myAction ArrayList formatosArquivos = new ArrayList(); formatosArquivos.add(CSV); formatosArquivos.add(XML); formatosArquivos.add(Algorithmics); ProdutoView produto = new ProdutoView(); produto.setFormatosArquivos(formatosArquivos); session.setAttribute(produtoView,produto); So, How I generate a drop-down list on the next Jsp page??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Iterate a Collection inside a bean of session???
I have a produtoBean on session and this has a property ArrayList formatosArquivos How I put the value of option to the same name of bean:write name=formato/ ? logic:iterate id=formato name=produtoView property=formatosArquivos indexId=index scope=session html:option value=?bean:write name=formato//html:option /logic:iterate
Re: Unable to find the JDBC Driver for Mysql using struts -- Help Please
Did you copied the file mysql drive mm.mysql-2.0.4-bin.jar (for example) to your WEB-INF\lib of your Application ?? - Original Message - From: Paul Idusogie [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 14, 2003 8:49 PM Subject: Unable to find the JDBC Driver for Mysql using struts -- Help Please I have configured tomcat residing on a linux box with a context for the mysql database within the server.xml file. I have used the same directives as specified in the How-To see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html But I get an error at the browser when I attempt to authenticate. It cannot find the driver mysql driver = org.gjt.mm.mysql.Driver This is the error: The Following SQL Error(s) occurred while processing your request: Cannot create JDBC driver of class '' for connect URL 'null' Sincerely, Paul Idusogie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generate a Drop-Down ???
I put the bean on the method execute on myAction ArrayList formatosArquivos = new ArrayList(); formatosArquivos.add(CSV); formatosArquivos.add(XML); formatosArquivos.add(Algorithmics); ProdutoView produto = new ProdutoView(); produto.setFormatosArquivos(formatosArquivos); session.setAttribute(produtoView,produto); So, How I generate a drop-down list on the next Jsp page???
Tag Map on Struts
How a use this (for the link)tag on struts to: map name=Map2 area shape=rect coords=119,27,187,42 href=mapadosite.htm area shape=rect coords=223,26,289,44 href=http://www.teste.com.br; target=_blank area shape=rect coords=129,0,187,15 href=http://www.teste2/index.htm; target=_blank area shape=rect coords=221,-9,290,14 href=http://www.teste3.com; target=_blank /map And how I use a Image on the td of the table, for example, I Can leave that??? td background=imagens/backtab.gif I starting in the Struts now, tanks!!! Mauricio
html:link ???
Whats the diference between: html:link action=mypage.jspMy Page/html:link and html:link page=mypage.jspMy Page/html:link Thanks!!!
Re: html:link ???
Thanks for help, Ruth, Brice []´s Mauricio - Original Message - From: Ruth, Brice [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 2:07 PM Subject: Re: html:link ??? the action attribute has to reflect an action-mapping that is defined in your struts config file. the page attribute should start with a '/' and will output in HTML the correct URL to the resource, based on the web-app that you're running - its purpose is to allow module-relative naming of your resources. Check out the Struts-HTML taglib reference here: http://jakarta.apache.org/struts/userGuide/dev_html.html Mauricio T. Ferraz wrote: Whats the diference between: html:link action=mypage.jspMy Page/html:link and html:link page=mypage.jspMy Page/html:link Thanks!!! -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Paging
Hi People!!! Anybody knows, how can I do paging with Struts??? (Previous 1 - 2 - 3 ... Next) And changing the color of the rows on the table each iteration? Is there any Tag Lib who do this??? Tanks!!! []´s Mauricio