folks, I have a requirement to display a content with keyword tagging, Please let me know how to do this. It will be helpful if there is any examples.thanksKM
Dear All,How come the URL ( http://www.sun.com/training/index.xml) contains the page extention as xml instead of html, jsp, php ... etc? and the web browser open the xml page like other normal web pages.However, when i try to open any xml page in web browser it opens it as xml tags instead of ...
Any examples on best practices for writing JSF applications that use JPA for persistence where the target platform is a non-appserver environment such as Tomcat , and not a full on J2EE appserver ? What sort of strategies do you use to acquire and use the same instance of the
756 byte By
Aharona at 2007-11-27 10:05:01
HiI have just made a simple java web app which I am trying painstakingly to deploy on my server.In order for my war file to deploy properly I put it in the webapps dir of the tomcat server. However I wanted it to be ussable from my website, not just from http://myserverIP:tomcatPort/myapp.So to ...
HI AllCan anybody send the multiple fileupload code in Core java.I need very urgent plz send me to this mail id kiran_aruru@yahoo.co.inThanks in advance
HI AllCan anybody send the multiple fileupload code in Core java.I need very urgent plz send me to this mail id kiran_aruru@yahoo.co.inThanks in advance
How do i do to populate a second Drop down which depends on the value i selected from a previous drop down list?So far the way i populate a single drop down list is like this.. Before loading the page i put in my httpSession a List with the data i will populate.. and when i select i put the ...
138 byte By
Abbey81a at 2007-11-27 10:05:32
Making the date gotten from user through request.getParameter() method of httpServletRequest the value of Date object in a Servlet.
2245 byte By
stricksa at 2007-11-27 10:05:36
Hello, I had a similar problem a while ago with just different frames, but I fixed that by just adding response.encodeURL() to all my links. The following code is in a jsp file that makes a call to a javascript function when the user clicks a form submission button....onSubmit="return ...
603 byte By
sivasaia at 2007-11-27 10:05:40
my config file having ...
HI,Is it possible to recieve a new email in Lotus Notes from a Java Application? I am trying to write a application which keeps an eye on inbox for any new email. Anyone has idea to do this using Lotus notes API ? Thank you in advance.
Hi,Is it possible to have a servlet access image files from a cd or external hard drive? I keep most photos within the webapp but due to size limitations some of the photos need to be moved to external media. I wan't to be able to read and report from either a DVD or an external hard drive but ...
942 byte By
Troubya at 2007-11-27 10:05:54
Hey,I am trying to build two JSF components,XMLManager and XMLTagThe idea is to have a composite JSF component(XMLManager) that binds an XML fileand XMLTag component that extends the standard 'HtmlInputText' to hold a certain XML tag of its parent XMLManager's XML file.since XMLManager is ...
1440 byte By
Sowja at 2007-11-27 10:06:00
Hi every one,I am retrieving the data from the database in a list and displaying it in the home page using iterator. Here is my code<logic:iterate id="user" name="list"> <% even = !even; %> <tr> <td class="trbgdark"><a href="Project_Page.do"> <bean:write ...
683 byte By
bib1a at 2007-11-27 10:06:07
Hi AllMy company decided to send email to nearly 20000 users on a weekly basis.=> I have the list of email address in a database.? How can I send email to so many addresses. I possible cannot make it into a string and put in to address string of javamail.? Any pointers on how to do this ...
Hi,I'm having a lot of trouble with passing get parameters in through the url using JSF.I have links generated in a dataTable:<h:outputLink value="showObject.faces"> <h:outputText value="#{object.description}"/> <f:param name="objid" ...
5685 byte By
irbia at 2007-11-27 10:06:48
Good MorningI know that there are several posts regarding issues with javamail. I have viewed them for the past hour. While several of them address my issue I have been unable to locate a solution.Bare with me please, I am making this post very thorough. The other threads I have read are ...
244 byte By
ryano19a at 2007-11-27 10:06:54
I am trying to store the amount of click events of a button from a jsp page. Each time the button is clicked, the number should be stored in a method.Would anyone know how to solve this problem?Thanks in advance,ryan
Hello, my question is: Why do we have separate layers of classes when developing a web application. For example a DAO layer, DTO layer, business services layer etc.I mean why do we follow this approach. What's the purpose of having DTO layer, if its just transfer ot data we can do it through ...
161 byte By
bdighea at 2007-11-27 10:07:11
Hi,How can I send VRFY command to verify email address. Is there any api to do this ?Any code examples would help.TIA,- Bharat
3252 byte By
Reona at 2007-11-27 10:07:15
While in my case i have three codes 2 jsp codes and java code...first jsp code holds textfield and password field and a button..that textfield and password it passes to next jsp page ..there that page is linked with bean ..so that bean validates from database and show whether that accountid and ...
I want to URL encode a string before I sendRedirect it. What must I do? I have tried this but it did not work. response.sendRedirect(response.encodeRedirectURL("showAddAMember?century=" + country + "&stte=" + state + "&city=" + city + "&course=" + course + "&coursename=" + ...
hi everybody:i have an application of jsp,,, now i have a Stand-alone-Application (Desktop application) ,, this applcation is a JAR file ok ,,, now i want to run this application from inside a jsp page ,,, in other words ,, i want to run a JAR file using any command from within a java class of ...
730 byte By
Troubya at 2007-11-27 10:08:00
Hey,I'm trying to build a composite JSF component that actually only holds several other components (mainly HtmlInputText/HtmlOutputText),Most of the things goes to encodeBegin which look something like:public void encodeBegin(FacesContext context) throws IOException {setColumns(2);- create ...
Is it possible to put an object into a request attribute in a jsp page and see it in an action class without making a form bean for it? Thanks.
Greetings,I've been trying to add a persistance layer to a web app I'm building with Hibernate, but have found the entire process more difficult than I would have previously thought. I'm using Exadel Studio Pro to do this. I would like to learn quickly how to store a POJO in a database and ...
i am trying to iterate through list of lists. "processMessageList" contains another list "errorList". errorList contains objects of type "ProcessMessage". following is my code.<logic:iterate id="errorList" name="processMessageList" property="errorList"><logic:iterate ...
By default, it seems JAXB puts the end tag on the second line. For example:<w:Element w:prefix="c" w:name="Person" w:isReference="false"></w:Element>Is there any way to tell the Marshaller to put the end tag on the same line so the output would be: <w:Element w:prefix="c" ...
332 byte By
gania at 2007-11-27 10:10:25
Hi friends,I have a new requirement where webpage should be accessed by one user at a time.Suppose if one user is using the page ,the other user should not be having the privilage to access tht page.NOw how to go about..If possibel pls help me with the code..Thanks in advance..Waiting for ur ...
75 byte By
JK_JAVAa at 2007-11-27 10:10:30
In MVC Architecture, how is the bean decided for a particular model.
422 byte By
jeyrama at 2007-11-27 10:10:36
i start to learn servlet.i am using tomcat 6.0. first i put a class file (Page1.class) int to ../WEB-INF/classes/directory and i created Appropriate xml file and i saved into ../WEB-INF directory.but when i try to load using this URL: http://localhost:8080:servlet/Page1 i can't acess this ...
i have this applet that communicates with a servlet.. when the applet connects to the servlet, i get the Server returned HTTP response code: 500 error.. when i am testing in my own pc, everything is fine.. when i tried deploying it in a server, the error occurs.. i do not have any idea what is ...
634 byte By
Squaloa at 2007-11-27 10:10:48
Hello, I've been working in a webapp the last couple of weeks, and I am new with tomcat and JSP technology, yesterday I try to display the index.jsp in http://localhost:8180 and it didn't display it .I retart tomcat with > sudo /etc/init.d/tomcat5.5 restartand it give me an OK but it won't show ...
341 byte By
JChefa at 2007-11-27 10:10:55
Hi,Currently i'm working on a J2EE Project and in that project i generate someHTML reports. Now I want to allow user to save this report as a Excel File.Is that possible to convert HTML file in Excel file? if yes, Which is better to use ? XML or some third party software?Please ...
Dear All, i am using mhsoftware event calendar while sending emails i am facing following error. with smtp authentication true.... DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]And javax.mail.NoSuchProviderException: invalid ...
349 byte By
Ilga at 2007-11-27 10:11:17
Hello,what is the best way to generate commandLink in custom JSF component?is there some JSF API that could be used to do that instead of writing down HTML and javascript in my javaclass?what I am looking for is something like that:generateCommandLink("title", "action_name", "form_name");Thanks in ...
<p>hai all,</p><p>can any body help me out with how to upload a image to MySql database,using Struts?</p>
i have following code in my web.xml<servlet><servlet-name>Faces Servlet</servlet-name><servlet-class>javax.faces.webapp.FacesServlet</servlet-class><load-on-startup>1</load-on-startup> </servlet> <servlet-mapping><servlet-name>Faces ...
Hi, I have a form with 10 text boxes..I have to enter diff part number for each text box and when i enetr all the 10 text boxes and submit it shd display 10 more empty text boxes along with the entry's i have done before.. wat i m doing is..i m putting the form in session and getting the values ...
hi i have one problem in stringbuffer please anyone solve this problem here my code is there about the stringbufferStringBuffer=msg=null; msg.append("Your leave has been successfully sanction from");msg.append( " "+starttime[j-1]+" To "+endtime[j-1]+" "); after that i have passing msg value in one ...
I have deployed ear file in Jboss and trying to run Java client as described in Sless example on one of the glassfish website. It's something like this:Properties props = new Properties();props.setProperty ...
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...
784 byte By
naekoa at 2007-11-27 10:12:11
i have one problem:if i want to load an image from a rightcontext i do it so:<h:graphicImage url="<%=request.getContextPath() %>/img/myImage.gif"/>now i would like to use css (styleClass) and image should be loaded there:unfortunately no one of these possibilities works.myImage{background: ...
2843 byte By
jeganspa at 2007-11-27 10:12:13
Hi All,Sorry if this a repetitive question.When I am trying to access a stateless Session bean from a struts Action class, I am getting NullPointerException. It is a very simple application as I am a newbie in EJB. Please see my code below.My Local Interface:@Localpublic interface ...
1096 byte By
J2EEDeva at 2007-11-27 10:12:38
Hello forum,I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require ...
1096 byte By
J2EEDeva at 2007-11-27 10:12:40
Hello forum,I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require ...
1096 byte By
J2EEDeva at 2007-11-27 10:12:42
Hello forum,I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require ...
hi,I'm facing a problem in updating server classes on sun one web server 6.1. for example i write a class for db connections and now whenever i made some changes in it i must have to restart web server for changes to take effect. I also delete class files from classcache folder but it doesn't ...
348 byte By
asgshea at 2007-11-27 10:13:35
Hello.I know you can do this <% request.setAttribute("someName", Object); %>But i am wondering if there is a jsp , jstl tag which can do the same thing? Also where I can give the scope.I would like to do something like this <jsp:someTag name="someName" value=${variable} scope="request" ...