Struts1.x, populate dropdown from array of strings
Hi, I have an action that sent an array of strings : private static final String METADATA_ATTRIBUTE_TYPES = icTypes; request.setAttribute(METADATA_ATTRIBUTE_TYPES, icTypesList); return mapping.findForward(SUCCESS); in my jsp file I did : label class=formLabelTransfer Type/label html:select title=Environment styleId=type property=valueTransferType styleClass=criteria html:option value=ALLALL/html:option logic:iterate id=transType name=icTypes html:option value=${transType}%=transType%/html:option /logic:iterate /html:select When I run the project, it's working fine, I can see all the values in the drop down menu, but the jsp still show an error in this line : html:option value=${transType}%=transType%/html:option It said : Cannot find symbole symbole: variable transType Thanks, your help is appreciated.
Re: Any examples struts1.x using json jquery ?
I am trying to display a grid from an action. thanks --- On Sat, 7/2/11, Dave Newton davelnew...@gmail.com wrote: From: Dave Newton davelnew...@gmail.com Subject: Re: Any examples struts1.x using json jquery ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, July 2, 2011, 12:42 PM A. Lotfi wrote: Where can I find an example of struts1.x using jquery and json ? What specifically are you trying to do? The use of jQuery/JSON is framework-neutral, any jQuery tutorial should be trivially adaptable to S1. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Any examples struts1.x using json jquery ?
Hi, Where can I find an example of struts1.x using jquery and json ? if you know other examples for struts2.x using json and jquery please post them I will appreciate your help. thanks
Looking for source code of : Jakarta Struts Live
Hi, I am looking for the source code of this book : Jakarta Struts Live there is a link in this site but it's not working : http://www.theserverside.com/news/1369775/Free-Book-Jakarta-Struts-Live thanks, your help is appreciated. From: John Dondapati djohnji...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tue, February 8, 2011 1:57:42 PM Subject: Re: Bug Fix: s:radio does not select the right option (any option) FYI, Created an issue in the JIRA for this : https://issues.apache.org/jira/browse/WW-3569 https://issues.apache.org/jira/browse/WW-3569 On Mon, Feb 7, 2011 at 8:47 PM, John Dondapati djohnji...@gmail.com wrote: Hello, If you are breaking your head like me to see why the appropriate radio button is not selected, this might help you. FYI, I am using the simple theme. My s:radio tag : s:radio id=answers[%{#question.id}] name=answers[%{#question.id}] list=options listKey=questionOptionId listValue=optionText *value*=answers[%{#question.id}] / Note: answers is a HashMapInteger, String 1. Create a new theme. Read more herehttp://siriwardana.blogspot.com/2008/11/vertically-formatted-checkboxlist.html if you don't know how. 2. Make the following changes to the radiomap.ftl (I am only showing the part that you need to fix and not the entire file). --- #if parameters.name?? *#--/*ADD THIS LINE*/--* * #assign nameValue = stack.findString(parameters.name)/ * name=${parameters.name?html} nmv=${nameValue?html} #rt/ /#if id=${parameters.id?html}${itemKeyStr?htmlhttp://parameters.id?html%7D$%7BitemKeyStr?html} #rt/ *#--/*REMOVE THIS LINE*/--* *#if tag.contains(parameters.nameValue?default(''), itemKeyStr) * *#--/*ADD THIS LINE*/--* *#if tag.contains(nameValue, itemKeyStr) == true * checked=checked #rt/ /#if --- *The problem * I am not an expert on freemarker but I guess the *nameValue *parameter is missing here (which is not in the documentation) and since it cannot find that parameter it defaults to empty string and hence it will never match the itemKeyStr unless the listKey is null or empty for that list item. *The Solution* Just assign a *nameValue *variable to take the value from the value stack using the el expression you passed as it's parameter value. And use the tag.contains() method to compare it against the current list item's key which is stored in the itemKeyStr. That should work. If I am doing this right, how do we get this fix in the next patch? Please advise. Thanks! -- Cheers, John -- Cheers, John
struts2-jquery-grid-showcase240, is there any tutorial for that ?
I downloaded struts2-jquery-grid-showcase2.4.0 I do not understand where index.action in struts.xml : index.jsp : % response.sendRedirect(index.action); % struts.xml : struts constant name=struts.enable.DynamicMethodInvocation value=false / constant name=struts.devMode value=false / constant name=struts.convention.result.path value=/pages/ constant name=struts.convention.action.packages value=com.jgeppert.struts2.jquery.grid.showcase.action/ constant name=struts.convention.default.parent.package value=showcase/ package name=showcase extends=hibernate-default,json-default interceptors interceptor-stack name=showcaseStack interceptor-ref name=defaultStackHibernate/ /interceptor-stack /interceptors default-interceptor-ref name=showcaseStack/ /package /struts Thanks, your help is appreciated.
Re: struts2 + Tiles, whypages shrink in top center ?
I put the width attribute to 100% but look how it looks now : http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action --- On Mon, 3/29/10, sandeep kotha sandeep4u.ko...@gmail.com wrote: From: sandeep kotha sandeep4u.ko...@gmail.com Subject: Re: struts2 + Tiles, whypages shrink in top center ? To: Struts Users Mailing List user@struts.apache.org, lukasz.len...@gmail.com Date: Monday, March 29, 2010, 10:04 AM Hi Lenard Taking view source from your page i see width attribute is missing for your table. Set the width attribute to 100% that will fix your issue. Pasted is your view source with width attribute. This could help you. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleWelcome/title /head body table border=1 cellpadding=2 cellspacing=2 align=center width=100% tr td height=30 colspan=2 div align=center style=font-weight:boldTV shows/div /td /tr tr td height=250 a href=/Struts2Tiles/friendsLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF Friends/abr a href=/Struts2Tiles/officeLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF The Office/abr /td td width=350 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body Welcome Guest. /body /html /td /tr tr td height=30 colspan=2 div align=centercopy; vaannila.com/div /td /tr /table /body /html On 29 March 2010 11:45, Lukasz Lenard lukasz.len...@googlemail.com wrote: 2010/3/29 A. Lotfi majidna...@yahoo.com I tried all the browsers but still small, plz take a look here : http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action Did check the source of your page in browser? It's a mess, duplicated body and so on. Check your tiles, only main page (the layout) should have body tag. The reset has to be just a html snippet - no html, body tags. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 + Tiles, whypages shrink in top center ?
yes I want the page to occupy the whole screen. thanks On Mon, 3/29/10, sandeep kotha sandeep4u.ko...@gmail.com wrote: From: sandeep kotha sandeep4u.ko...@gmail.com Subject: Re: struts2 + Tiles, whypages shrink in top center ? To: Struts Users Mailing List user@struts.apache.org Date: Monday, March 29, 2010, 2:01 PM it occupies entire screen right how do you want your screen to look like ? can you send me a screen shot it may help better On 29 March 2010 23:24, A. Lotfi majidna...@yahoo.com wrote: I put the width attribute to 100% but look how it looks now : http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action --- On Mon, 3/29/10, sandeep kotha sandeep4u.ko...@gmail.com wrote: From: sandeep kotha sandeep4u.ko...@gmail.com Subject: Re: struts2 + Tiles, whypages shrink in top center ? To: Struts Users Mailing List user@struts.apache.org, lukasz.len...@gmail.com Date: Monday, March 29, 2010, 10:04 AM Hi Lenard Taking view source from your page i see width attribute is missing for your table. Set the width attribute to 100% that will fix your issue. Pasted is your view source with width attribute. This could help you. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleWelcome/title /head body table border=1 cellpadding=2 cellspacing=2 align=center width=100% tr td height=30 colspan=2 div align=center style=font-weight:boldTV shows/div /td /tr tr td height=250 a href=/Struts2Tiles/friendsLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF Friends/abr a href=/Struts2Tiles/officeLink.action;jsessionid=92B2AD20EC639C7635D69D297037F8AF The Office/abr /td td width=350 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body Welcome Guest. /body /html /td /tr tr td height=30 colspan=2 div align=center© vaannila.com/div /td /tr /table /body /html On 29 March 2010 11:45, Lukasz Lenard lukasz.len...@googlemail.com wrote: 2010/3/29 A. Lotfi majidna...@yahoo.com I tried all the browsers but still small, plz take a look here : http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action Did check the source of your page in browser? It's a mess, duplicated body and so on. Check your tiles, only main page (the layout) should have body tag. The reset has to be just a html snippet - no html, body tags. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 + Tiles, whypages shrink in top center ?
I tried all the browsers but still small, plz take a look here : http://osp105.mit.edu:8084/Struts2Tiles/welcomeLink.action thanks --- On Sun, 3/28/10, Lukasz Lenart lukasz.len...@googlemail.com wrote: From: Lukasz Lenart lukasz.len...@googlemail.com Subject: Re: struts2 + Tiles, whypages shrink in top center ? To: Struts Users Mailing List user@struts.apache.org Date: Sunday, March 28, 2010, 3:57 AM 2010/3/26 A. Lotfi majidna...@yahoo.com: when I put width =100% of the table, the width take the whole page fine, but when I add height=100% it does not work. It has nothing to do with Struts2 or Tiles, not all browser correctly interprets height attribute in a table. Please try with other browsers. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2 + Tiles, whypages shrink in top center ?
Hi, I am learning struts2 + Tiles from some tutorials, I run them in tomcat 6, everything is working fine, but pages are just a small table in the center top of every page, I tried to change the height and width of the Layout page : %@ taglib uri=http://tiles.apache.org/tags-tiles; prefix=tiles% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titletiles:insertAttribute name=title ignore=true //title /head body table border=1 cellpadding=2 cellspacing=2 align=center tr td height=30 colspan=2tiles:insertAttribute name=header / /td /tr tr td height=250tiles:insertAttribute name=menu //td td width=350tiles:insertAttribute name=body //td /tr tr td height=30 colspan=2tiles:insertAttribute name=footer / /td /tr /table /body /html when I put width =100% of the table, the width take the whole page fine, but when I add height=100% it does not work. Please help me. thanks
Help me design this struts, please
Hi, I have a small project and I am new in struts : DB Tables : User (userId, UserName,...,...) Roles(userId, Rolename,.) I want to have a jsp page : that has a search form : textfield(userId) and a search button when the user type a userid and press search button : all the information from the User table appear + two comboboxes : combobox (All roles in the database) combobox (Assigned roles to this user) two links : right arrow link for revoking roles left arrow link for granting roles could you please help me doing this ? thanks your help is appreciated.
Any Struts + mysql example ?
Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks
Re: Any Struts + mysql example ?
with jdbc, thanks --- On Sat, 11/28/09, Saeed Iqbal saee...@gmail.com wrote: From: Saeed Iqbal saee...@gmail.com Subject: Re: Any Struts + mysql example ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, November 28, 2009, 11:41 AM Struts with JDBC? or JPA/Hibernate On Sat, Nov 28, 2009 at 9:39 PM, A. Lotfi majidna...@yahoo.com wrote: Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Any Struts + mysql example ?
Hi Saeed, would like please send it to me or give me a link to it. thanks --- On Sat, 11/28/09, Saeed Iqbal saee...@gmail.com wrote: From: Saeed Iqbal saee...@gmail.com Subject: Re: Any Struts + mysql example ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, November 28, 2009, 9:52 PM I wouldnt have a JDBC example but i have a MVC example where Model ORM is Hibernate, Controller is Spring and View is Struts Search for startsoft in google code On Sat, Nov 28, 2009 at 9:50 PM, A. Lotfi majidna...@yahoo.com wrote: with jdbc, thanks --- On Sat, 11/28/09, Saeed Iqbal saee...@gmail.com wrote: From: Saeed Iqbal saee...@gmail.com Subject: Re: Any Struts + mysql example ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, November 28, 2009, 11:41 AM Struts with JDBC? or JPA/Hibernate On Sat, Nov 28, 2009 at 9:39 PM, A. Lotfi majidna...@yahoo.com wrote: Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
disable struts button when javascript function is doing soemthing
Hi, I have a jsp page : html:html . function validateForm(validationCSDVal,validationURDVal){ dataChanged(); if(document.budgetSummary.budgetStatusCode.selectedIndex == 1){ if(document.budgetSummary.finalVersionFlag.checked == false){ alert(bean:message bundle=budget key=budgetSummary.selectFinalVersion /); document.budgetSummary.budgetStatusCode.selectedIndex = 0; return false; } }//End outer if // Added for Cost Sharing Distribution Validation - start if(document.budgetSummary.budgetStatusCode.selectedIndex == 1){ var validateCSDMsg = '%=validationMsg%'; var validateURDMsg = '%=validationURDMsg%'; if(validationCSDVal == 'force' || validationURDVal == 'force'){ if(validateCSDMsg == 'amtUnequal'){ alert(bean:message bundle=budget key=costSharingDistribution.error.UnequalAmts1/\nbean:message bundle=budget key=costSharingDistribution.error.UnequalAmts2/); }else if(validateCSDMsg == 'noCSD'){ alert(bean:message bundle=budget key=costSharingDistribution.error.CSDforVersion/); } if(validateURDMsg == 'amtUnequal'){ alert(bean:message bundle=budget key=underRecoveryDistribution.alertMessage1/\nbean:message bundle=budget key=underRecoveryDistribution.alertMessage2/); }else if(validateURDMsg == 'noUnderRec'){ alert(bean:message bundle=budget key=underRecoveryDistribution.error.URDforVersion/); } document.budgetSummary.budgetStatusCode.selectedIndex = 0; return false; } /* }else if(validationURDVal == 'force'){ if(validateURDMsg == 'amtUnequal'){ alert(%--bean:message bundle=budget key=underRecoveryDistribution.alertMessage1/\nbean:message bundle=budget key=underRecoveryDistribution.alertMessage2/--%); }else if(validateURDMsg == 'noUnderRec'){ alert(%--bean:message bundle=budget key=underRecoveryDistribution.error.URDforVersion/--%); } document.budgetSummary.budgetStatusCode.selectedIndex = 0; return false; }*/ /*else if(validationCSDVal == 'notForce'){ return true; }else if(validationURDVal == 'notForce'){ return true; }*/ validateBudget(%=versionNumber%); } } html:form action=/budgetSummary.do td width='40%' align=left % // modified for Cost Sharing Distribution Validation - String validateForm = javascript: validateForm('+forceCSDValidation+','+forceUnderRecValidation+');;% html:select property=budgetStatusCode styleClass=textbox-long disabled=%=readOnly% onchange=%=validateForm% html:options collection=budgetStatus property=code labelProperty=description / /html:select /td html:submit property=Save value=Save styleClass=clbutton / . /html:html How to disbale the save button when the javascript function validateForm is doing someting and enable it back after the function is done ? thanks
How to read selected items from listbox in action??
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 the action ? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Send values of list box from jsp to an action ??????
Hi, I sent two arrayList from an action to a jsp file where I created two list boxes, did some javascript transfer between the two listboxes, I want when I submit I will get ALL the values of each listbox in an action, could you please show me how to do it ? Thanks, your help is appreciated. Majid __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
how to transfer element between two list boxes ?
Hi, I am using struts1.2.9 I have a jsp file that has two list boxes : html:form action=transfertoDB html:select property=menu size=10 html:option value=--SELECT--/html:option html:options collection=menuList1 property=value labelProperty=label / /html:select html:select property=menu size=10 html:option value=--SELECT--/html:option html:options collection=menuList2 property=value labelProperty=label / /html:select /html:form I have two questions : 1) I hard coded the size of the lists to 10,How to make the size dynamic? 2) I would like to transfer element between the two lists . Thank you , your help is appreciated. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
How to populate comboboxes from Database ??
Hi, I am using struts1.2 I need to have a jsp page that has a form with two comboboxes or listboxes and a submit button, so the user can transfer data between the two comboboxes and the press submit button to update the database. is there any small example on how to get data from Database to a list box in a jsp page ? Thanks, your help is appreciated.
How to scroll a table in struts ???
Hi, I have an iteration that return users from an action in a jsp table, I have 1356 rows, it makes the page very long, is there any way to make the table scrollable inside the table. I am using struts1.2 Thanks, your help is appreciated.
struts users assign remove roles
Hi, I need to create a web application that has a jsp page showing : a list of users when you click in a user it show two other lists : Roles assigned Roles notassigned so we can remove and assign roles to the current user (clicked on) , Please any idea or a hint or an example on how to do it. thanks, your help is appreciated. Kaml.
Re: struts users assign remove roles
I did not start it yet, struts version is 1.2.8 thanks Dave Newton [EMAIL PROTECTED] wrote: --- On Thu, 10/9/08, A. Lotfi wrote: a list of users when you click in a user it show two other lists : Roles assigned Roles notassigned so we can remove and assign roles to the current user You should probably mention which version of Struts you're using. How far have you gotten on your own? Do you have any specific questions? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
move items between two listboxes and update DB ??
Hi, I want to create a jsp page that has users populated from a database, when I click in a user two listboxes appear: listAssignedRoles with assigned roles listNoAssignedRoles the rest of roles not assigned yet These two lists are populated from a the database. I want when I move items between listboxes and hit submit button the database get updated too. Please your help is appreciated. thanks A. Lotfi [EMAIL PROTECTED] wrote: I did not start it yet, struts version is 1.2.8 thanks Dave Newton wrote: --- On Thu, 10/9/08, A. Lotfi wrote: a list of users when you click in a user it show two other lists : Roles assigned Roles notassigned so we can remove and assign roles to the current user You should probably mention which version of Struts you're using. How far have you gotten on your own? Do you have any specific questions? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to find jars not used in the project ??
Hi, We have a big struts project, under WEB-INF\lib we have lot of jar files, lot of them are not used in the code, we are using netbeans5.5, is there any utility to tell you which are the jar files not used in your source code. Thanks, your help is appreciated.
struts2 blank app (at java.lang.Thread.run(Thread.java:595) )
Hi, I just downloaded struts2 and tomcat and tried to run the blank app , I got the first page that say : Struts is up and running... Languages . English . Espaniol when I click in those links nothing happen. Since I put the war file in webapps folder of tomcat I noticed that in the comand line background of tomcat this error get repeated all the time : Jan 23, 2008 12:09:01 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor Copy of voting.xml org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1269) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja va:583) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j ava:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488 ) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBas e.java:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p rocessChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r un(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:595) Could you please tell me what's wrong ?? Thanks, your help is appreciated. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
How to do a collection form of beans ???
Hi, I just want to get a collection of rows from a database and put them in a form. I created a simple bean Vote.java public class Vote { protected String ticketid; protected String title; protected String vote; public void setTicketid(String tid) { this.ticketid = tid; } public String getTicketid() { return ticketid; } public void setTitle(String title) { this.title = title; } public String getTitle() { return title; } public void setVote(String priority) { this.vote = vote; } public String getVote() { return this.vote; } } _ and the Action , __ public ComplianceAction() { System.out.println(Compliance Action); } public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ ArrayList votes = getVotes(); ??? return mapping.findForward(success); } protected ArrayList getVotes() { Vote vote = null; ArrayList votes = new ArrayList(); Statement stmt = null; ConnectionDb condb = null; try { condb = new ConnectionDb(); Connection con = condb.getConnection (); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(select v.TICKET_ID, t.TITLE, v.VOTE + from cons_voting_det v, pt7bt_ticket t + where v.COEUS_RELEASE = '4.4' and + v.SUB_COMM = 'Compliance' and + v.USER_ID = 'majid' and + v.TICKET_ID = t.TICKET_ID order by v.TICKET_ID; ); while ( rs.next() ) { vote = new Vote(); vote.setTicketid(rs.getString(TICKET_ID)); vote.setTitle(rs.getString(TITLE)); vote. setVote(rs.getString(VOTE)); votes.add(vote); System.err.println(TICKET_ID : + vote.getTicketid() + TITLE : + rs.getString(TITLE)); } } catch ( SQLException se ) { se.printStackTrace(); } catch ( Exception e ) { e.printStackTrace(); } finally { try { stmt.close(); condb.releaseConnection(); } catch ( Exception e ) { } } return votes; } } I read but get confused, that I have to create a dynaform that will be a collection of beans (Vote.java) .../// How I am gonna do it in my Action class instead of returning ArrahList ? Thanks, your help is appreciated. - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.
how to save a column of rows in database ?
I have a table that has : caseId Title priority I want to populate a form with rows from that table like this : caseId and Title are comming from the table and I add for each row a dropdown : caseId Title -- dropdown[1,2,3,4,5] .. . caseId Title -- dropdown[1,2,3,4,5] submitButton I want the user when submitting the button the data get saved in the table, and the priority column will have one of {1,2,3,4,5] the user choice. 1)how to create this form ? 2)In the save Action what should I catch from that form to save it back to database, because we have lot of rows, I get confused. Thanks, your help is appreciated. - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
dynamicaly radio buttons from database, please help me
Hi, I am using struts1.3.8 I just want when the user click in a link (SurveyAction.do) , he will be presented with a form : ID Title -- O smal O medium O hight ID Title -- O smal O medium O hight SaveSubmitButton The three radio buttons are all not selected, the user just has to select one of each line then click the Save SubmitButton. Please help me, 1) How to create the data radio butons in the database tabel ? Thank you, your help is very aapreciated, I spent lot of time looking for an example like this but did not find anything. - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: [OT] Re: dynamicaly radio buttons from database, please help me
what I am asking is : ID is a number. Title is a string. How about the group radio buttons ? Dave Newton [EMAIL PROTECTED] wrote: --- A. Lotfi wrote: 1) How to create the data radio buttons in the database table? Are you asking what SQL to use to create the column that represents the radio button choice? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Check out the hottest 2008 models today at Yahoo! Autos.
how populate form from database ?
Hi, I need to populate a form with data from database, is there any example. thank you your help is appreciated. - Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
Re: how populate form from database ?
thank you Rick, I will try to do what you said, in my database I have a table that has : Id Title Priority I want to populate a form with lot of rows and present them to the user as : Id Title - five radio buttons how I am gonna do it in jsp file ? thanks your help is appreciated. Rick Reumann [EMAIL PROTECTED] wrote: On 9/21/07, A. Lotfi wrote: Hi, I need to populate a form with data from database, is there any example. thank you your help is appreciated. Probably are a ton of them. (Here's one for Struts1.x using iBATIS http://www.learntechnology.net/content/ibatis/spring_ibatis.jsp ). In Struts1, I basically do this... 1) Struts action method calls a businessDelegate/serviceClass to get your object. (Just something to abstract a way the dao call to the database - but for rapid development you could even skip this class if you want.) 2) Delegate calls your DAO (data access object) to get back your object from the database. 3) You then populate your ActionForm from this object. There are several ways to do this. First off it's a good idea to make your ActionForm property names match up with the value object names you returned in your object in step 2. (ie an EmployeeActionForm has property firstName, and your Employee value object has property name firstName.) Typicall then in your Action class you can use BeanUtils (commons package) to do: Employee employee = employeeDelegate.getEmployee(employeeID); BeanUtils.copyProperties( employeeActionForm, employee ); You're done. (There are a few caveats to using BeanUtils which can be quite annoying but you can worry about them later:) A side note, I actually have changed where I populate my ActionForm and return the value object. Instead of doing the above in the Action class, I add two methods to my ActionForm... populateForm(Employee emp ) { //takes care of some code like above } populateEmployee(Employee emp) { //populates an Employee object from the form data } I just found it cleaner to do there, especially when some odd cases come up that require some special handling, such as when maybe you can't easily use BeanUtils for everything.) -- Rick - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
radio buttons in database ? how
Hi I have a question please, the user will be presented with a form that has lot of rows from a database, each line will be like this : ID --- TITLE --- 0(1) 0(2) 0(3) 0(4) 0(5) --- 5 radio buttons the user has only to select one radio button of each line (it's like a survey) and then submit the form back to the database. 1)How to create the last data called (priority) in the database ? Thanks. - Need a vacation? Get great deals to amazing places on Yahoo! Travel.
logic:messagesPresent ???
Hi, I am still confused about messagesPresent , I don't know why we use it , for example I found this example : logic:messagesPresent scripterrValue = true;/script html:errors header= footer=/ /logic:messagesPresent I will appreciate if someone please can explain it to me. thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
exception when it reach tiles:insert tag ????
Hi, I am trying to run my web application , It displays the page in cwInformationLayout.jsp until tiles:insert attribute=header / and stop. cwInformationLayout.jsp : body text=#00 link=#023264 alink=#023264 vlink=#023264 style='#D1E5FF' table border=0 height=100% cellspacing=0 align=center tr td height='84' valign=top tiles:insert attribute=header / /td /tr Here is the error : javax.servlet.jsp.JspException: ServletException in '/coeuslite/mit/utils/layouts/cwInformationLayout.jsp': ServletException in '/coeuslite/mit/irb/common/cwIRBHeader.jsp': null at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462) at org.apache.jsp.coeuslite.mit.irb.tiles.cwProtocolMainPageTile_jsp._jspx_meth_tiles_insert_0(cwProtocolMainPageTile_jsp.java:189) at org.apache.jsp.coeuslite.mit.irb.tiles.cwProtocolMainPageTile_jsp._jspService(cwProtocolMainPageTile_jsp.java:79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) Thank you. - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Geronimo ??
Hi, I have a simple question, what's the difference between Tomcat and Geronimo ? thanks - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
what's initial in form-bean ?
what initial in this form bean means ? form-bean name=proposalPrint type=edu.wmc.coeuslite.utils.DynaBeanList form-property name=listFormName type=java.lang.String initial=sponsorTemplateForm/ /form-bean Thanks - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.
Re: click first table rows, the rows of second table change ??
Thank you Monkeyden, 1) That exactly what I want, but I did not understand : Expects a table1RowNum parameter (from clicking on one of the rows in table1 I have never used AJAX, is there any example on how to do it with ajax ? thank you, Monkeyden [EMAIL PROTECTED] wrote: If I understand you correctly, here is how it might look: YourActionForm Collection table1Data (retrieved from persistence on the first request of the Action) Collection table2Data (empty on first request) YourAction Loads table1 data Expects a table1RowNum parameter (from clicking on one of the rows in table1) but can run without it for the initial request If param exists, load table2 data and forward to your.jsp your.jsp (or whatever test you want) [print table 2 data] This also looks like a prime candidate for AJAX. On 8/11/06, A. Lotfi wrote: I am trying to have in my jsp page two tables : First table : Select the package : row1 row2 row3 ... row10 each time the user select a row, the rows in the second table change : for example if the user click in row2 the second table will be like this : Second Table : Select the page to print : row2Page1 row2Page2 ... row2Page6 Could you please give me an idea on how to do it, thanks your help is appreciated. - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. - Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
click first table rows, the rows of second table change ??
I am trying to have in my jsp page two tables : First table : Select the package : row1 row2 row3 ... row10 each time the user select a row, the rows in the second table change : for example if the user click in row2 the second table will be like this : Second Table : Select the page to print : row2Page1 row2Page2 ... row2Page6 Could you please give me an idea on how to do it, thanks your help is appreciated. - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.
input submit button, ??
Hi, I want to have a sbmit button with mouse over, what's wrong here : input type=image name=submit src=bean:write name='ctxtPath'//coeuslite images/b_submit.gif width=62 height=22 border=0 onMouseOut=window.status='';MM_swapImgRestore() onMouseOver=window.status='';MM_swapImage('imageField','','bean:write name='ctxtPath'//coeuslite images/b_submit_over.gif',1)/ thank you. - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
RE: displaytag , how display from a vector of beans ?
In the Acion I fill a vector with dynaForm(s) for(.) { vecInboxMessages.addElement(dynaForm); } session.setAttribute(inboxList , vecInboxMessages); saveToken(request); getSubheaderDetails(); return mapping.findForward(forward); Please show me how to use displaytag in the jsp file, thank you your help is appreciated. George Papandreou [EMAIL PROTECTED] wrote: Can you show your syntax? Here is an example: class=dataTable headerClass=hidden media=html / Where wsUsers is a form bean method that takes a Vector. Cheers, /g -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 4:52 PM To: Struts Users Mailing List Subject: displaytag , how display from a vector of beans ? Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups.
How to put an image in a html:submit
How to put an image in a html:submit .. button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
RE: How to put an image in a html:submit
I did this but it does not work : html:image src=bean:write name='ctxtPath'//coeuslite images/moveselectedmsg.gif property=submit alt=Submit/ Greg Dunn [EMAIL PROTECTED] wrote: -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:24 PM To: Struts Users Mailing List Subject: How to put an image in a How to put an image in a button thank you - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
displaytag , how display from a vector of beans ?
Hi, I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display the content of the beans, I always get this message : Nothing found to display. could you please help, thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
How to use jsptags for pagination in struts ??
Hi , I am trying to use pagination in struts , but when I put the tag in my jsp page , the page is blanck : here is my jsp page : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/pager-taglib.tld prefix=pg % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/coeus-utils.tld prefix=util % %@ include file= /coeuslite/mit/utils/CoeusContextPath.jsp % jsp:useBean id=inboxList scope=session class=java.util.Vector/ bean:size id=inboxListSize name=inboxList/ html:html head titleCoeus Web/title html:base/ meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link href=bean:write name='ctxtPath'//coeuslite/mit/utils/css/coeus_styles.css rel=stylesheet type=text/css /head body html:form action=/updateInboxMessages.do?messageType=unresolved method=POST a name=top/a table width=980 height=100% border=0 cellpadding=0 cellspacing=0 class=table %String messageType = request.getParameter(messageType); % !-- EntityDetails - Start -- tr td height=119 align=left valign=toptable width=99% border=0 align=center cellpadding=0 cellspacing=0 class=tabtable tr td colspan=4 align=left valign=toptable width=100% height=20 border=0 cellpadding=0 cellspacing=0 class=tableheader tr td bean:message bundle=coi key=unresolvedMsgs.header/ /td /tr /table/td /tr logic:equal name=inboxListSize value=0 tr td table width=95% align=right border=0 tr td b bean:message bundle=coi key=unresolvedMsgs.noMessages/ !--bean:write name=userInfoBean property=userName /--/b /td /tr /table /td /tr /logic:equal logic:notEqual name=inboxListSize value=0 tr td class=copy html:submit property=save value=Move Selected Messages styleClass=clbutton / /td /tr tr class='copybold' align=left td font color=red html:messages id=message message=true bundle=coi bean:write name = message / /html:messages /font /td /tr tr align=center td colspan=3br DIV STYLE=overflow: auto; width: 955px; padding:0px; margin: 0px table width=96% border=0 cellpadding=0 class=tabtable tr td width=5% align=left class=theadernbsp;img src=bean:write name='ctxtPath'//coeuslite images/checked.gif border=0//td td width=5% align=left class=theaderhtml:link page=/getInboxMessages.do?messageType=unresolved anchor=legend img src=bean:write name='ctxtPath'//coeuslite images/gflag.gif /html:link /td td width=10% align=left class=theader bean:message bundle=coi key=label.from/ /td td width=15% align=left class=theader bean:message bundle=coi key=label.message/ /td td width=20% align=left class=theader bean:message bundle=coi key=label.proposalTitle/ /td td width=20% align=left class=theader bean:message bundle=coi
RE: The content of element type web-app must match
Hi, thank you David for your time and helps, but what is maven war package ? Thank you David Friedman [EMAIL PROTECTED] wrote: Forget the maven war package idea. I must have been mistaken because it didn't work. (I had a moment to try before I leave) Regards, David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:39 AM To: Struts Users Mailing List Subject: RE: The content of element type web-app must match I already tried that. My Eclipse Callisto (3.2 stable) parsed it and found no typing errors. I quickly checked the order of the elements and they are in the correct order, according to the BEA docs (I always reference them because they come up first on my searches for some reason) at http://e-docs.bea.com/wls/docs61/webapp/web_xml.html. The only thing that seemed different from my own web.xml was I have a space between the encoding=... and the end '?' characters in the first line 'Everything else was in order, parsed correctly, DTD's correctly using the Eclipse web tools. I didn't bother trying it out because I don't have those (and there were a lot in there) servlets. I recommend Lofti review all log files for the web server to obtain more details on the error. I believe Tomcat gives me more information on errors like that (the element causing the problem) so I expect Netbeans would as well if you know where to look. Perhaps, like Eclipse, it has a personal log file outside of console logging? I have to leave but maybe if there is no solution when I return I'll see if I can drop it in my Maven build and see if it logs any errors - I think it might have error out before on the build if something wasn't correct in my web.xml during the war packaging stage. It might be worth a try later. Regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
same name action in 2 diff struts-config.xml
Hi, I have two struts-config.xml : struts-config.xml tha has an action called : getMessages struts-config-coi.xml that has an action called : getMessages this two actions have the same name but they are difined different in each struts-config file . Do I have to rename one of the in all the source code and JSPs , or there is another way ? thank you. - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
The content of element type web-app must match
Hi, I have a web.xml , I am using Netbeans, I got this error : The content of element type web-app must match Here is my web.xml , I will appreciate if you can help me : ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class edu.mit.coeuslite.utils.SessionListener /listener-class /listener servlet servlet-name XMLGeneratorServlet /servlet-name servlet-class edu.mit.coeus.servlet.XMLGeneratorServlet /servlet-class /servlet servlet servlet-name ProposalXMLGeneratorServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProposalXMLGeneratorServlet /servlet-class /servlet servlet servlet-name CodeTableServlet /servlet-name servlet-class edu.mit.coeus.servlet.CodeTableServlet /servlet-class /servlet servlet servlet-name protocolActionServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProtocolActionServlet /servlet-class /servlet servlet servlet-name userMaintenanceServlet /servlet-name servlet-class edu.mit.coeus.servlet.UserMaintenanceServlet /servlet-class /servlet servlet servlet-name loginServlet /servlet-name servlet-class edu.mit.coeus.servlet.LoginServlet /servlet-class /servlet servlet servlet-name protocolMntServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProtocolMaintenanceServlet /servlet-class /servlet servlet servlet-name ScheduleServlet /servlet-name servlet-class edu.mit.coeus.servlet.ScheduleServlet /servlet-class /servlet servlet servlet-name ScheduleMaintenanceServlet /servlet-name servlet-class edu.mit.coeus.servlet.ScheduleMaintenanceServlet /servlet-class /servlet servlet servlet-name ProtocolSubmissionServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProtocolSubmissionServlet /servlet-class /servlet servlet servlet-name orgMntServlet /servlet-name servlet-class edu.mit.coeus.servlet.OrganizationMaintenanceServlet /servlet-class /servlet servlet servlet-name orgMntUpdateServlet /servlet-name servlet-class edu.mit.coeus.servlet.OrganizationMaintenanceUpdateServlet /servlet-class /servlet servlet servlet-name coeusFunctionsServlet /servlet-name servlet-class edu.mit.coeus.servlet.CoeusFunctionsServlet /servlet-class /servlet servlet servlet-name rolMntServlet /servlet-name servlet-class edu.mit.coeus.servlet.RolodexMaintenanceServlet /servlet-class /servlet servlet servlet-name spMntServlet /servlet-name servlet-class edu.mit.coeus.servlet.SponsorMaintenanceServlet /servlet-class /servlet servlet servlet-nameStartupServlet/servlet-name servlet-classedu.mit.coeus.servlet.StartupServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Updated By Subramanya -- servlet servlet-name AreaOfResearchServlet /servlet-name servlet-class edu.mit.coeus.servlet.AreaOfResearchServlet /servlet-class /servlet servlet servlet-name AgendaServlet /servlet-name servlet-class edu.mit.coeus.servlet.AgendaServlet /servlet-class /servlet servlet servlet-name MinuteServlet /servlet-name servlet-class edu.mit.coeus.servlet.MinuteServlet /servlet-class /servlet servlet servlet-name ProposalMaintenanceServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProposalMaintenanceServlet /servlet-class /servlet servlet servlet-name ProposalActionServlet /servlet-name servlet-class edu.mit.coeus.servlet.ProposalActionServlet /servlet-class /servlet servlet servlet-name AwardMaintenanceServlet /servlet-name servlet-class edu.mit.coeus.servlet.AwardMaintenanceServlet /servlet-class /servlet servlet servlet-name NegotiationMaintenanceServlet /servlet-name servlet-class edu.mit.coeus.servlet.NegotiationMaintenanceServlet /servlet-class /servlet servlet servlet-nameCorrespondenceServlet/servlet-name display-nameCorrespondenceServlet/display-name descriptionThe Servlet which will be used to controll all the server request from Correspondence module/description servlet-classedu.mit.coeus.servlet.CorrespondenceServlet/servlet-class /servlet !-- Updated By Subramanya -- servlet servlet-name comMntServlet /servlet-name servlet-class edu.mit.coeus.servlet.CommitteeMaintenanceServlet /servlet-class /servlet servlet servlet-name memberServlet /servlet-name servlet-class edu.mit.coeus.servlet.MemberServlet /servlet-class /servlet !--added by geo-- servlet servlet-name coeusSearchServlet /servlet-name servlet-class edu.mit.coeus.servlet.CoeusSearchServlet /servlet-class /servlet servlet servlet-name coeusSearchResultServlet /servlet-name servlet-class
Warning: modified in the future
Hi, I have a very strange problem here, I modify my actions and my jsp pages , but nothing happened, the modification never take effect, when I run the project with NetBeans5 I got this : Warning: org\okip\service\authorization modified in the future Please your help is appreciated. thank you - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
How to add service servlet in Struts ?
Hi, we had a client/server application : Client :Swing application Server :Servlet The client is communicating lot with the servlet. Now we are moving to Struts, how can I keep the servlet in Struts so I will use it in all my actions, I am looking in a way that at the strut up that servlet starts. Thanks, your help is appreciated. - Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
JSP files cached in NetBeans ???
Hi, I am using Neatbeans 5 in windows XP, when I change a jsp file and I run the project the change never take effect, always the first JSPs appear, could you please tell me how to deal with this problem ? Thanks, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
RE: JSP files cached in NetBeans ???
Please any idea how to deal with this ? Krishna, Hari [EMAIL PROTECTED] wrote: IDE is innocent .Blame it on your container cache or browser cache -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 10:04 AM To: Struts Users Mailing List Subject: JSP files cached in NetBeans ??? Hi, I am using Neatbeans 5 in windows XP, when I change a jsp file and I run the project the change never take effect, always the first JSPs appear, could you please tell me how to deal with this problem ? Thanks, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
java.lang.OutOfMemoryError when building in Netbeans
Hi, I am trying to build a big project using Netbeans5, but I can't it always giving me : java.lang.OutOfMemoryError Could you please help. Thank you. - Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.
Validator:required working, email and url are not
Hi, I am trying to learn Struts validator, in the validator-rules.xml : validator name=required classname=org.apache.struts.validator.FieldChecks method=validateRequired methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest msg=errors.required/ MORE CODE HERE... validator name=email classname=org.apache.struts.validator.FieldChecks method=validateEmail methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest depends= msg=errors.email/ validator name=url classname=org.apache.struts.validator.FieldChecks method=validateUrl methodParams=java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest depends= msg=errors.url/ in validation.xml : field property=email depends=email arg0 key=prompt.email / /field field property=url depends=email arg0 key=prompt.url / /field . when I submit the form with correct data it does not submit I stay in the same jsp page with a black dot in the top left of the page. Could you please help me. thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Validator:required working, email and url are not
Everything is working except the email and url validator. Scott Van Wart [EMAIL PROTECTED] wrote: A. Lotfi wrote: Hi, I am trying to learn Struts validator, in the validator-rules.xml : The validator-rules.xml specifies what validators are available to you. You typically want to leave this alone. All your validation happens in the validation.xml file. You specify rules in this file (such as required, email, etc.), but rarely do you ever edit validator-rules.xml, unless you download other special validators from somewhere, or write your own. in validation.xml : depends=email depends=email If you intended to use the required validator (which ensures a field is entered), you'll want to add it to your list of depends: I suspect you didn't want to use the email validator on the url, as urls are not e-mail addresses. when I submit the form with correct data it does not submit I stay in the same jsp page with a black dot in the top left of the page. Could you please help me. thank you. Your form needs to submit to an action, ... Submit and you need to have this action mapped in your struts-config.xml, with a form bean: and an action class: scope=request validate=true input=myform.jsp HTH, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Struts Complete Reference, chp6 is not working
Hi, I bought the book Struts The Complete Reference, trying to learn validator, but when I tried the code it does not work, I don't know what's missing in that code, when I type a bad social security number , I always get : No Employees Found. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: Struts Complete Reference, chp6 is not working
I did check the errata and downlod the code from his website, but it does not work, I sent email to James, but still waiting. thanks David Friedman [EMAIL PROTECTED] wrote: Have you checked the author's website, the errata (mistakes lists) and/or downloaded their updated example code and tried that? I always do that because typos sneak in every time. See: http://www.jamesholmes.com/StrutsTCR/ Code examples are downloadable at: http://www.jamesholmes.com/StrutsTCR/StrutsTCR-code.zip Regards, David -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 10:19 AM To: Struts Users Mailing List Subject: Struts Complete Reference, chp6 is not working Hi, I bought the book Struts The Complete Reference, trying to learn validator, but when I tried the code it does not work, I don't know what's missing in that code, when I type a bad social security number , I always get : No Employees Found. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Struts, how to create wizard pages ??
Hi All, I appreciate your time and helps, I have 8 pages, each one has a form, the user has to fill up : Page1(form1 ,Next) -- Page2(form2 ,Next,Prvious)--Page3(form3 Next,Previous) ..--Page8(form8 ,Previous) each form has a data that will be stored in a table. Please I want to learn from you on how to do it . Thank you - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.
Struts, how to create wizard pages ??
Hi All, I appreciate your time and helps, I have 8 pages, each one has a form, the user has to fill up : Page1(form1 ,Next) -- Page2(form2 ,Next,Prvious)--Page3(form3 Next,Previous) ..--Page8(form8 ,Previous) each form has a data that will be stored in a table. Please I want to learn from you on how to do it . Thank you - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
building JSPs with tab features
Hello All, I am trying to add tab feature to the JSP's. Each JSP has seperate functionality to add, search records. I want the the whole functionality to take place in the tab body i.e If i select a tab it --- Displays a JSP in the TAB body -- If i submit the form in the JSP it should show me the result again in the tab body. How do i do that. Any help is appreciated. Thank you, - Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.
tabs (struts + tiles) How to do it ??
Hi, How to use struts and tiles to have like this example : http://www.assortedinternet.com/tiles-documentation/examples/summariesTabs.jsp Thank you. - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.
forms in struts-layout tabs ??
Hi, I have 8 forms (every form will be stored in a separate table), I am wondering if it is possible to have one jsp page with 8 tabs , fill up the form in the first tab, move to other tabs and fill forms and at the end press a one submit button to save data ( from these forms) to the database. Thank you. - Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.
display tag ??
Hi, I found this display tag, but I don't understand where data come from : http://displaytag.homeip.net/displaytag-examples-1.1/example-nocolumns.jsp The source code : jsp:root version=1.2 xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:display=urn:jsptld:http://displaytag.sf.net;jsp:directive.page contentType=text/html; charset=UTF-8 /jsp:directive.page import=org.displaytag.sample.* /jsp:include page=inc/header.jsp flush=true / h2Simplest case, no columns/h2 jsp:scriptlet request.setAttribute( test, new ReportList(6) ); /jsp:scriptlet display:table name=test / pThe simplest possible usage of the table tag is to point the table tag at a java.util.List implementation and do nothing else. The table tag will iterate through the list and display a column for each property contained in theobjects./p pTypically, the only time that you would want to use the tag in this simple way would be during development as asanity check. For production, you should always define at least a single column./pjsp:include page=inc/footer.jsp flush=true / /jsp:root Thank you, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
RE: display tag ??
Thank you David, that's not my JSPs, that's from source code of that web site : http://displaytag.homeip.net/displaytag-examples-1.1/example-nocolumns.jsp David Friedman [EMAIL PROTECTED] wrote: I think your JSP skills are a little rusty because the JSP page source code you included spelled it out for you: 1) Import the class org.displaytag.sample: 2) Instantiate a new ReportList class (from the above package) and save it in request scope under the name test request.setAttribute( test, new ReportList(6) ); 3) Use a displaytag table on the object (in whatever scope) named test: It might be time to hit the books and refresh your JSP skills (or learn them if you skipped straight from HTML to regular non-JSP Java programming). Good luck! Regards, David -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 2:09 PM To: strutsApache Subject: display tag ?? Hi, I found this display tag, but I don't understand where data come from : http://displaytag.homeip.net/displaytag-examples-1.1/example-nocolumns.jsp The source code : xmlns:display=urn:jsptld:http://displaytag.sf.net; contentType=text/html; charset=UTF-8 / import=org.displaytag.sample.* / flush=true / Simplest case, no columns request.setAttribute( test, new ReportList(6) ); The simplest possible usage of the table tag is to point the table tag at a java.util.List implementation and do nothing else. The table tag will iterate through the list and display a column for each property contained in the objects. Typically, the only time that you would want to use the tag in this simple way would be during development as a sanity check. For production, you should always define at least a single column. page=inc/footer.jsp flush=true / Thank you, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
How to get only dijest from this group ???
Hi, I get lot of email from this Mailing List, could you please show me how to set it so I will get only dijests ? thank you. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
test
test - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
looking for struts authorization authentication
Hi, I looked for a struts that different categorie of users login and got forwarded to different pages, please help me if you have a tutorial or web application . thank you, your help is appreciated. - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.