jsp

jrun cannot run multiple jsp instances

First off, my code works perfectly on all app servers except jrun. I have a jsp named trends.jsp. In my web.xml I create multiple instances. <servlet-name>trendsA</servlet-name> <jsp-file>/trends.jsp</jsp-file> <init-param> <param-name>server</param-name> <param-value>serverA</param-value> </init-param> <servlet-name...

Can we use Tomcat Server in android app

Hi to all, I am developing Android Web App using JSP with xml parsing. I developed it in Java using Tomcat Server but I couldn't develop in Android. I am new to the web app development. So can anyone kindly suggest me how to proceed further... waiting for a response guys...Thank you ...

Go back in url-pattern (invoking servlet from a jsp page)

I have made small web-app in jsp with a start page with login and some restricted pages with logout, -everything controlled with filters and servlets. I started making it because I wanted to learn how to use filters and servlets, and think I have succeded in that very well. Everything works fine when I just ensure everything is happenin...

javax.servlet.jsp.JspException: Can't insert page ..... Software caused connection abort: socket write error

Hi, I just deployed an application to weblogic 10, and when I run my page, I get the custom error page with the following errror in the log. javax.servlet.jsp.JspException: Can't insert page '/pages/header.jsp' : Software caused connection abort: socket write error at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(Ins...

jQuery not working with struts2 actions

Is it a must to use the struts2-jquery plugin to be able to run jQuery code in a struts2 application? I am working on a struts2 web app jQuery file: WebContent/js/jquery-1.4.3.js JSP pages location: WebContent/pages/*.jsp THDFindYourQuote.jsp is the default page of the application: I have a simple script in THDFindYourQuote.jsp [scrip...

Accessing constants in JSP using EL

Possible Duplicates: accessing constants in JSP (without scriptlet) Reference interface constant from EL Hi, I am having a class which contains all the constants used in my application. Eg: public class AppConstants { public static final String USER_TYPE_ADMIN = "Administrator"; } Now in one of my jsp page, i need t...

Gantt Chart for JSP?

I've tried using JSGantt and it's really good. But I would like to know if there are other Gantt Chart that offers greater interactivity such as dragNdrop and resizing directly on the chart. I saw Gxt Gantt but it is not free. Chart should also be compatible with Java/JSP. ...

java jsp type="image" value into servlet

I have this code in my jsp <div class="controls"> <input type="image" class="sprite submit-button button" name="SubmitChangeCreds" value="ChangeUIDSubmit" src="../images/layout/transparent.png" /> </div> In my servlet I am trying to get the value of this image like this request.getParameter("SubmitChangeCreds") But this is null...

how to remove all "\n" in JSP page? (use javax.servlet.Filter?)

i want remove all "\n" for JSP page output. i think i should be using a Filter for this. but i dont know how to do public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)throws IOException, ServletException { //how to remove all "\n" for output? } any idea? thanks for help :) ...

jsp does not display whole animation

when i keep all jsp files in foo folder then jsp show all the graphics, images, css, jquery animation etc. all working fine in foo folder. but i want to keep my all jsp's in jsp folder which is outside of foo folder. it show all the graphics but it does not display jquery animation.e.g when i keep the cursor on a row of table it does no...

Duplicate local variable in JSP in RAD

I get a "Duplicate Local Variable" error in JSP after build in RAD. I have same variable names inside scriptlet tags different logic:present / logic iterate tags. Sample code. <logic:present> <% int var1 = 5; %> </logic:present> ................... <logic:present> <% int var1 = 5; %> </logic:present> Since the variable are in...

Not able to access network mapped drive from jsp running on tomcat 6.0

Hi, I want to access the network files from my web application. I have build the web application (which access network share folder and files) and its works perfectly under eclipse. The same application doesn't run if run through web server Tomcat 6.0 String lineSeparator = System.getProperty("file.separator"); String path1=li...

Tomcat - making a project folder the web root

I have this folder under Tomcat webapps/mysite which is where all my JSPs and other things are located. To access this folder I go to http://blah.com/mysite and it works just fine. However (because of stylesheets and images statically connected to the root /) I have to make it so that when I go to http://blah.com/ it will load the stuff ...

Spring MVC: Relative URL problems

I have a controller bound the URL: "/ruleManagement". Inside my JSP, I have a form that forwards (on submit) to "ruleManagement/save" url. When there are errors with the input fields, I want it to return back the original form View. This is where the problem starts... Problem 1) Now that the URL is "/ruleManagement/save", my form sub...

what's a authorization header? How is it used. How is it differrent from using login custom coding.

Just found that there is a request header authorization. Want to know what is the use of this header. How is it used in the context of jsp tomcat servlet enviornment. How is it different from a normal login module, where user enters username password in a simple jsp page. How a page passes authorization header. ...

JSP Access to Javabean Properties

I have a Java class with a method, hasMoreParameters(). In JSP, I want to get the property: ${holder.moreParameters} How do I do this? ...

image display on jsp page

i am using<img src="../img/image.gif" /> to display the image on jsp but it show a smalll icon. img folder are parallel to jsps folder Directory structure: WebContent jsps .jsp files foo img images.gif WEB-INF ...

Error - Can not find the tag library descriptor for "/struts-tags"

Hi, I'm receiving this error on my jsp file - 'Can not find the tag library descriptor for "/struts-tags"' Strange thing is my app still seems to work. I'm following the tutorials at - http://struts.apache.org/2.x/docs/using-struts-2-tags.html Here is the code. <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pag...

IE7 form authentication after ntlm authentication failed

I have a problem with authentication: Users that have valid domain credentials are logined using NTLM authentication (i send "WWW-Authenticate: NTLM " header and 401 status in my jsp filter. Then IE authenticate user using NTLM and everything is fine. I have other users (connected to lan with their own computers) and they can't logged...

Servlet exception in java

I imported a java project(war file) to eclipse. When I tried to run it , I got following error : java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments <User> Syntax error, parameterized types are only available if source level is 5.0 I tried to google it. I found tha...