gmail connection establishment

198 byte By bolashokrya at 2007-11-27 7:49:50
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

Passing Objects as Parameters

3203 byte By mon.goosea at 2007-11-27 7:49:55
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 ...

Performance when creating XML documents manually

311 byte By mariovargasa at 2007-11-27 7:50:05
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 ...

Passing beans between JSP pages

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 ...

Shortest path to get started with JSF project

687 byte By exception512a at 2007-11-27 7:50:19
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 ...

defaulty selecting one radio button

365 byte By RaviKumar.Avulaa at 2007-11-27 7:50:24
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 ...

retrieve file outside the webapps folder using HTTP

183 byte By sherryswyua at 2007-11-27 7:50:37
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

Generic Message Object - smtp, irc, web-message,etc

253 byte By binarymonk_01a at 2007-11-27 7:50:43
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

Form contents mixed between different pages

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 ...

Deploy enterprise application

895 byte By mattias_westerberga at 2007-11-27 7:50:48
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: ...

getSession(false) is not null on first request

686 byte By lnthai2002a at 2007-11-27 7:50:52
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 ...

Camera Image wont upload, re-saved version will ? :(

787 byte By jamesarbrowna at 2007-11-27 7:50:53
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) ...

NoInitialContextException problem when running a client against an MDB

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 ...

Creating XML file from Java Bean

298 byte By kulkarni_asha at 2007-11-27 7:51:07
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

Can i update only few fields using Prepared statement?

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,

JEE 5 source code

340 byte By RaymondDeCampoa at 2007-11-27 7:51:31
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 ...

SMTP Server Changing Unpredictably

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 ...

Invoking a jsp through a batch file

443 byte By MysunScreena at 2007-11-27 7:51:37
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 ...

How to refresh JSP page?

329 byte By ASH_2007a at 2007-11-27 7:51:46
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 ...

How to : Using <h:commanLink...>

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 ...

Javascript Array

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 ...

EJB Project ( open source )

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 ...

How do you ignore text not in tags when parsing with SAX

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 ...

One to many relationships in EJB

14969 byte By MartinOSheaa at 2007-11-27 7:52:30
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 ...

post data streams

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 ...

Problem with sorting dates

331 byte By aniketh_parmara at 2007-11-27 7:52:41
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 ...

httpunit -- How to get control of windows dialog box?

915 byte By jabduliusa at 2007-11-27 7:52:43
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 ...

Freelance work?

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.

JMS, MDB, EJB problem

481 byte By TaurusLeea at 2007-11-27 7:52:56
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 ...

How to throw error from EJB

888 byte By BomberMana at 2007-11-27 7:52:58
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 ...

Problem using <script src>

704 byte By BillJistsona at 2007-11-27 7:53:04
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 ...

drop down submit

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..

problem in radio button

504 byte By harrriiiia at 2007-11-27 7:53:33
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 ...

How to Prevent User for Multiple click on form Submit button ?

287 byte By Ghanshyama at 2007-11-27 7:53:45
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 ?

RECEIVE EMAIL

322 byte By muthu2007a at 2007-11-27 7:53:46
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 ...

JSP PAGE

429 byte By SOMA_INDIAa at 2007-11-27 7:53:54
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 ...

Creating EJB data with composite primary keys

16337 byte By MartinOSheaa at 2007-11-27 7:53:56
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 ...

Wanted SOAP client and server examples

189 byte By sureshpklra at 2007-11-27 7:54:00
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.

java script

77 byte By TusharMsca at 2007-11-27 7:54:01
How to validate dynamic check boxes(check box from ms sql data base )?

EL in jtls tag attributes?

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 ...

Package doesn't exit problem

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 ...

Attributes of components in managed Bean actions

4408 byte By dtrprasada at 2007-11-27 7:54:11
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 = ...

Read Serlet output stream

40 byte By amitjaina at 2007-11-27 7:54:12
how can i read servletoutputsteam

Read Servlet output stream

43 byte By amitjaina at 2007-11-27 7:54:13
how can i read servlet output stream

error sending soap request

475 byte By whitesquirrela at 2007-11-27 7:54:14
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 ...

problem with CSS in IE7

749 byte By sree-queriesa at 2007-11-27 7:54:19
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: ...

Try this Website Hit Counter

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 ...

Unchecked Call to addElement(E) using resultset with vector object

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 ...

urgent!! downloading file in jsp

397 byte By anshu_it_surata at 2007-11-27 7:54:45
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 ...

Can't get JSF sources from CVS

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 ...