No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
Hi, I have added a keypress event as [CODE] jQuery('#body').keypress(function(){currentTime= new Date().getTime(); });[/CODE] but when I open a pop up window which have a iframe contains a rich text area not capturing this event. Any ways to handle parent event in child element? Any suggestion? | |
Re: hey you can use like this.. [CODE] Properties props=new Properties(); FileInputStream fis = new FileInputStream (application.getRealPath("/WEB-INF/classes/filename.properties")); props.load(fis); String componentList = props.getProperty("somekey"); FileOutputStream fos = new FileOutputStream (application.getRealPath("/WEB-INF/classes/filename.properties")); props.setProperty(componentList,"somevalue"); props.store(fos,null); fis.close(); fos.close(); [/CODE] might be useful to u.... | |
Re: Hi, Is your application uses only JSP? Otherwise u can use Ajax for this issue. You can pass value to ajax request to populate another select box. call a function on onchange event of first select box in that u can get [CODE]var selectedvalue=document.getElementByName("evnt_cat").options[document.getElementByName("evnt_cat").options.selectedIndex].value;[/CODE] then pass it to AJAX request. | |
Re: You can declare id variable as global in init() method as call it onload of body tag [CODE]function init() { id =0; }[/CODE] then append id to text box id property which u dynamically created. Declare a combo Box of name fileNames. as [CODE] <html:select property="fileNames" multiple="true"> <html:option value="">-Select-</html> </html:select> … | |
hii.. I want to use a scriplet variable in javascript. i used <%! int i;> <% i=0; %> <input type="text" id="itemValue" onchange=changeValue('<%i%>')> it works fine if i give alert(i) in changeValue function. Otherwise it gives error i is undefined. Plz help me. I don't want to bother user by increasing … | |
Re: [QUOTE=sanjayrawat177;872616]HEy Peter can you pls provide me the CODE ,i tried through itext but didnt get along.. so pls help buddy ...provide me the code to trnsfer JSP output in PDF[/QUOTE] You can use PDFPtable for table formatting | |
SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.mail.pop3.POP3Message I am not getting why this exception has occurred.It throws the exception when i starts tomcat server. I have used recieve() method in LoginAction which is used to recieved mails using POP3 protocol. I am using JAVAMAIL 1.4 | |
Hello' I m using struts 2.0 . I want a comboBox(<s:select>) on Jsp. bean i want to populate in combobox is nested. I only know list property of <s:select> but my list is nested. How can i populate combobox with nested arraylist. | |
hi.. I am using struts 2.. I want tabs on my jsp and my code is.. On first Jsp i used to create tabs which works fine for me. [code=JSP]<s:tabbedPanel id="test" labelposition="middle" > <s:iterator value="teamlist"> <s:url id="resultsUrl" action="navigateChangeTeamAction.action" > <s:param name="teamCode" value="teamCode" /> <s:param name="teamName" value="teamName"></s:param> </s:url> <s:div label="Team2" theme="ajax" … | |
Re: r u using struts 1.2??? In struts 1.2 it will like this [code]<logic:iterate name="arrayListName" id="someId"> <logic:iterate name="arrayListName" property="nestedArrayListNme" id="someId"> <bean:write name="someId" property="name"> </logic:iterate> </logic:iterate> [/code] here name might be your javabean property |
The End.