jsp

oracle connection in jsp

firstly i am a total newbie for both jsp as well as oracle. i just want to know the steps for connecting an oracle 10g database with a jsp page. ...

How to make printing Collections objects clean in a JSP

I have been considering a range of options to move away form using scriptlets in my jsps. The main cause of "messiness" tends to be the problems with printing out ArrayList and other Collections objects, because some presentation related markup gets mixed up with some Java. What would you recommend as the best solution for dealing with...

The requested resource not available in case of JSF

I am using JSF in one of my application and the scenario is as follows: I have "pages" folder under "WEB" in side "pages" I have "a.jsp" When I deploy this application with the local tomcat and access the application it works perfectly ok but when I deploy this application on my web hosting providers tomcat, it says "The requested reso...

Android app and website(server) connection

Hi all I want to create a browser to view as an administration. My project is about ferry booking using an android phone. The application is connected to the server. The ferry timing and other info are retrieved via server connection. The database is currently in Microsoft Access. My question is how do I create a browser to view dat...

JSP include with parameters usage simple question

How should I access the param1 value from the included jsp (navMenu.jsp)? <jsp:include page="navMenu.jsp" > <jsp:param name="param1" value="menu" /> </jsp:include> ...

How to tune up the performance of JSP through configuration?

How to tune up the performance of JSP through configuration? ...

How to rectify the following error while using Servlet??

I am learning Servlets concept. Initially, I Tutorial referred to this link and working on the HelloWorld example. On submission of the JSP form with the name and age I get the following errors. Kindly advise on what has to be done. The locations of my files placed are as follows, C:\Program Files\Apache Software Foundation\Tomcat 5.5...

Should taglibs be declared in included JSP files?

I have several JSP files that are included into other JSP pages. Some of these use taglibs declared in the pages that include them. Should these taglibs be declared in the included files as well? If so, do they need a different prefix? ...

Error in Tomcat Server while reading JSP file

I have placed Commonsfileuploadservlet folder inside webapps. And inside that folder i have written upload.jsp After switching on the tomcat server, while attempting to run the jsp file, the below error comes in the browser. What might be the cause? The requested resource (/Commonsfileuploadservlet/upload.jsp) is not available. ...

issue with css inherit and Ajax

There is a table alt text that uses CSS (by using inherit in CSS) to format its layout. As you can see there is a drop down on top of the window that allows us select names, and based on the selection, the table would be populated. This action has been handled by an Ajax call, so we only refresh the table and not the rest of the page. H...

How to handle HTML tags in servlet java program?

1) In my servlet program, I have a statement which will be printed using the code as follows, out.println("<b>This is servlet output</b>"); Instead of getting printed in bold, it just gets printed with the tag in the broswer itself. How to rectify the same? 2) Also, in the servlet page after the submission of a jsp form, I want...

view data form database table to table tag in jsp page

I want to apply MVC2 J2EE approach in my work with JSP pages. I want to separate the code in Servlet and design in JSP. The problem I am facing is that I want to display all users and their data from DB table to HTML table in JSP page Now How should I call the servlet from JSP page, since there is no form in display page and I don't kn...

web programming choice - language, database, reliable hoster and auto-scaling

Could you please suggest - programming option? Our Web application could have 60000 database requests/second or more in future. Which is better: MS-SQL or MySQL or other? Which is better: Asp.net, PHP, JSP or other? What kind of webhosting is reliable for auto-scaling? Any good webhosters or hosting plans? Thanks a lot. ...

Determine secure url in JSP with spring security

Like many websites, I have a login popup on every webpage of my site. Most of these pages are http (non-secure). But the login mechanism has to post to a secure url. All this works great. The problem is the secure url changes in the various dev environments, staging and different production environments. So not too big of a deal, I ...

Display html page from another domain

Hi everyone, I have to display an html from another domain in my company's website. My company's website is behind a proxy and it is a secured site (https). The html page I want to display is not https. I tried iframe, but it is giving 'non-secure items' message. What is the best method to display an html page from another domain ...

Interacting with objects managed by DWR from JSP

I'm working with Direct Web Remoting (DWR) as part of a 'plain' dynamic Java project (hosted on a Tomcat 6.0 server with Java 6). I have a simple JSP page which interacts with session-level variables within my user's session. However, I also have a session-level object managed by DWR via the 'new' constructor. Is it possible to, from w...

Displaying .gif file in JSP form using Servlet program.

I have written a servlet java program. During the execution of one particular loop of the program, I need the a gif file to be displayed in the JSP form indicating that the process is going on. I am not aware of implementing the same inside the loop. Kindly advise on how the same has to be done, such that a gif file is displayed in th...

Accessing a Bean Property Dynamically using EL

I need to access a property of a bean whose name is stored in a variable using EL in a JSP page. If I were to access a property named "description", then I would go ${bean.description}, but since the name of the property is stored in the variable "name", I have no idea how I would do it in EL. Is this possible? If not, does anyone have...

Problem with FileUpload - Null Value for Multipart File

I am working on a Spring web application and need to implement a simple FileUpload for one of my pages. The page for the JSP contains the following snippet of code which included an upload field for uploading the file. <form:form commandName="editMemberInfoModelObj" method="post" enctype="multipart/form-data"> <h1>Edit Member I...

i18n translation in JSP custom tag

Is it possible to write a custom JSP tag to take an i18n message key and output the translation phrase for the given request? Normally in JSP/JSTL, I do: <fmt:message key="${messageKey}"><fmt:param>arg1</fmt:param></fmt:message> And I get the translation phrase. Now I need to do the following (there's a good reason for this): <cust...