455 byte By
NUCKZa at 2007-11-27 8:29:50
I can't understand why this such difficult thing, uploading a file via JSP. I just looking for a simple example to upload a file to server nothing more nothing less. I've seen to so many complex examples of something very easy to do any other language such as ASP.NET, COLDFUSION, PHP and etc. ...
Hai,Good Morning, I want to post an article in wordpress blog automatically. I donot know how to do that process, plese inform me how to solve this problem i donot know what are the spets for that process i have an account in that wordpress.com. I need to post new article and the description of ...
428 byte By
beejuma at 2007-11-27 8:30:07
Hi folks,What is the need of declaring the servlet as public.import javax.servlet.*;import javax.servlet.http.*;public class SampleServlet{// some code ...
does anyone know whic folder to put *.jsp files for execution on the j2ee application server?
what is the basic concept behind MVC(model view controller)
Could somebody tell me if I dont specify my servlet name in web.xml and try accessing the same using http://localhost:8080/MyApp/servlet/MyServlet how does Tomcat manages to find the servlet andwhy do i need to append /servlet before the servlet name.
1373 byte By
PC_Guya at 2007-11-27 8:30:44
I have list.jsp that has a table of items with a link to edit each item like so<h:dataTable value="#{list.model}" var="curItem"><h:commandLink actionListener="#{item.doActionEdit}" action="edit"><h:outputText value="#{curItem.id}"/><f:param name="id" ...
Hello SirIs it possible to exchange data between jsp and javascript functions ?Actually i want to execute some javascript functions if some request.getAttribute("uname") is not present in jsp pages.Please give me some advise , how to do this ?Thank u in advance
Hi,I am using <jsp:useBean> tag and invoke the java class file. But i could not access the java class.Here is the my JSP coding:`````````````````````````````````<%@ page language="java" %><jsp:useBean id="MsSql" scope="session" class="MsSqlConnection" />Here is the Error ...
Respected sir How can I access JSP variables from a JavaScript function in a JSP page?Thanx
Hello everyone,I went through some of the posts here and I wasnt able to find my answer. Hence I am posting a new thread. If this question was already answered kindly point me to that thread.My scenario:I have a result set which has following set upREGION | STATE | DISTRICT | CUSTOMERNE| ...
693 byte By
lsabina at 2007-11-27 8:31:18
Hi.I am developing some custom components using JSF; this components use EJBs to access data. I want to make the components independent of the data source to make them more reusable.I am trying to use dependency injection to get the references to EJB inside a managed bean but I got this ...
<%String xaccode; String xuid,xupas;xuid=request.getParameter("uid");xupas=request.getParameter("upass");Connection conn=null;try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");conn=DriverManager.getConnection("jdbc:odbc:Track","","");String s="SELECT accode FROM USERDTL WHERE ...
357 byte By
oftskya at 2007-11-27 8:31:28
hi, i have a datatable(usertable.jsp) to show all users-information, now i want to edit one of the users.i can now send die user-id to beans and build the user-object and also can navigate to the userEdit.jsp .but i do not know , how to send the user-object to the userEdit.jsp as default ...
128 byte By
AWCPa at 2007-11-27 8:31:34
i,m starting to lerning EJB plese explain how i start this.what are the main component and explain about this technology?
I have a simple entity bean. I am able to get the reference to the entity's home object. But when I run create method on entity's home interface, I get the following exception. The create method takes no arguments as the primary key is Auto-Increment field in MYSQL database. Here is the ...
Hi all,Could any body tell me how to iterate the ArrayList object which contains list of same JavaBean objects through the <jsp:useBean> tag?I am getting the ArrayList object from a servlet successfully.Thanks.
Is the Message-ID header a mandatory header? And can it be safely used to distinguish between different messages on the inbox? (As in how unique is it in reality?).Also is there any other way to identify a particular message on the inbox?THanks,Prabhu
331 byte By
aaa801a at 2007-11-27 8:32:28
i have a sample xml filewith these tags in it<siteurl>##</siteurl><publisher>###</publisher>and lots more tagsim writing a program to print the data from the filelike http://java.sun.com/suninstead of printing a whole fileany ...
hello,some one told me that by using webservices we can send values from java to .netis it truei dont know the webservices in java.can you plz suggest mewe have a crossplatform project in which we have to send values from java to .net like we have to maintain sessions.can you help me.thanks in ...
I use commoms-file upload to upload an image in myJsp.jspFileItemFactory factory = new DiskFileItemFactory();ServletFileUpload upload = new ServletFileUpload(factory);List items = upload.parseRequest(request); // this lone can not interpreted System.out.println(items)// nothingNo exception what ...
49523 byte By
nvecesxa at 2007-11-27 8:32:47
Hello:Here one solution to everybody for the uploadfile issue:1-New faces-context-factory, In faces-config.xml file:<faces-context-factory>com.sadiel.common.faces.context.FacesContextFactoryImplA</faces-context-factory>2- FacesContextFactoryImplA:package ...
the following javascript function is called on drop down's onchange() method... this is java script function .. which reloads the same pagefunction showDataByForm(){ var selValue = document.CATEGORY.ddlViewByForm.value; document.CATEGORY.ACTION ...
830 byte By
slata at 2007-11-27 8:32:51
From an outputLink tag, I am trying to forward to servlet and then forward to a different page. This is the code I have for outputLink tag.<h:outputLink value="#facesContext.externalContext.requestContextPath}/UtilityServlet?stateId=1"><h:outputText ...
Hi All,I have just started to look into JSF. I'm not sure if this is the write forum to post this question but any helpful answers are appreciated.I downloaded a completely developed simple application from the following tutorial: ...
2504 byte By
draganma at 2007-11-27 8:33:11
I am new in Struts and I need help to connect to mysql database. The problem is: The requested resource (Servlet action is not available) is not available.here is my <data-source> in struts-config.xml : <data-sources><data-source ...
665 byte By
ccoaa at 2007-11-27 8:33:25
I am attempting to define a tag library in which a parent tag contains up to 4 different types of child tags, and those child tags may or may not display their contents based on certain conditions.To start, I created the parent tag and one child tag. All the parent tag does for doStartTag() is ...
1057 byte By
Jerry_a at 2007-11-27 8:33:40
Hi,Given the following jspx:<h:selectOneRadio value="#{bean.currentCar}" required="true"> <f:selectItems value="#{bean.carList}"/> <f:converter converterId="carConverter"/></h:selectOneRadio><h:commandButton value="Do it" immediate="true" ...
2937 byte By
art84a at 2007-11-27 8:33:44
hi all,i succefully execute the program.but atill i have some problems on it.my problem is , if i run the program it shows java.io.FileNotFoundException.the post the log,20:35:04,766 INFO [STDOUT] DEBUG: JavaMail version 1.3.120:35:04,766 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: ...
We are using Windows XP with NetBeans IDE 6.0 Preview (M9, build 070502).We are creating a BPEL workflow. We want to create a correlation set. 1. In the Navigator, we right clicked on Correlation Sets, and and chose "Add Correlation Set ..." from the menu2. The Correlation Set dialog opened. It ...
1714 byte By
ivlad10a at 2007-11-27 8:34:06
Please, can someone point me to the link for downloading file tomahawk.taglib.xml.I could not find one so I just copied it's text from http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk, what is referring to an old tomahawk version. After that I had to look into tomahawk jar to find a ...
I configured a simple WAR to ony allow a specific role to be able to execute my Helloworld url. Now it appears that any valid user defined on the appserver can access the url. Shouldn't it be limited to the specific role i defined using the deploytool? It almost appears as if the security ...
I have a jsp which has a text box depending on the value entered I want to get the value from a database for other two fields with out submitting jsp page. I am using struts.Thanks For any assistance provided.
Hi, Im using struts...I have:<logic iterate... name="myForm" property="myList" type="MyObj" indexId="i" id="object"><html:text name="object" property="<%= "myList[" + i + "].id" %>" /></logic:iterate>And in myForm i havepublic Object getMyList(int index) {}With these ...
444 byte By
sivasaia at 2007-11-27 8:35:03
<t:commandSortHeader columnName="spclMngmtAreaNm" arrow="true"immediate="true">i am using <t:commandSortHeader with t:dataTable ,when form intialize this arrow on datatable not showing.when i click on column header only showing arrow .how to show arrow on datatable column by form ...
1677 byte By
J-Ka at 2007-11-27 8:35:25
Hi,I am using Java Mail APIs to access Lotus IMAP Server. I am trying to get the Personal Name of the From Address in a Message. I have casted the Address Object to InternetAddress Object. There is no value for Personal Name. It returns NULL. Here is the test code.String host = ...
Hi All,I have just started to look into JSF. I downloaded a completely developed simple application from the following tutorial: http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.htmlOne can download the same directly from: http://www.exadel.com/tutorial/jsf/misc/jsfks-done.zipI tried to ...
I'm using JSPI'm using EL expression, and if one of my property is null, it is display "null" in my html form's input fieldexamplebean = user<input type="text" name="lastName" value="${user.lastName}" >it will show "null" in the text fieldis there a nice clean way to have it display an ...
I have a servlet that emails a report to the user when they fill in the form. Then the servlet redirects to another page. I try to send the redirect page first and let the process continue as shown in the code:public void doGet(HttpServletRequest request, HttpServletResponse response) ...
I have an index page for the application that I want to use to send the user to either the login page or the search page depending if they are logged in already. I have the following :<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...
[nobr]So I have a pretty strange problem that I'm not quite sure how to debug. I'm using the Tomahawk <t:inputFileUpload> component on all the pages we allow a user to upload image files. In FireFox, Opera, Safari, etc etc.. things work as expected. However, in Internet Explorer (6 and ...
hey,i m looking for a free hosting with support to .jsp technology. No matter the address you get, i care only about .jsp and some middle-size database.. thx in advance.
I am trying to connect to oracle from jspthis is the class which I have created to test. I have atken this class from oracle documentation package user;import java.sql.*; import oracle.jdbc.pool.OracleDataSource;public class JdbcTest { public static void getName () { // Create DataSource and ...
Can anyone tell me how I can......add the following parameter to Tomcat startup:-Djava.awt.headless=trueWhich file is the advice referring to (and where can I find it)?And in which part of the file should I make the ...
Hi,I found program on sun...\Retrieving Mail with the JavaMail API and Working with the Java Communications API.mht for fetching mailI copid it and compiled.But It gives me error for "Fetch" program as incompatible types forMessage message[]=folder.getMessages();Can you tell me what I will ...
Hai all,In my jsp page i want to set the username and browser session id in the managed bean DemoBean.javafor that i am using code like this in gettable.jsp page<%String user=request.getParameter("username");String browsersession=(HttpSession) ...
281 byte By
Iftia at 2007-11-27 8:36:42
Hi!I am new in jsp.I have searched in google for free jsp tutorial.But not get any useful result.Can anyone give me with some link for downloading jsp tutorial (free of cost).If can please sent it. Thanks to all (The reader of the message)
432 byte By
weieila at 2007-11-27 8:36:55
i downloaded the j2eetutorial of Sun ,and i practice the bank examples of J2EE platform, the other steps finished successfully according the pdf tutorial ,and formed the BankApp.ear ,but when i run the web client and the application client ,when accessed the database ,it can't show the data in ...
hi , i've followed everything i fond on the net but still no success using tomcat 5.5 , mysql 5 , sk5 i've included this two lines in the jsp :<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><meta http-equiv="content-type" content="text/html; ...
Dear all,Thought this would be the most appropriate forum to post these.a) Is there any difference between single thread and thread safe ?b) All the servlets are thread safe, arent they ? a new object is created everytime a request for "that" servlet comes through. Am I correct?I know this is ...