JSP

JavaServer Pages (JSP) allow the development of dynamically generated web pages. It uses the Java programming language; JSP pages are translated into servlets at runtime, with each servlet being cached and reused until the JSP is modified. JSP allows Java code to be interleaved with static web markup content, so the resulting page can be compiled and executed on the server to deliver the content.

Share tech news, updates, or what's on your mind.

Sign up to Post

I'd like to create a web page (using jsp) with a touch-screen table that can accept graphical input, like a signature or doodle. I'm cluless as to what's needed or where to start. Advice?
0
Hire Technology Freelancers with Gigs
LVL 12
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Are these same in Drools  ?

code -1 :

when
    $city : City()  
   
then
    //Do something
end

Open in new window



code -2 :

when
    city : City()  
   
then
    //Do something
end

Open in new window


Note ..they are differed by "$" only.

I have seen two such versions  in Drool like above............sometimes  we use  "$"  and sometimes  without "$"  . Do they mean same thing  ?
0
I have  a  jsp based application  and I want to deploy under  Apache server . How to configure  to access that jsp  application ?
0
I have a function, referenced by numerous other programs, whose parameters are not able to be changed:

static void reportDetail(Statement stmt, BufferedWriter outFile, String detailColumn) throws Exception

However, the body of the function is defined locally in any given program. What I need to do in one particular program is reference a string defined in the main program, e.g.:

String localVar = globalVar;

where globalVar is defined outside the scope of reportDetail().

Is there a way to do this? (this is jsp BTW)
0
I am struggling with a problem on JSF Primefaces 6.0 where in I have main page which has the list of addresses and main save button. The list of addresses in displayed in data table and the user can click on the edit button to edit any row of the data table. The edit button opens a dialog popup where user can change the address attributes and the click on "OK" button which should updated the list grid data as well as updated the address object in the listgrid of the main bean.
Currently I am facing the problem where my changes in the address popup are not visible in the backing bean method.


Sample code :-

<main:form>
      <addresslistTable> bean:addressList
            <addressline1> value="variable.addressline1" onclick--> bean.getAddressById(variable.id)
      </addresslistTable>
</main:form>

<addressDialog:form>
      <addressline1> value="bean.otherAddress.addressline1"  --> user can change this value
      <p:commandButton value="#{msg.common_save}" process="@this" action="#{bean.submit}" update=":main:addresslistTable" oncomplete="PF('addressDialog').hide()"/>
</addressDialog:form>




class bean {
Address otherAddress;


public getAddressById(addressId){
      otherAddress = getAddressFromDatabaseById(addressId);
}


public void submit(){
// here I am accesing the otherAddress.addressLine1 which is still showing be the old value

}

}
samplecode.txt
0
I have hyperlink in a jsp page that calls a javascript (<a href="javascript:somefunction()" > Save </a> )

someFunction() is in same jsp, but the function body contains methods from another.js file.

In Mozilla ESR onblur and onclick event is executing simultaneously.

But, in Chrome and IE it is working fine.

Can someone please help on this ?
0
how to check domain name availability in javascript using jsp
0
Hi Team,

Im using jqgrid table in a jsp page. the data is displaying correctly. but the  entire table was not displayed according to the page. it was not expanded.I verified with Developer tools in chrome. I came to know that the table width is set to 1px. If i uncheck this, the table is displaying correctly. The how to overcome this width:1px?
0
i works on an user registration process that involves sending automatic email with random URL for verification of user entered email address using java.
0
HI Team,

I'm displaying  some database data of 5 columns(no,name,desg,sal,url) using JqGrid table in jsp.  I have added one submit button to each grid row. The data is displaying and the button is also added.I have written a js function(redirect(url)) . Now i want to invoke the js function by passing  'url'  column value as a parameter . How can i proceed?? Please help me
0
2018 Annual Membership Survey
LVL 12
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

I have an old Java web application that still uses Applets (not my decision).

After a recent Java upgrade (I believe it was 1.7 to 1.8) the app now throws a ClassNotFoundException and says that it can't find the JApplet class the Applet derives from before the Applet can load.

The path to the class is specified in a jsp page called loadApplet.jsp.

Here is the code in the loadApplet.jsp file. The only part that isn't an exact copy and paste is ThePathToTheJAppletClassWhichItAlwaysFoundBefore.class - which is just a string that defines where the package is.

<OBJECT classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase = "https://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0" height = "0" width = "0">
<PARAM NAME = "CODE"          VALUE = "ThePathToTheJAppletClassWhichItAlwaysFoundBefore.class" >
<PARAM NAME = "type"          VALUE = "application/x-java-applet;jpi-version=1.3.1" >
<PARAM NAME = "scriptable"    VALUE = "false" >
0
Dear Expert, I am facing the problem of inserting multiple checkbox values (retrieve from the database) then insert it into the child table. I getting an error.

TABLE SUBJECT THAT I ALREADY SET THEIR OWN ID (FIXED ID) (PARENT)
--------------------------
SUBJECTID                SUBJECTNAME
----------------            ------------------------------
PT3_ENGLISH            ENGLISH
PT3_BM                      BAHASA
PT3_SC                       SCIENCE
PT3_MATH                 MATHEMATICS

STUDENT TABLE SHOULD LOOK LIKE THIS. (CHILD)

STUDENTID                CATEGORY             SUBJECTID
----------------               -------------------         ----------------------------          
201734                        PT3                         PT3_ENGLISH            
                                                                     PT3_BM                      
                                                                     PT3_SC                      
                                                                     PT3_MATH

The scenario is when the student chooses service category. eg: PT3 . So that the student can choose multiple checkbox subjects.eg: english, math, sc, Bahasa.
The question: How can I do the multiple insert checkbox values into table in database.

here I am attaching my jsp registration.jsp



										 <div class="one_third first">Service Type:
										<select name="type" id="type" required>
												

Open in new window

0
how to export jsp content, (which will have html div and pie charts) to pdf/excel/csv..
any solution?
0
I want to develop charts in my project using jsp.
please suggest any open source which should have options to export to different formates.
0
I am trying to create a dependent dropdown list. Right now in the masterDataQueryScreen.jsp, I am directly calling a method in in my MasterDataDao class called getAllSites. What I would like to do is create a dependent drop down list. So basically, if the division in the jsp has a value of either 33, 36, or 40 call the method getAllJJSites  in the MasterDataDao class to populate the second dropdown else call getAllSites. The getAllJJSites is on line number 642 in the MasterDataDao class. I have also included jquery-1.11.1.js under the js folder under WebContent. I am assuming I will need to use jquery. Please let me know what else is needed. Thank you so much in advance. I have been stuck on this issue for at least a month now and cannot find a great example using a query.
0
i have to represent no of device for each status(new,paired,blocked..etc) in the charts.
i want use  jquery and bootstrap with out using CanvasJS
please provide example of donut charts
0
I would like to see how to create a dependent dropdown list within my existing JSP page.
Basically, if I choose one value in the first dropdown list I would like to populate the second dropdown list with results from one query
else
I would like to populate the second dropdown list with results from another query.
I've heard jquery can do this but I have not found any examples related to query list results.
0
what kind of precautions we have to take while developing web application(JSP) to avoid/handle cross site scripting attacks.
we plan to use spring mvc framework as technology.
0
i want to implement report(charts) with JSP.. Inventory reports...SIM order reports.. should be exported to pdf and excel formate
i need some example charts for my reference.
please provide some references.
0
[Webinar] Kill tickets & tabs using PowerShell
LVL 12
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

we have web portal, using Spring MVC.
we need to  Sending rest request to server from popup page(which as parent page)
we want to show messages to user about request status(sent successfully or not).. i need to achieve this with our refreshing page.

how can i achieve this.
0
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%

Connection con = null;
Statement stmt = null;
ResultSet rs = null;


%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
function lobChange(lob,chan){
	var lobvalue=document.getElementById(lob).value;
	alert(lobvalue);
	
}
</script>
</head>
<body>


<%
try{
	Class.forName("com.mysql.jdbc.Driver");
	con = DriverManager.getConnection(
			"jdbc:mysql://localhost:3306/usoutlookdb2017", "whirlpool",
			"whirlpool");
	stmt = con.createStatement();
	String sql = "SELECT distinct lob  FROM lob_sls_chan_mdata ";
	rs = stmt.executeQuery(sql);
}
catch(Exception e)
{
	e.printStackTrace();
}
%>
 
<label>LOB</label>
<select id="lob" name="lob" onchange="lobChange(this.id,'chan')">
<option>SELECT LOb</option>
	<%
		while (rs.next()) {
	%>
	<option><%=rs.getString(1)%></option>
	<%
		}
		
	%>
</select>


<br>
<label>CHANNEL</label> 
<select id="chan" name="chan"></select>


</body>
</html>

Open in new window

0
public ModelAndView EditDetails(Http Request req,Http Response res,SampleDTO sampleDTO)
{
ModelAndView mvc=new ModelAndView();
String n=req.getParameter("name");
List<String>details=//some list values;
mvc.addObject("details",details);
mvc.setviewname("ll.jsp");
return mvc;
}
 

in jsp , can u say how to use spring bind and set to dto and use it in controller
0
Query is

select to_char(to_date(123,'j'),'jsp')from dual;

Please tell me what is JSP and how it works
and why use date function
0
<display:column url="/editFixedRonuAction.do" paramId="id"
                                                      media="html" paramProperty="ronuAreaCode" headerClass="listMenu"
                                                      titleKey="label.rnumberEdit">
                                                      <bean:message key="button.edit" />
                                                </display:column>

in above code,I want to pass ronuId and ronuAreaCode both variable to action class.

Please suggest solution
0
hidden field while scaning through hp fortiify
0

JSP

JavaServer Pages (JSP) allow the development of dynamically generated web pages. It uses the Java programming language; JSP pages are translated into servlets at runtime, with each servlet being cached and reused until the JSP is modified. JSP allows Java code to be interleaved with static web markup content, so the resulting page can be compiled and executed on the server to deliver the content.

Top Experts In
JSP
<
Monthly
>