hi every one ,please I need -as quickly as possible- J2SE code that establish a connection with gmail server (pop3 and smtp) .......... just establishmentthanks for your helping
Is it possible to send an object as a paramater from one jsp page to another?I would like to pass an object from a view page to a details page so that the details page can use the object to display all of its properties. I would accept as a solution passing each of the properties as their own ...
Hi all,What is the best way to create XML documents (I have to create it element by element, adding attributes and content manually), having Performance as the main restriction? What are the objects I should use in order to achive the best performance?Thanks in advance.Best ...
1333 byte By
timhuya at 2007-11-27 7:50:13
This is a section of the struts-config.xml<action path="/rptQuery"type="actions.RptQueryAction"name="rptQueryForm"scope="request" ><forward name="success"path="/rpt_display.jsp"/></action>The rptQuery action is associated with my rpt_query.jsp. When I submit the form, rptQuery ...
Hello,I am looking for a path of least resistance (or effort) to get started with JSF. This is really an add to the "JSP due diligence" thread that I started but with a specific question. At this time, I am primarily interested in implementing an MVC framework. The components of JSF seem ...
i have 2 radio buttons, when the time of form load one must checked defaulty.tags are<html:radio property="exporttype" value="ascii"/><bean:message key="app.ascii"/> <html:radio property="exporttype" value="csv"/><bean:message key="app.csv"/></td>how to do this in ...
Hi All,I need to retrieve a file outside the tomcat container and show it on the web, any ideas? The files are stored somewhere on the server.thanks,Sherry
Does anyone know of a generic 'Message' object that can be used for many means of communication to a specific individual?i.e.SMTPIRC'Web Message' (the list of messages on a portal)etc.thanks,-D
648 byte By
sun@cca at 2007-11-27 7:50:47
Hi,I have an index page which includes different sub pages (menu and content) using the subview tag. It worked fine until now.Now I included two pages with a form and a panelgrid inside to arrange the form elements.The problem I have is when I select one of the pages using a commandLink and ...
Hello!I have deployed an enterprise application on Sun Java System Application Server Platform Edition 9.0.I know the server is working and that there is nothing wrong with my application.The admin tool says that the location of my application is: ...
Hi everyone,I got a weird problem with the session.In my servlet, i have something like this:if((req.getSession(false)) == null){ dest="/WEB-INF/docs/authentication/login.jsp"; req.setAttribute("oriUrl",req.getRequestURL());}The getSession(false) always return something not null which is not ...
I have a web page using excerpts of code from the Netbeans/Creator examples, but slightly modified. As background to the code:-1) Inputstream is read from fileupload2) Inputstream is read to image (ImageIO.read(inputstream))3) Image is resized4) Image is pushed to output stream (ImageIO.write) ...
992 byte By
dg4a at 2007-11-27 7:50:59
I've created a message driven bean and two physical resources, a connection Factory resource (jms/SimpleMessageFactory) and a Destination Resource (jms/SimpleMessage) I've deployed them in netbeans5.5 to Sun App Server 9 and can see them under JMS Resources in the app server. When I tried to ...
HiAre there any standard methods in Java 1.5 to create XML file from java bean,i can use JAXB or castor to do so, But i would like to know if there is any thing in java core classes,I have seen XMLEncoder, but this is not what i want.Any
177 byte By
newbeana at 2007-11-27 7:51:10
Can anyone help me for this.I will be really thankful.Can i update only few fields in ms-access database using prepared statement.Thanks and Regards,
This is somewhat off topic but there doesn't seem to be a forum that matches my request well.Can anybody direct me to a place where one can download the source for the JEE 5 API? I am not interested in the implementation, just the classes outlined by the JEE 5 javadoc. My primary purpose is ...
2827 byte By
rcauvina at 2007-11-27 7:51:32
I am experiencing weird behavior in my JavaMail program. At first, mail sending works fine through a remote mail server. After the program has been running for a while, though, it starts trying to send messages through localhost.I am creating my session once as follows and use it and only it ...
Hi All,I have a jsp which does a set of jobs when invoked (like updating database etc) and I need to run this jsp page once every day to do this process. So ideally I should write a batch file which would be triggered once a day using a scheduler But my doubt is how I can invoke a jsp from a ...
Hi,How can I refresh my JSP Page?I am addind and deleting some mrecords with pressing button on my JSP page, but everytime I have to use browser's back button and hit refresh to see the updates.How can I just refresh it every time I update the page..Your help will be ...
313 byte By
Doga at 2007-11-27 7:52:00
I want to open new google page with the help of <h:commanLink action="?" /> .In the table first column contain <h:commandLink > and I want to search the google page for text in column 2 when click on the command link available in column 1.Thanks in Advance....Regard ...
1710 byte By
pmoc3a at 2007-11-27 7:52:12
I have a Javascript function that loops through the checkboxes of a form and retrieves the "value" for a checkbox if it is checked.I want to store these "values" in an array and pass the array to a Java class. If I test this and check 3 boxes, the "values" for those three boxes canbe displayed ...
314 byte By
toysea at 2007-11-27 7:52:25
Could anyone tell me where can i found quality medium size open source projects that uses EJB? I think the fastest way to learn EJB is reading code. There is alot of open source example for JSP / Servlet on http://sourceforge.net but I cannot find any EJB examples in google or anywhere ...
9482 byte By
SDNJavaa at 2007-11-27 7:52:27
I want to parse log files using the SAX parser. In the log file, at the beginning of the file I have normal text that are not in xml tags, then xml tags, followed by normal text not in xml tags. How do I make my program ignore the normal text not in xml tags in the file and just parse the xml ...
I have two EBs related by a one to many relationship. The first of these tables is called Student and has studentId as its key. The second of the tables has a composite key made up of studentID, courseID and semesterID.However, when the tables are generated in NetBeans 5.5, I find that the ...
629 byte By
LenaBa at 2007-11-27 7:52:34
I am stuck.I am supposed to get from an outside source POST data to a URLIt is apparently in a stream. The parameters are all there (because it doesn't blow up?) but the data is always null.Within the application POSTs and GETs work, when I try to run the URL with ...
I am taking date from the user in mm/dd/yyyy in the text field.Since I am maintaing a document management system,I need to sort docs with respect to dates. Latest date first.Can anyone help me how do I do this.I have to get docs from database(mysql) and I cant use order by ....Please ...
How to get control of windows dialog box?I'm writing some httpunit code that traverses a website, and upon clicking a link, a windows prompt box is displayed with a question and yes/no options. How do I gain control of this dialog? I need to click yes here to continue. I tried implementing ...
216 byte By
shay235a at 2007-11-27 7:52:44
I would like to hire a developer to create a professor rating website using Web 2.0 technologies such as AJAX. If anyone is interested or would know of a good place I could look around then please let me know.
Hi everybody,I have a question and want to get help from you.one stateless bean and one mdb bean on the same container.Expected stateless bean send message to the queue and mdb get respond by onMessage call simultaneous (ie. one prefer situation send one message and retreive one ...
Hi, thereI have some problem about throw an error ......index.jsp//.....int rowCount=adminLogin.loginResult(userName,password); //....AdminLogin.javaimport java.rmi.RemoteException;import javax.ejb.Remote;@Remotepublic interface AdminLogin {public int loginResult(String userName,String ...
I am having my javascript in D:\Tomcat 5.0\webapps\rando\WEB-INF\bill\includes folder. File name is scripter.jsi try to include the javascript in jsp file i have in D:\Tomcat 5.0\webapps\rando\WEB-INF\bill\jsp directory. when i refer to the file with the whole path in the src attribute it is ...
280 byte By
a1ba at 2007-11-27 7:53:06
Hi all,I have two drop down. When i select first, I submit the drop down using js and it populates the next one..This works.The problem is my first drop down is not showing the selected item instead it reset to its initial state..Could anyone help me..
hi e1,I am sorry,i didn't find appropiate foum for struts so i pasted my post hereI am using struts and have radio button on jsp page with <html:radio>Since struts radio tag does not have attribute selected,so i am facing problem in making default radio button as selected.I google ...
Hi,Is there any easy solution rather than AJAX or any HARD Solution.to prevent user from being submit for only once...So database record remain consistent rather than redundant.if any JAVASCRIPT SOLUTION IT WOULD BE BETTER ONE.WHAT SHOULD I DO ?
Hi everybodyI had copy the java -email receiving from the internet. It should be work fine. I only read the mail from the inbox in Dos prompt.,Now i want ur help to create a file for each messageWhether it is possible ? How it is possible? Pls Pls ...
Hi! ALL I AM USING SQL SERVER AND JSP. IN MY WEB APPLICATION I AM ASKING FOR A CLASS AND ACCORDING TO THE CODE I AM SENDING ALL THE DATA FROM THE SQL DATABASE IN HTML TABLE IN A JSP PAGE. SUPPOSE IN MY TABLE THERE ARE 3 FIELDS NAME,AGE,ROLL NO. NOW I WANT TO SELECT ANY ROLL NO FROM THE HTML ...
I have two related entity beans and I am using a servlet to write persistent data to both of them at the same time. When I populate the first bean, the data persists. However, when calling the relevant method of the second EB's session bean, I get NullPointerException errors but I cannot see ...
I am unable to run the SOAP client and server programs.Can anybody help me by providing some simple soap examples of both client and server and also how to deploy them.
How to validate dynamic check boxes(check box from ms sql data base )?
1147 byte By
Seth.Aa at 2007-11-27 7:54:03
I keep getting an exception when I try to use an expression in a jstl tag attribute and I don't understand why. I'm new to jstl, but everywhere I look online people are using these expressions just like I'm trying to. In fact, if I'm not mistaken, this is what the expression language was ...
3454 byte By
Sri_Sria at 2007-11-27 7:54:08
[nobr]dear Friends, This below program i need class file,for this purpose i compiled,but i got more that 5 to 7 error,mainly package javax doesnot exit and javax.servlet.http..doesnot exit msg got what is the reason ?what is the solution for this ? i am using j2sdk1.4.0_01my program is ...
I tried to make my component(w/o javascript) change from disabledto enabled. programmatically in jsf1.2 FacesContext fCtx = FacesContext.getCurrentInstance();ELContext eCtx = fCtx.getELContext();System.out.println("...chooseBook...");UIViewRoot root = fCtx.getViewRoot();UIComponent comp = ...
how can i read servletoutputsteam
how can i read servlet output stream
Hello!I created a simple web service (jax-ws) using NetBeans 5.5 and deployed the web service to the Sun Application Server 9. The integrated function of NetBeans for testing web services works fine. I can also access the wsdl through the internet browser. But a soap request using Altova XMLSpy ...
Hi ,In my jsp page, am using a css class as below, it is working fine on IE6 but it is not coming properly on IE7. Please advise some one on this...Thanks in advance....!!!.movebutton{BORDER-TOP-WIDTH: 1px;FONT-WEIGHT: bold;BORDER-LEFT-WIDTH: 1px;FONT-SIZE: 8pt;BORDER-LEFT-COLOR: ...
1347 byte By
Sri_Sria at 2007-11-27 7:54:30
hai, i am trying this program,but not executed, simple one but error occur,try this and give best solutionrun this below program,i got error msg, javax.servlet package does not exitwhy this error occurwhat is the solution for thistry to give correct solution as soon as possiblei am using ...
2225 byte By
lordlaaa at 2007-11-27 7:54:42
Please i am trying to retreive a number of rows with two columns and am trying to add it into a vector object and ots been giving me this error message.Unchecked call to addElement(E)i mearnt to say warning not errors i tried to typecastas in: Vector<string> catid=new ...
hi allcan anyone plz help me in downloading file from my diskactual scenario is like thisi have uploaded file path in database, and whole file in to my disk....i have given links to file name and when one clicks the link the file of that link should be downloaded / opened from the path ...
889 byte By
rick789a at 2007-11-27 7:54:56
I'm trying to download the correct version of JSF to debug a problem I'm having with JSF in Glassfish. I'm using GF v2 b41c, which states that it uses JSF cvs tag: JSF_1_2_GFINT_B17. (See http://wiki.java.net/bin/view/Projects/GlassFishSourcesBundle.)When I try to use CVS to get JSF, I get ...