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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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" ...
450 byte By
naekoa at 2007-11-27 10:13:37
hi,anyone know how to realize a horizontal line in a <h:dataTable>?i would like to have after each row a separator:A1.1 A2.1 A3.1--A2.1 A2.2 A2.3--A3.1 A3.2 A3.3and so on...........i included in every row a style:border-bottom, but i have some spaces between each elements:A1.1 A2.1 A3.1 - --A2.1 ...
HiI have been working one month now with faces and one thing thing that bugs me is how faces handles URL.I use commandLinks,commandButton's and outputLinks and the url is always something.jsp#. This could be good in one web application, but if I wanna develop an website \ portal, some parameters ...
Hi,I want download com.oreilly package.And I find out the URL www.servlets.com/cos/index.html . this url not working in my system. this site showing internal server error.So, i want another web site.Please help me to give the URL.advance ...
Hi to all, I have a topic for all users here...as i mention in subject favicon image. Favicon image is a little image which appears just before URL in the address bar.i have a problem in that when i am using IE7 and run my code from my local machine it appears but same thing is not appearing at the ...
491 byte By
manu_ama at 2007-11-27 10:14:02
Hi friends, I am doing a project in which there is a registration form where i have to check username availabitlity. When i click on the availability button the result should be displayed indicating whether it is available or not.I have created it using ajax technique. But i want to know how it ...
I display a table inside a <div> because I want to show scrollbars. However, I have wrapped around text inside table cells although I provide enough width to each column and used white-space:nowrap; overflow-x:scroll. How do I make all text in each table cell displayed in one single ...
I noticed the source code for the classes in package javax.faces.component.html appear to be missing from jsf-1.2_04-b10-p01-src.zip. That is, the directory jsf-1.2_04-b10-p01-src.zip!javaserverfaces_sources/jsf-api/src/javax/faces/component/html contains only the package.html file.Is there a ...
Hi,I have a requirement where i need to put multiple components under one table column(ie. under one cell).Like I have a single table column and i want to put 5 combo boxes (drop downs) under one column. These five dropdown should be populated against one record (primary key) and table may have ...
Hi All,We have to design a conference booking search form which contains nX48 table.n -> indicates the conference rooms and 48 are the time slots(30 mins gap).While booking a conference room user enteres from time and to-time and from and to dates.In our search form, user searches with in the range ...
946 byte By
thanua at 2007-11-27 10:14:58
Hi all, Iam trying to get the lastmodified time of a file using this File newFile=new File(uploadFilePath); //uploadFilePath has the path of the file.String newFile_Name=newFile.getName();long lastmodified=newFile.lastModified();The above is working in windows but not in MAC. in MAC i get the ...
Hi, I am using a method in DAO which is of the following format: public getAllCategories(){ return getHibernateTemplate().find(" from CategoryMaster "); } and it is returning a list of POJOs to the serviceClass that called this method. Till here its fine. Spring Mapping: - THe DAO is enclosed in ...
Hello All,I have a requirement such that based on a selection within the first drop down field, a second select field should be populated.I'm thinking of using AJAX for this. I'm clear about how to send the request to the server, I have a Database call from my action class that returns a list, ...
<p>I want to display a jsf page directly. In my project I am using jsf frame work and we are using org.apache.myfaces.component.html.util.ExtensionsFilter to redirect the request to the login.jsf. please any one help me on this.</p>
<p>Hi all,</p><p>The situation is, I have specific database fields which hold html markup elements. I am accessing them using struts framework and tlds. Could anybody tell me how would I render the html markup from those bean properties?</p><p>I appreciate your help.</p><p>Ta.</p>
1110 byte By
luiguisfa at 2007-11-27 10:16:43
I have a jsp error page to handle exceptions when a exception occurs inside a servlet, I'm running my servlet in Oracle Apllication Server 10g and all runs fine, but when we decided to change the application server to SJSAS 9 I get a null RequestDispatcher when I'm trying to redirect to the error ...
Hi All,I have a bit of a problem I have not been able to track down. I have a JSP that sometimes duplcates my list data in a SelectOneMenu and sometimes the data is only listed once...ie: the list might have selectItem entry values of { All, None } and sometimes {All, None, All, None }. The ...
396 byte By
xyzta at 2007-11-27 10:17:20
HelloI want to show image on my JSFpage in the "customer" folder.I added this line:<h:graphicImage value="../img/header.jpg"/>But it doesn't show the image. My project folders are:-Web pages>WEB-INF>img>customer>discountWhat should be the correct image path? Will the path include "faces" ...
160 byte By
Shebua at 2007-11-27 10:17:27
<p>Hi...</p><p>Can any one clarify me whats the difference between a context and a scope ?</p><p>Ex. whats is difference between pageCOntext and pageScope ?</p>
<p>Hi,</p><p>I am using Jakarta-Tomcat-3.2.4. The server was working fine but then today when i tried to open the startup.bat file , it is'nt working. The window opens for a second and then disappears ? What can be the cause and how to solve this ?</p><p>Thanx in advance .</p>
101 byte By
Shebua at 2007-11-27 10:17:40
<p>hi...</p><p>can any one tell me that...</p><p>Can classic tags have scriptlets in their body ?</p>
I want to define the name of a variable of a Custom Tag in a JSP file as in<tld:customtag name="customName"><jsp:getProperty name="customName" property="message"></tld:customtag>The custom tag looks aspublic class CustomTag extends BodyTagSupport {private String name;public void ...
Hello:I am looking for a JSP code tutorial or example where they show how to invoke a program and send any commands or parameters to that program.It is something similar to what this CGI in Perl does:open (IDL,"| /usr/local/bin/idl"); print IDL "idl_libpath = '/users/ccc/IDL-Library-WL/'\n";print ...
37370 byte By
Torleifa at 2007-11-27 10:19:10
I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.The problem i have is when i send ...
37602 byte By
Torleifa at 2007-11-27 10:19:12
I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.The problem i have is when i send ...
<p>Hi,</p><p>I want to call action method on the click on the row of the datatable. I can not use java script according to my project. How cai implement this. </p><p>Please give me a sample example or pointer.</p><p>- Ramesh</p>
<p>Hi,</p><p>I want to display some message when the user places mouse over the row of the datatable. I can not use java script in mmy project.</p><p>Please give me a sample example or pointer.</p><p>- Ramesh</p>
hi,i want to develop simple application using servlets.i ve installed apache tomcat4.1 version.i ve compiled my servlet program successfully.but when i am trying to start tomcat server,it is showing some error.i ve set the callspath too.the error is:The JAVA_HOME environment variable is not defined ...
Hello Sir I am getting a strange problem in my struts application. The problem is coming in IE but its working fine in Mozilla. The problem is as follows : "I have two url (given below) but the action (StoneAction in my case) and form-action(StoneForm) behind them is same and both of these urls ...