jsp form

97 byte By aschandra2704a at 2007-11-27 11:39:28
<p>can any one please help me with the code for user registration with photo upload using jsp</p>

Struts / Validator PlugIn Problem

2297 byte By nomaxa at 2007-11-27 11:39:30
Hello, I am building a small LoginForm with the Validator PlugIn ( struts 1.3.8 - tomcat 5.0).The Problem is: The first page validates perfectly. I get the proper error-messages and the right forwarding.But the second page is trouble: Its displayed correctly, but if I push the login button it kicks ...

404 status check for external website

397 byte By aman_mahajana at 2007-11-27 11:39:40
Hi,In my application, i want to check for some external website.e.g. i have my own application and in that there is a link of some different website i.e. www.yahoo.com. I click that link and in case of 404 error, we should get some customized error page instead of "The page cannot be ...

Filter problem

594 byte By jaco_moonlighta at 2007-11-27 11:39:44
Hi,I'm using a Filter.In the doFilter() method, I call chain.doFilter(request, reponse) at the end.I use request.getSession() to retrieve the Session for checking existing session data.Problem:-Only in the IE browser, when I open it the 1st time, the doFilter() method gets invoked about 5 times. ...

FacesContext throws IlegalStateException on renderResponse() method call

1100 byte By cnandisha at 2007-11-27 11:39:45
Hi,I require to implement a functionality of a timer when a page loads up.I created a PhaseListener where a thread is created in the afterPhase() method when the Phase is RenderResponse.I created another thread in the same method which waits for the first thread to complete.Both the threads are ...

Some important question about JPA!!!

1180 byte By wangld7xa at 2007-11-27 11:40:01
Hi there, I have a web application written in Java 1.4I want to move this to Java 1.5 using JPA but after review old code I've got some stuck:1. This application have a function that get Lists from a table:Collection getList(String className, string tableName)That do follwing tasks:Get set of ...

how to avoid user from opening a new window

449 byte By vinjavaa at 2007-11-27 11:40:03
Hi,I have a problem in my project. Here, when the user performs different operations in single window then every thing works fine .... but if the user opens a new window by clicking on ctrl+N or file->new Window, then a different window wil open but the session will be same. This is creating ...

how does post and get requests look like?

48 byte By iamjhkanga at 2007-11-27 11:40:30
<p>how does post and get requests look like?</p>

Run time error: WebServices with Annotations

1965 byte By PavanKumarGuptaa at 2007-11-27 11:40:32
Hi all,Here is my code (HelloImpl.java)package hellojaxws;import javax.jws.WebService;import javax.jws.WebMethod;@WebService()public class HelloImpl {private String msg = "Hello, ";public void HelloImpl () {}@WebMethod()public String sayHello(String name){return msg + name + "...";}}web.xml<?xml ...

How to send data to textbox with spaces

507 byte By sivakumar243a at 2007-11-27 11:40:39
<html><head><title> jsp code..</title><body><% String temp=have a nice day; %>// in my project at Runtime i will assign data to temp<h1>output in the textbox</h1><input type="text" name="a1" value=<%=temp%> />// here the data in temp should be displayed in this ...

User Package in JSP

362 byte By javarocktheworlda at 2007-11-27 11:40:50
hi All,i m developing one application in which i have to create one packageand import tht in JSP bt i gives package XYZ does not exist. and if i m using tht package with java application it runs perfectlyi dnt understand y this is heppning.plz help.Thanks in ...

How to reset property values from session managed beans?

310 byte By kbalasun78a at 2007-11-27 11:40:51
Hello gurus,In my JSF application i used session managed beans. So when the user navigates out/in to the page it remembers all his/her previous values in the form.I need to reset the from whenever the user navigates out of the screen.Can anybody help?Thank ...

boolean value always false when in expression

1391 byte By StijnGa at 2007-11-27 11:40:53
hi,I've written a pretty simple custom tag on which a boolean value can be set:public class TabTag extends HtmlEscapingAwareTag{private boolean active;public void setActive(boolean active){this.active = active;}}if I call the tag like this (hardcoded boolean) it works fine:<cust:tab ...

Java Driver problem

647 byte By harinibiligiria at 2007-11-27 11:41:16
I'm using SQL server 2000(Standard) on Microsoft windows 2003 machine. I'm using Tomcat server 4.1 and I use the following string to connectClass.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");String str="jdbc:microsoft:sqlserver://10.11.1.216:1433;SelectMethod=cursor;DatabaseName=GH"; ...

Is it possible to return to page and send mail asynchonous

646 byte By jposthuma at 2007-11-27 11:41:18
Hi,In my webapp I post a registration form to a servlet from my first jsp page. The servlet then sends an email to the user and forwards the user to the second jsp page.Without sending the email the user is transferred from the first jsp page to the second jsp page in less than a tenth of a second. ...

Run Batch File Or Command From JSP

555 byte By Ghostrider_1a at 2007-11-27 11:41:22
I have a simple JSP file, code is below. I'm trying to run a batch file that simply contains the line :java -ss262144 -oss819200 -classpath Topics.jar Buildingbut having no luck. Any ideas?<%@ page language="java" import="java.io.*" %><%try {Runtime rt = Runtime.getRuntime();Process p = ...

org.xml.sax.SAXParseException: Premature end of file.

1065 byte By dan1234a at 2007-11-27 11:41:29
hi im getting org.xml.sax.SAXParseException: Premature end of file. with following codepublic void parseURI(InputStream inStream) { inStream = new DataInputStream(inStream);if (inStream != null) {log.doDebugLogging("inStream available !!!");} else {log.doDebugLogging("inStream null ...

NoClassDefFoundError-- please help me

319 byte By kannankallia at 2007-11-27 11:41:30
really i am appreciating your feedback soon Why is it happening ?i got exception in my application Exception is javax.servlet.ServletException: Error allocating a servlet instanceRoot Causejava.lang.NoClassDefFoundError: LoginAction (wrong name: ...

Problem with accessing init parameters from JSP file

430 byte By beejuma at 2007-11-27 11:41:32
Hi,I have my init parameters and Jsp configured in web.xml <servlet><servlet-name>TestJsp</servlet-name><jsp-file>/Test.jsp</jsp-file><init-param><param-name>username</param-name><param-value>Balboa</param-value></init-param></servlet>How do I access 'username' ...

Regarding rendering form view

327 byte By java_sria at 2007-11-27 11:41:34
Hi all,I have list of items for which i have to CREATE,UPDATE and DELETE.Is it advisible to have 3 different jsp files of the each of above or manipulate all the operation in a single jsp.If i do adapt the later, would it hamper the performance.Which is the best ...

JSF & Ajax4jsf - Problem with a

5942 byte By Asesea at 2007-11-27 11:41:36
Hi all!I start working with JSF and Ajax4jsf technology a few weeks ago and i've reach a problem that I can't fix.I can't understand or control why my application calls to the "setters" a second time, ignoring the value that i've set before that second call.Here is an example:JSP page:<%@ ...

XML prerequisites?

321 byte By plinkochipsa at 2007-11-27 11:41:55
Newbie to XML question: What is required to run XML on a Windows XP SP2 desktop? (i.e. JRE, VM, etc.). I take XML samples and can run as html, but not xml. An Open XML Editor I am now using also points out root errors (for syntactically correct XML examples). Couldn't find a reference on-line. Any ...

How to use xPath to extract a element from a xml stringin BPEL workflow?

658 byte By kew98a at 2007-11-27 11:42:13
I have a xml string passed into the BPEL workflow, and I need to extract the value of "serviceOrderGuid" (see the xml string below), how I can use BPEL mapper to do this? I am using NetBeans 6.0/M10.ThanksKebin<Parameters ...

javax.servlet.ServletException: Servlet execution threw an exception

3741 byte By ShankarTayia at 2007-11-27 11:42:14
Hi All,I am trying to upload a file in struts, When I hit submit button I get the below exception. Please helpjavax.servlet.ServletException: Servlet execution threw an exceptionat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)at ...

Problems with Embedded classes mapping

3028 byte By jdroza at 2007-11-27 11:42:16
Hi,I'm experiencing problems for table generation with the following case:a class declares two fields; one of them typed as a subclass of the other; both fields annotated with @Embedded; the subclass uses the annotation @AttributeOverride to avoid column names duplication.When the tables are ...

More Questions about the Correlation Set in BPEL workflow

997 byte By kew98a at 2007-11-27 11:42:18
I have created a workflow, it is waiting in a loop to reveive 5 messages, after a message recieved and processed, it goes back to wait for another message, it loops until all 5 messages are received. What happens if new message comes in during the privous one is still in processing (at this moment, ...

Array of Strings and outputting it into a drop-down list

624 byte By KY8a at 2007-11-27 11:42:25
Hi,I have a javascript function that returns an array of information. From this Array, I want to plug the information into a drop-down list inside a table. How can I do this. function myfunction(){ Array a = new Array();//more codes... return a;}<HTML> <BODY><TABLE><TR><TD>Please ...

Drop List error

4061 byte By Meepa at 2007-11-27 11:42:27
The drop list is supposed to be populated by a form before the user enters the jsp page. The error is - "Failed to obtain specified collection". I think it is a servlet call or the logic of javascript and JSP whichever either process first. I'm trying to do the droplist, then I'll be doing the ...

jstl while loop

383 byte By tnguyen1973a at 2007-11-27 11:42:29
how do i do this using jstl, since there's no while tag?CaseStudy myCase = CaseStudyManager.getCaseStudy(caseStudyId);...do{...myCase = myCase.getPriorCase();}while (myCase != ...

h:column id not working

241 byte By ChenChaoa at 2007-11-27 11:42:32
<p>Hi,</p><p>I tried set an ID on the <h:column> but it is not working, can someone please tell me what am I missing?</p><p><h:column id="hello"></p><p> <h:outputText value="someText" /></p><p></h:column></p><p>thanks a lot!!</p>

Tree type expandable collapsible menu in JSP.

205 byte By PaviEluri20a at 2007-11-27 11:42:33
<p>Hi,</p><p>I am looking for an expandable collapsible menu which can be integrated into a jsp as a tile. I googled it but only came up with handful and even those are not free to use. </p><p>Regards,</p>

SQLServerDriver cannot be resolved to a type

915 byte By BrijeshShaha at 2007-11-27 11:42:37
How do i solve this. I have imported java.sql.* and javax.sql.* using page directive. Still it is not able to resolve the driver. The same code works in a normal java file but not in jsp pageAn error occurred at line: 12 in the jsp file: ...

JavaMail jar file

643 byte By Rob_Ha at 2007-11-27 11:42:47
I created a program with JavaMail that worked like I wanted it to in Eclipse (after I added the jars to my classpath), but I cannot seem to get it to work in a jar file. I use the following file as the Manifest file:Manifest-Version: 1.0Class-Path: *.jarCreated-By: 1.5.0 (Sun Microsystems ...

Call XML script from JSP File

445 byte By linkinpark2007a at 2007-11-27 11:42:52
I have a JSP Page and I want to pass an XML tag in that JSP page, which would return some JSP scriptlet value......which is something like this -<taglib : tag><%getResult()%></taglib :tag>Can u explain me how to implement that ? What all files do i need to modify or create ....do i need to ...

i cant delete messages

335 byte By urosarioa at 2007-11-27 11:42:55
hi, we have a sun java entreprise system 2005 Q4.i've problem with space in disk. it seems the messages never deleted from my system.we use microsoft outlook to download messages to pc and delete them from the server, i access from web and the messages are gone, but stiil in the disk.what can i ...

Is it possible to get component Reference from the FacesContext

467 byte By Doga at 2007-11-27 11:42:59
Hello Friends,I am not much familier to JSF but have to perform some assigned work so need your valuable help.I want to get the reference of Component (not binded with any bean)available on the JSF page in my Java code. I have to use its id attribute for this but not sure how I can get this. Is ...

Client side Tasks

856 byte By Crispsa at 2007-11-27 11:43:18
I am trying to convert a normal GUI application into a set of JSP pages due to some network issues which mean we need to do a lot of the work server side.I can accomplish almost all of the work server side using jsp. I now need to do two basic things on the client side to finish it.1. Create a few ...

Session concurrency using Hibernate

374 byte By Intel3a at 2007-11-27 11:43:20
I am new to JSP and don't know how it should work.What I am trying to do is to put a "lock" on a modifying jsp so that there will not be two users that can excess that particular page by clicking the commandbutton.How can this be done? Is using Hibernate the solution? How does it work?Is there any ...

Java call javascript in servlet

382 byte By morningJavaa at 2007-11-27 11:43:21
Hi,I am outputing HTML and Javascript using a servlet to display reports. Is it possible to embed java withing the javascript inside a servlet?I know you can do it on a JSP page like this:<script language="javascript">function test(){var javascript_variable = "";<%String java_variable = ...

JS onclick to show data of the selected row in a new browser window.

356 byte By whitesox12a at 2007-11-27 11:43:46
Hi I have a datatable populated from ListDataModel there is a commandButton at the end of each row, how can I get the selected row in javascript using onclick.Basically when a user clicks on the button I want to open a new browser window and show the values of the selected row. Can someone please ...

Probably Simple XML toString

457 byte By RogerFGay1a at 2007-11-27 11:43:48
I've been trying to convert an xml document to a string, but I'm having a problem converting. I'm reading the XML from a file.Document document = builder.parse(new File(filename));And I'm sure that works. I can parse the result. But then I try to return what I've read using:return ...

JSP Page threw a non-Exception Throwable

1617 byte By Nirav_Chhayaa at 2007-11-27 11:43:49
Friends,I have Servr JRun 3.1. The application has been workin fine since it has been deployed last year. Suddenly, I have started getting the following error.javax.servlet.ServletException: JSP Page threw a non-Exception Throwable.at ...

get big datas from client

354 byte By giulio_stevensa at 2007-11-27 11:43:59
Hi,I have a client (javascript) that sends to my servlet big datas via parameter "document=....."(document can be pdf, html ecc)I use this line in my servlet:String document = request.getParameter("document");but "document" returns null.How can I get correctly datas from ...

JSP Page threw a non-Exception

1617 byte By Nirav_Chhayaa at 2007-11-27 11:44:01
Friends,I have Servr JRun 3.1. The application has been workin fine since it has been deployed last year. Suddenly, I have started getting the following error.javax.servlet.ServletException: JSP Page threw a non-Exception Throwable.at ...

Apache tomahawk lib

204 byte By SirGenerala at 2007-11-27 11:44:11
<p>Hello,</p><p>I am using Sun's JSF implementation.</p><p>I would like to know if Apache's tomahawk library is compatible with Sun's JSF impl. or does it work only with Apache myFaces.</p><p>~SirG</p>

servlet execution

238 byte By j_stara at 2007-11-27 11:44:29
<p>Hi! Please try to answer my question : if there are 3 methods in the servlet as service,doGet and doPost then which one gets executed first and does the request get passed to other method?</p><p>Message was edited by: </p><p>j_star</p>

Using HTML tags in JSF

564 byte By Arthi.Konditia at 2007-11-27 11:44:33
Hi ,There is a requirement in my project where i have to convert the PHP Application to JSF AppCan i use the normal HTML tags.. in the JSP when i am using the JSF tags in between.if i use the normal HTML tags does it impact in anyway. i was enable to decide wether to use normal HTML tags..or i need ...

how to get the query values from the url in a servlet and pass them to jsp

886 byte By hari786a at 2007-11-27 11:44:35
ok..this is the situation...all applications are routed through a login page...so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and ...

servlet execution

182 byte By j_stara at 2007-11-27 11:44:36
<p>Hi! Please try to answer my question: if a servlet has 3 methods as service,doGet and doPost then which one gets executed first and does the request get passed to next method?</p>

how to get the query values from the url in a servlet and pass them to jsp

886 byte By hari786a at 2007-11-27 11:44:38
ok..this is the situation...all applications are routed through a login page...so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and ...