Uploading a simple File

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

Automatically posting the article in wordpress blog using jsp

369 byte By RamaDevia at 2007-11-27 8:30:02
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 ...

"Y a servlet class need to declared public"

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

using jsp files in j2ee application server

100 byte By cmartin19a at 2007-11-27 8:30:15
does anyone know whic folder to put *.jsp files for execution on the j2ee application server?

MVC(model view controller)

66 byte By dinajavaa at 2007-11-27 8:30:16
what is the basic concept behind MVC(model view controller)

Regarding the context path of servlet

286 byte By Manthan0a at 2007-11-27 8:30:30
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.

communicating between beans in request scope

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

interaction between jsp and java script

296 byte By chahalkhushwindera at 2007-11-27 8:30:49
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

org.apache.jasper.JasperException: Unable to compile class for JSP

1859 byte By ksenthilkumara at 2007-11-27 8:30:54
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 ...

How can I access JSP variables from a JavaScript function in a JSP page?

112 byte By chahalkhushwindera at 2007-11-27 8:30:57
Respected sir How can I access JSP variables from a JavaScript function in a JSP page?Thanx

Result Set to XML. How to generate a tree structure? Please help

977 byte By crazy_bunnya at 2007-11-27 8:31:16
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| ...

dependency injection in managed bean

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

JSP PAGE

2232 byte By SOMA_INDIAa at 2007-11-27 8:31:26
<%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 ...

how to get default value for edit page

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

About EJB

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?

exception when invoking create method on entity ejb's home object

3418 byte By Jatin_Kulkarnia at 2007-11-27 8:31:54
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 ...

<jsp:useBean> iterations

244 byte By jini4javaa at 2007-11-27 8:32:17
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.

MessageID Header

279 byte By prabhu.ramadasa at 2007-11-27 8:32:23
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

reading data from tags

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

how can i send values from java to .net

359 byte By chaithubtecha at 2007-11-27 8:32:38
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 ...

commons-fileupload

633 byte By the_Orienta at 2007-11-27 8:32:44
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 ...

Upload File [servlet and portlet] context. One solution to everybody

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

Problem: URL rewriting through javascript

771 byte By ali_hammada at 2007-11-27 8:32:49
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 ...

getParameter("String") returns null when passed from outputLink tag

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

JSF: JspException: No faces context?!

1490 byte By talk2keya at 2007-11-27 8:32:52
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: ...

Struts and database connection

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

Tag Library Help

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

SelectOneRadio with converter and commandButton with immediate

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

Problem in JavaMail

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

Property Chooser dialog from Add Correlation Set dialog Doesn't Expand

640 byte By VegetarianDesignsa at 2007-11-27 8:34:03
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 ...

Problem with tomahawk.taglib.xml

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

RBAC check fails Security Constraint Not Enforced

2727 byte By weinharda at 2007-11-27 8:34:36
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 ...

how to get the value from a database without submitting a jsp page

223 byte By SubhaMania at 2007-11-27 8:34:47
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.

problem with indexed property

719 byte By davide.angela at 2007-11-27 8:35:00
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 ...

get the arrow on column header data table

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

InternetAddress personal name is NULL from

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

JSF: JspException: No faces context?!

1398 byte By talk2keya at 2007-11-27 8:35:28
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 ...

html form input field show "null" string

457 byte By tnguyen1973a at 2007-11-27 8:35:31
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 ...

Use send redirect before doGet finish

642 byte By BruceJina at 2007-11-27 8:35:36
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) ...

conditional redirect from index.jsp

1374 byte By ccheshirea at 2007-11-27 8:35:38
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 ...

<t:inputFileUpload> Internet Explorer issues

3419 byte By MG5thAve2a at 2007-11-27 8:35:40
[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 ...

free jsp hosting

183 byte By kokorokoa at 2007-11-27 8:35:51
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.

Error connection to Oracle from JSP

1440 byte By aniketh_parmara at 2007-11-27 8:35:56
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 ...

Tomcat startup configuration question

320 byte By jhodgskia at 2007-11-27 8:35:59
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 ...

It's not working

343 byte By kripa_ostwala at 2007-11-27 8:36:20
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 ...

problem creating managed bean instance

1272 byte By Subrat.Ranjan.Raya at 2007-11-27 8:36:27
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) ...

jsp tutorial need

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)

what should i do the derby database can't be connected?

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

hebrew in jsp pages

653 byte By Kernel_77a at 2007-11-27 8:36:57
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; ...

single thread and thread safe.

480 byte By Sarvanandaa at 2007-11-27 8:37:24
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 ...