Embedding logo in a JSP file created by JDev2
I am using HTML code(as usual) in a JSP file to create a e-Commerce site. I want to show company logo which is a .jpg file and also the company name in a single frame. Can someone please tell me how I embed logo and text in this single frame?
Suntae
I chose from the drop-down list.
Maybe not.
Anyway, thank you very much!
Similar Messages
-
Exception while opening a JSP file created using oracle report builder
I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
I have deployed the JSP created above to the Oracle Application Server
but when i try to open the JSP file it gives the following error:
500 Internal Server Error
javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
can anybody help regarding this
this is of high priority to me
thanks and regards
Subhajitbump
-
Embedding HTML image logo in a JSP file
Hi all,
I'm embedding a .jpg logo in my e-Commerce site JSP page, hence coding in HTML. I want to show both my companyname in text and my company logo in jpeg file in a single frame. Can someone please tell me how I'll be able to do that?
Thx.
S
nullWow, this is absolutely incredible... you try to parse an empty String to an int and it throws an exception... I'd never have thought.
-
How to create a new session in JSP file
Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.
I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
// this will create a new session object if one doesn't already exist.
HttpServletRequest.getSession( true );
Hope this helps -
Removing scrollbars on the JSP page of frames created by included JSP files
Hi All,
In the iternet sales B2B application which we are developing, has a blank JSP file. Wherein we are adding other JSP files on it, loading trough JS.
When we are adding it is making the various jsp files in the form of the frames, and each frame has different JSP page. So it is adding scrollbars on each frame if the size of the page exceeds the size of frame.
we don't want the scrollbars. Kindly suggest to remove these scrollbars, and all the pages should look as a single JSP page.
Thanks & Regards
EKtaHi
set scrolling="no" while creating frames
Murali.K.N -
How to authorize my Login.jsp file to create LoginContext, deployed in war
I am currently doing a login process and I need to know how to give my Login.jsp file the permission to create a LoginContext. I packaged everything in a war file and deployed it to the server.
Specifically this is the error that I am getting:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.security.AccessControlException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
javax.security.auth.login.LoginContext.init(LoginContext.java:224)
javax.security.auth.login.LoginContext.(LoginContext.java:403)
org.apache.jsp.Login_jsp._jspService(Login_jsp.java:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
In my code in Login.jsp this is what I have at the top of the page:
<%@ page language="Java" import="portal.*,javax.security.auth.login.*" %>
<%
String s = request.getParameter("loginButton");
if (s != null) {
out.println("The user attempted to login");
String user = request.getParameter("username");
String psw = request.getParameter("psw");
AscCallbackHandler cbh = new AscCallbackHandler(user,psw);
LoginContext ctx;
try {
ctx = new LoginContext("studentportal",cbh);
} catch (LoginException le) {
out.println("Sorry, could NOT create context");
}The admin page tells me that portal is deployed at location:
${com.sun.aas.instanceRoot}/applications/j2ee-modules/portal
My entry in the server.policy file looks like so:
grant codeBase "file:/home/jay/sun/Creator2_1/SunAppServer8/domains/creator/applications/j2ee-modules/portal/WEB-INF/-" {
permission javax.security.auth.AuthPermission "createLoginContext.studentportal";
permission javax.security.auth.AuthPermission "modifyPrincipals";
permission javax.security.auth.AuthPermission "getLoginConfiguration";
Which gives the error shown above
Please help
Message was edited by:
jay_dawg
Placing code tagsjava.lang.NoClassDefFoundError: org/jdom/JDOMException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.getConstructor(Class.java:1629)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1164)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3305)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)and following by this -
How to create html files while the request to a jsp file of same
Hi..
i need to create html thumbnails during the runtime for a jsp page. so that i can display it in a table (number of pages.). For that, i need to create html pages for each and every request to that jsp file with different data. please help me in this..
Thanks
Suresh SI believe you will need to more clearly describe what you are trying to do and what the problem is that you are having before you get a reply to your question.
-
I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
i'm i doing the right thing ?Hi,
This is right provided you have installed the webserver & app server
on the same machine and the port number for the web server is 80 by
default.
Regards
Raj
Arif Khan wrote:
I have a created a directory structure
ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
jsp.i created a war file having that jsp,and ear file having the war
file
I deployed the ear file.Now i try calling
http://localhost/myapps/test.jsp ??
i'm i doing the right thing ?
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
Automatic created Java file error when compile JSP file
I got the following error message when i try to load the JSP file given below (FlightSearch.jsp). Given also below the JAVA files (flightsearch$jsp.java) created by the compiler.
Thanks for your help
Susan
Error message
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:320: 'catch' without 'try'.
} catch (Throwable t) {
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: 'try' without 'catch' or 'finally'.
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: '}' expected.
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
FlightSearch.jsp
<%@page import="java.util.*" errorPage="ErrorHandler.jsp"%>
<%@page import="com.client.entity.Flight"%>
<%@page import="com.client.wsclient.FlightServiceClient"%>
<H3>Available Flight List</H3>
<br>We have found the following Available flight(s) : </br>
<table border="0" cellpadding="0" cellspacing="0" width="100">
<tr>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Company</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Number</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Depart From<font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrive</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Adult Fare</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Child Fare</font></b></td>
</tr>
<%
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getDestination()%></td>
<td width= "10%"><%=flt.getArrive()%></td>
<td width= "10%"><%=flt.getFrDate()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getToDate()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
%>
<td width= "10%"><%=tot_A%></td>
<td width= "10%"><%=tot_C%></td>
</tr>
<%
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getFlightDpt()%></td>
<td width= "10%"><%=flt.getFlightArr()%></td>
<td width= "10%"><%=flt.getFlightDptDt()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getFlightArrDt()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
%>
<td width= "10%"><%=totA%></td>
<td width= "10%"><%=totC%></td>
</tr>
<%
%>
</table>
flightsearch$jsp.java
package org.apache.jsp;
import java.util.*;
import com.client.entity.Flight;
import com.client.wsclient.FlightServiceClient;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class flightsearch$jsp extends HttpJspBase {
static {
public flightsearch$jsp( ) {
private static boolean jspxinited = false;
public final void jspxinit() throws org.apache.jasper.runtime.JspException {
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
jspxinit();
jspxinited = true;
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;ISO-8859-1");
pageContext = _jspxFactory.getPageContext(this, request, response,
"ErrorHandler.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/client/flightsearch.jsp";from=(0,59);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(1,43);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(2,58);to=(19,0)]
out.write("\r\n\r\n<H3>Available Flight List</H3>\r\n<br>We have found the following Available flight(s) : </br>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100\">\r\n <tr>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Company</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Number</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Depart From<font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrive</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Adult Fare</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Child Fare</font></b></td>\r\n </tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(19,2);to=(66,0)]
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(66,2);to=(68,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(68,21);to=(68,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(68,42);to=(69,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(69,21);to=(69,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(69,41);to=(70,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(70,21);to=(70,41)]
out.print(flt.getDestination());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(70,43);to=(71,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(71,21);to=(71,36)]
out.print(flt.getArrive());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(71,38);to=(72,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(72,21);to=(72,36)]
out.print(flt.getFrDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(72,38);to=(73,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(73,21);to=(73,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(73,43);to=(74,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(74,21);to=(74,36)]
out.print(flt.getToDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(74,38);to=(75,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(75,21);to=(75,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(75,43);to=(76,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(76,3);to=(87,1)]
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(87,3);to=(88,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(88,21);to=(88,26)]
out.print(tot_A);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(88,28);to=(89,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(89,21);to=(89,26)]
out.print(tot_C);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(89,28);to=(91,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(91,2);to=(100,0)]
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(100,2);to=(102,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(102,21);to=(102,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(102,42);to=(103,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(103,21);to=(103,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(103,41);to=(104,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(104,21);to=(104,39)]
out.print(flt.getFlightDpt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(104,41);to=(105,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(105,21);to=(105,39)]
out.print(flt.getFlightArr());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(105,41);to=(106,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(106,21);to=(106,41)]
out.print(flt.getFlightDptDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(106,43);to=(107,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(107,21);to=(107,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(107,43);to=(108,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(108,21);to=(108,41)]
out.print(flt.getFlightArrDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(108,43);to=(109,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(109,21);to=(109,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(109,43);to=(110,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(110,3);to=(120,1)]
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(120,3);to=(121,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(121,21);to=(121,25)]
out.print(totA);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(121,27);to=(122,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(122,21);to=(122,25)]
out.print(totC);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(122,27);to=(124,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(124,2);to=(126,0)]
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(126,2);to=(127,8)]
out.write("\r\n</table>");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);i am very glad and appreciate for your help, but i would like to know how to get the value of a radio button.
like in another JSP file i have :
<input type="radio" name="type" value="Return" checked>
Return
<input type="radio" name="type" value="OneWay">
One Way
and when i try to get the value which is checked, i put
String type = request.getParameter(type.checked);
but this doesn't work,
i would be very appreciate for your help. Thank you -
Hi,
How do I insert a new JSP file (yet to be programmed / designed) into PORTAL-INF/jsp folder in an new EP project. I do not find any options to it. Kindly help me with steps.
Cheers!!
Sukanta RudraHi There !
Right Click the PORTAL-INF/jsp Folder.
Select New -
Other.
A Dialog Box Appers.
in that Select Simple--File.
Click Next.
Enter the File Name e.g Test.jsp.
Click Finish.
Thats it.
Cheers !
Regards,
Rajendra -
Exception while opening a JSP file
HI,
I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
I have deployed the JSP created above to the Oracle Application Server
but when i try to open the JSP file it gives the following error:
500 Internal Server Error
javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
can anybody help regarding this
this is of high priority to me
thanks and regards
Subhajitbump
-
Is it possible to get control of the .SWF files in JSP files
Hi All
In my web application, I got 4 swf buttons which are created by flash and they are embedded in the jsp's. Each button perform the navigation to other page.
this is the jsp file.
<table width="100%" border="0">
<tr>
<td width="2%" height="26"> </td>
<td width="31%"> <object classid="clsid:...." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="BASE" value=".">
<param name="BGCOLOR" value="">
<param name="movie" value="button1.swf">
<param name="quality" value="high">
<embed src="button1.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
</object> <font size="-1" face="Arial, Helvetica, sans-serif"> </font></td>
<td width="67%" class="sitemapgy">*Add* </td>
</tr>
<tr>
<td height="26"> </td>
<td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="BASE" value=".">
<param name="BGCOLOR" value="">
<param name="movie" value="button2.swf">
<param name="quality" value="high">
<embed src="button2.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
</object> </td>
<td class="sitemapgy">*Edit* ;</td>
</tr>
<tr>
<td height="26"> </td>
<td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="movie" value="button13.swf">
<param name="quality" value="high">
<param name="base" value=".">
<embed src="button7.swf" base="." quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
</object></td>
<td class="sitemapgy">*Create*</td>
</tr>
<tr>
<td height="26"> </td>
<td><object classid="clsid:.." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="BGCOLOR" value="">
<param name="movie" value="main_print.swf">
<param name="quality" value="high">
<param name="base" value=".">
<embed src="main_print.swf" base="." quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
</object></td>
<td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*Print*</font></td>
</tr>
<tr>
<td height="26"> </td>
<td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" >
<param name="BGCOLOR" value="">
<param name="BASE" value=".">
<param name="movie" value="button3.swf">
<param name="quality" value="high">
<embed src="button3.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
</object></td>
<td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*_Admin_*</font></td>
</tr>
<tr>
<td height="24"> </td>
<td> </td>
<td> </td>
</tr>
</table>When I click the button3.swf (Admin) button....it navigates to other page...Before that I need to get control of swf button and need to perform some login checks.
Is it possible to get control?
ThanksThanks for your responses, I tried in the same way but when ever it looking at the path "/admin/admin_main.jsp",
its navigating to error page if the username is admin too(abcd).
Can you please help me regarding this.
I am sending you my code and web.xml.
<filter>
<filter-name>ExampleFilter</filter-name>
<filter-class>com.pack.db.ExampleFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ExampleFilter</filter-name>
<url-pattern>/admin/admin_main.jsp</url-pattern>
</filter-mapping>
import java.io.*;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.RequestDispatcher;
import javax.servlet.http.*;
public class ExampleFilter implements Filter {
private FilterConfig filterConfig=null;
public void init(FilterConfig config) throws ServletException {
this.filterConfig = config;
public void destroy() {
filterConfig = null;
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
RequestDispatcher rd = null;
String userInfo = "";
String userName="";
if (request instanceof HttpServletRequest) {
userInfo = ((HttpServletRequest) request).getUserPrincipal()
.getName();
String[] pieces = userInfo.split("\\\\"); // Firefox sends DOMAIN\USERNAME as UserPrincipal
userName = pieces[pieces.length -1]; // getting the username for which I need to perform check
if(userName!="abcd"){
System.out.println("userName IN ELSE PART:"+userName);
System.out.println("INVALID USER NAME");
rd = request.getRequestDispatcher("/admin/error.html");// i need to forward the response url to error page if the username is not equal to "abcd"
rd.forward(request, response);
else{
chain.doFilter(request, response); // if username="abcd" I need to navigate to normal pages.
Thanks -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
Import statement in .java files and .jsp files
Guys I have few mysteries about this import statement.
Please correct me if I am wrong.
1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.java uses one of the method of one.java,and without using import statement I am able to compile two.java, and two.class file is created in c:\ClassFolder.I assume that the path of one.class was taken from the CLASSPATH environment variable,hence I there was no need for import statement .........am i right ?
BUT... in My.jsp,which is in C:\JspFolder, if I want to use one.class,then I have to specifically import the class I want to use.That is i have to say
<%@page import="one"%>
and since the classpath is C:\ClassFolder ,it finds one.class in the C:\ClassFolder.(Note that My.class is created in a folder different from c:\ClassFolder )
But I am wondering why was there no need for me to import one.class in two.java.
(Note I am using JDeveloper and Apache server)
Please help.
In this case the pSo I am wondering in JSP why it doesn't take the class I am looking for from the classpath .
Help.You have to understand Java scoping rules. In the 1st scenario with the two Java files I am guessing neither one of them begins with a package statement. This means that they belong to the default package. When you compile the compiler uses the classpath to resolve method calls looking in the default package since there was no import statement specified in two.java. JSP is a little different. Now I just read this here in these forums a couple of days ago. Since the classfiles generated from the JSP files are not in the CLASSPATH they are loaded by a different classloader. This is why you have to import all references to all classes in the default package.
-
I use Liferay Portal. It has a defined directory structure for all portlets and expects files to be in their proper locations. One of these is that it expects all .jsp files to be in the /webroot/html directory.
The problem is that all references in the struts-config.xml to .jsp files are assumed to be relative to the /html directory. So if, for instance, I set the path as /test/test.jsp then Liferay looks for the file in /html/test/test.jsp. But NitroX requires the full path, including the /html.
I've gotten this to work on another competing product - in that product I set the Web Root to be the /html directory and it works great. That product allows you to set the path of the struts-config.xml separately. Is there any way to do something similar with NitroX? I tried changing the webroot in the .m7project file manually but it doesn't like it. It seems to insist that the struts-config.xml file is in the webroot.
Thanks.NitroX currently supports only a war directory structure. When a project is created, the Web Application Root directory is computed as the directory containing the WEB-INF folder (which should contain the web.xml file).
All web app resources (JSP files, image, css files, etc) are expected to be under the Web Application Root directory (at any nested directory level).
We will enhance this behavior in the future to support arbitrary directory structures.
Maybe you are looking for
-
Looking for help with PowerShell script to delete folders in a Document Library
I'd like to create a PowerShell script to delete old folders in a Document library that are over 30 days old. Has anyone created something like this? Orange County District Attorney
-
IPod app, is it possible to shuffle the songs?
I was just wondering if it is possible to shuffle the songs?
-
Updated to Mavericks, now having Outlook 2011 issues.
Okay this is probably a simple fix, but I can't seem to figure it out. I just updated to OS X Mavericks, now when my display on my MacBook Pro goes to sleep, and I have Outlook 2011 running (I have it set up on a schedule to send/receive emails) I g
-
When will Adobe media encoder 8.0 with wraptor DCP support be availabile
when will Adobe media encoder 8.0 with wraptor DCP support be availabile
-
Load Setup table using Sales Document Ranges
Hi, Is there any way to load the Setup table for Billing using Multiple Sales Document Ranges or Multiple single values. Since the field has no option of Multiple Entries. I don't want to execute multiple setup table with different ranges. I have to