<p>can any one please help me with the code for user registration with photo upload using jsp</p>
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
<p>how does post and get requests look like?</p>
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 ...
<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 ...
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 ...
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 ...
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 ...
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"; ...
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. ...
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 = ...
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 ...
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: ...
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' ...
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 ...
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:<%@ ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
how do i do this using jstl, since there's no while tag?CaseStudy myCase = CaseStudyManager.getCaseStudy(caseStudyId);...do{...myCase = myCase.getPriorCase();}while (myCase != ...
<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>
<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>
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
<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>
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>
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 ...
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¶m2=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 ...
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>
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¶m2=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 ...