jsp

JSP or .ascx equivalent for Scala?

I'm working on a small MVC "framework" (it's really very small) in Scala. I'd like to be able to write my view files as Scala code so I can get lots of help from the compiler. Pre-compiling is great, but what I really want is a way to have the servlet container automatically compile certain files (my view files) on request so I don't hav...

Expression language equivalent

what will be corresponding expression language statement for request.getRemoteUser() ? ...

Rendering a nested list with JSP

I need to render a 3-level deep list of items via JSP. Let's say I have beans with String properties "Country", "City", "Street". I need to build a heirarchy of UL and LI tags to show streets such that they are listed under the appropriate city, and such that each city is listed under the appropriate country. Example: <ul> <li>United S...

Spring Forms - How to Check for Error on Specific Path

Hello, I'm using the Spring Form library to handle a search page in my application. Here is a snipped from my DD showing the bean configuration: <bean name="/search.html" class="myapp.web.AccountSearchController"> <property name="sessionForm" value="true"/> <property name="commandName" value="searchAccounts"/> ...

How do I send the jsessionid via POST using hidden inputs when cookies are disabled in JSP?

Is there any way to send JSESSIONID via hidden inputs? Something like <input type="hidden" name="JSESSIONID" value="<%= session.getId() %>"/> I tried everything but nothing seems to be working. It works if I directly access the other page with www.example.com/app/q.jsp;jsessionid=CC7A1A07E117B66F4C5D8910F4F138F3 ...

Multithreading in JDBC connectivity

i am trying to upload a file into the server and storing the information of the file into an Access database, is there any need to handle the threads while database connectivity for multiple user. If yes how to do it? ...

How do I convert JSP (custom tags) to Code in a servlet in Spring Security?

I am working on a project where I have to include some code from a JSP. This JSP has code as follows (related to Spring Security) ... <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %> <%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %> <%@ page import="org.springframework.security.ui.webapp.Authen...

<s:select> Error:The requested list key 'typeSurvey' could not be resolved....

this is my jsp: <s:form action="InsertSurvey"> <table> <tr> <td> ID Survey: </td><td><s:textfield name="SurveyValues.survey.idtextsurvey"/> </td> <td> Tipo Survey: </td><td><s:select list="typeSurvey"/> </td> </tr> </table> </s:form> and this is my action wit...

Spring SimpleFormController - Including Search Form In Success View

UPDATE 1/31/10: Since this thread continues to get a lot of views...I am curious if it has been of help to anyone recently? Feel free to leave comments/feedback, thanks. I have a Spring form where I would like to reuse the search page to include the results under the search form. Currently when I do this I get the following error o...

Handling requests using threads

I am writing an application using JSP & Jdbc, Where i have a table name "COMMENT_DATA", In which user can post their comments on that. So now If more than one user is writing comments and posting it at the same time, I am going for threads. So I will be Synchronizing the method which inserts the data onto the Database. Then how to handle...

Login form in JSP

enter code hereHiya, so far I didn't use JSP at all and I find some online tutorials to be very complicated to learn from them, I need to make simple login form .. its not problem for me to do it in PHP but in JSP ist a big problem. Here is how I'd do it in PHP plain and simple, HTML : <form action="action.php" method="post"> <input nam...

How to use Ajax JQuery in Spring Web MVC

Hello All.. I am using spring web mvc for my application. I have 1 dropdown list in my JSP View, coming from following request called savegroup.htm <bean name="/savegroup.htm" class="com.sufalam.mailserver.presentation.web.GroupSaveController"> <property name="sessionForm" value="true"/> <property name="command...

How to display blob datatype from database to pdf

I am having with displaying an image file stored in a database as BLOB type.... now i want to call that image and display it in a pdf...i am using jsp and servlet for web client... i just need a central idea or crux of how to go about the problem. Any help will be highly appreciated Thank you Anand ...

How do I check that a session object contains a particular key/value entry

I want to check if a certain key/value pair has been set. How do I check if a an entry with key named "keyName" exists. Sample code or a pointer to an example would be appreciated. ...

How do I share data between a jsp page and servlet

I have several .jsp pages and several servlets. I need to save some information to a session variable. In the jsp page I simply refer to session.get...() or session.set...() Without explicitly declaring an HttpSession object. But in the servlet the proper rules of programming apply and I have to create an object first. My conc...

question concerning JSP and javascript

I'm a JSP newbie, I understand that there are some kind of taglib files as I understand they are some kind of custom defined JSP tags. Here is a snippet of javascript code which I don't understand : Polygon.viewPoint = function( index ){ window.${ec:safeId('polygon.view')}.Point( Page.ListofPoints.elements[index], index, 100 ); ...

Integrating SOAP and VXML

I am writing an interface for our VXML application that will allow access to a SOAP service. Because of the difficulties inherent in trying to use javascript to make SOAP calls and the limitations of VXML, as in making external resource calls are pretty much limited to HTTP requests, GET and POST. I designed a java servlet that would a...

Character encoding problem with email format

Hi , I have a simple jsp form that the customer uses to send us emails. Though on some occasions the emails come through incorrectly formatted with the text =?ISO-8859-1?Q? sporadically displayed throughout the text of the email. I know that ISO-8859-1 is a character encoding though I am not sure how this error is occurring and have ...

Calling a method from within a servlet in tomcat generated HTML

I have a piece of Java code in a simple blogging servlet being used in Apache Tomcat. I have page being generated based on a form in the previous page, among this is a link to publish the post. I would like the user clicking that link to call a method later in the class. Is this possible and, if so, how? ...

Browser timeout and page cannot be displayed

Hi, I have written within a JSP page to have Thread.sleep() for more than 1 hour. The JSP is deploayed on WebLogic server 9.2. I am trying to check the browser timeout and page cannot be displayed error. As per the below documentation, the default timeout for IE6 is 60 seconds. However, I was testing the above JSP and did not get any t...