Project in jsp
I am doing a Online Shopee project.I want to make a project in Jsp.So Please give me a step by step guidline how can i make a project.
That depends on what tool you're goin to use to develop your project. If you use IBM Websphere/RAD, lot of things are easy when developing. If you use Tomcat, you would need to lot of steps manually. First decide the tool then think about writing code.
Similar Messages
-
IDE subfolder issue with large projects - flat JSP file lists
Currently some IDE ui components such as ApplicationOutline and Property Binding Dialog box do not show subfolder structure hierarchically. Thus for a 100-page projects ApplicationOutline is almost impossible to use.
Please consider adding a level of hierarchy where top nodes are subfolders (packages). Right now all the pages are listed in a flat level regardless of a subfolder they belong to. The same problem is with Property binding dialog (if there are other places please make sure you fix them along)Hi
Thanks for the suggestions. We will file an RFE for this.
Thanks
Srinivas -
A customer login's to my website using Enterprise login. I am supposed to have a link on my website to this other website(that also uses our Enterprise login details but hosted by other vendor/company on their server), and when I click this link the customes should automatically get logged in to this other website and get a welcome page(instead of login page).
Below are the sequence of steps that the other website wants me to perform to get to his welcome page(i.e bypass his login page).
FYI, I am planning to build a jsp page with a link to this other website. Can some body tell me how should I build the application(i.e) how jsp and servlets be build to interact to perform these operations. Any hep is greatly appreciated.
1.When a user clicks on to other website link(available on my website), the browser generates an HTTP GET request to the Other website's session servlet. User's name is one of the parameters of this request.
2.Other website receives the HTTP request and generates a unique session identifier for this user. An HTTP response to the end-user is then sent. The user's name and the session identifier are passed back as parameters in the redirect URL.
3.The browser sends the HTTP request (GET) to the Verification Service that was specified in the redirect message. The parameters (user name and/or session id) will be passed as URL parameters.
4.The Verification Service(of other website) authenticates the user. A redirect URL to it's sigon servlet(with parameter's User id and key) is then sent back to the user's browser.
5.The end-user's browser will perform the redirect (performing an HTTP get operation to Other website's signon servlet with the username and the digest key).
6.The other website will check if the parameter's passed is the same as the one passed earlier, if the user is who he says he is then he is redirected to the main page of the application.
7.The browser will then redirect the user to Other website's main page (welcome.jsp).
There seems's to be many calls to this other website that needs to be performed behind the scenes once a user clicks the link on my website.
Please suggest and help me out.........
Edited by: 836726 on Feb 21, 2011 3:41 PMWhy are you trying to build a whole federated single sign on framework from scratch when you can just use/buy an existing and proven solution instead? There are a lot of security implication and trust issues involved for this so unless you already understand all of those I'd advise you not to re-invent the wheel. There are a lot of products available that do this. Try searching for '<vendor name> Access Manager' or OpenSSO.
-
How to restrict decimal values in Project Management JSP pages
Hi,
By default, the values of effort % complete, % complete, Earned Value etc show 8 digits after decimal in Progress Update Overview page.
We want to round off these values to two digits.
How can this be achieved? Please suggest.Hi 977941,
Please set the following properties for a field and check for decimal point
Action Type : firePartialAction
Event : validateInteger
Create a controller and add the following in Process From Request :
if ("*validateInteger*".equals(pageContext.getParameter(EVENT_PARAM))) // identifier should be same as what you have set .
get the value here and check if the decimal exist and throw exception message .
Thanks
Sandeep -
Getting import error in jsp in creating war project of masthead for portal 7.31
Hi,
I am getting error in customize masthead war project in jsp for import statement.
<%@ page import="com.sapportals.htmlb.*"%>
<%@ page import="com.sapportals.htmlb.hovermenu.*"%>
<%@ page import="com.sap.security.api.UMFactory"%>
<%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
<%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
I have asked basis team for jar relative to these but they have not found in system.
We are using portal 7.31 version.
Kindly help me to remove this error from jsp.
Thanks in advance.Hi Hemendra,
At first i have done this and after that even i was facing error that's why i created this thread.
Kindly check my first post for error.
Getting import error in jsp in creating war project of masthead for portal 7.31
This question is Not Answered.(Mark as assumed answered)
Swati Joshi Apr 29, 2015 12:34 PM
Hi,
I am getting error in customize masthead war project in jsp for import statement.
<%@ page import="com.sapportals.htmlb.*"%>
<%@ page import="com.sapportals.htmlb.hovermenu.*"%>
<%@ page import="com.sap.security.api.UMFactory"%>
<%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
<%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
I have asked basis team for jar relative to these but they have not found in system.
We are using portal 7.31 version.
Kindly help me to remove this error from jsp.
Thanks in advance. -
Need help in using SQL in a jsp file to compare date and time
hi every one,
Actually I am doing a project using JSP. I need to compare a date field in the database (MS Acess) to the current system date and time. I have to do this in a select statement.
I have alredy defined a variable of type Date in the JSP file and I am comparing this variable to the date in the database through a select statemant.
Here is what I am doing
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
java.util.Date today = new java.util.Date();
String myDate=sdf.format(today);
query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= "+myDate+" ;";
EDate is the feild in the database and it's format is (5/12/2008 5:29:47 PM) it is of type Date/Time in MS Acess.
when I execute the query it gives the following error
SQL error:java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'EDate <= 2008-10-16 08:10:07'.
I hope any one can help me with that error and answer my question, I've tried too many things but nothing helps
Thanks in advance :-)Hi,
When the comparision is needed to be done with the current date , we don't need to send in Java
Date then format it and compare with MS Acess Date.
In MS Access we have Date() function which will give you the current date.
So you can try rewriting your query as following :
query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= Date() ;"; ---------------------
Hope this helps.
Thanks -
Jsp and Jspx generates error when attempting to open for edit.
This occurred trying to open index.jsp.(Happens trying to .jsp or .jspx files)
Heres what the "Details>>" button showed
java.lang.NullPointerException
at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:360)
at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:351)
at oracle.jdevimpl.webapp.model.content.DocumentInfoManager.getDocumentInfo(DocumentInfoManager.java:176)
at oracle.jdevimpl.webapp.editor.html.HtmlEditor.getDocumentInfo(HtmlEditor.java:592)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1197)
at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1131)
at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
at oracle.ideimpl.editor.EditorManagerImpl.handleEvent(EditorManagerImpl.java:1944)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
If it helps, I also get message when I Selected Project Properties -> JSP Tag Libraries
java.lang.ArrayIndexOutOfBoundsException: 2835
at oracle.ide.net.JarIndex.buildIndex(JarIndex.java:538)
at oracle.ide.net.JarUtil.getJarIndex(JarUtil.java:270)
at oracle.ide.net.JarURLFileSystemHelper.tryGetJarIndex(JarURLFileSystemHelper.java:425)
at oracle.ide.net.JarURLFileSystemHelper.exists(JarURLFileSystemHelper.java:125)
at oracle.ide.net.URLFileSystem.exists(URLFileSystem.java:498)
at oracle.jdevimpl.webapp.jsp.libraries.TldUtils.findLibraries(TldUtils.java:607)
at oracle.jdevimpl.webapp.jsp.libraries.TldUtils.findLibraries(TldUtils.java:549)
at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.updateDistributedLibraries(LocalJspLibraryManager.java:1231)
at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.scan(LocalJspLibraryManager.java:1199)
at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.scan(LocalJspLibraryManager.java:1180)
at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.init(LocalJspLibraryManager.java:350)
at oracle.jdevimpl.webapp.jsp.libraries.LocalJspLibraryManager.getManager(LocalJspLibraryManager.java:91)
at oracle.jdevimpl.webapp.jsp.libraries.wizards.TagLibrariesPanel.onProjectPanelEntry(TagLibrariesPanel.java:250)
at oracle.ide.model.panels.ProjectSettingsTraversablePanel.onEntry(ProjectSettingsTraversablePanel.java:87)
at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:223)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:89)
at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:80)
at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProjectStructureController.java:111)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Is this fixable?I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?
-
Is there any way to create discussion board using JSP
Hi! i'm doing a project using jsp is there any way to create a simple discussion board like the one here? can anyone who knows pls forward some links that teaches me how to do it step by step. Thanks for your help and have a nice day :)
From the UK! -- PC Plus, August 2000 Issue:
How to build a JSP Message Board
http://www.pcplus.co.uk/media/pcplus/pdf/166/pcplus.166.progworld.java.pdf
You'll get a nice 2-page pdf file, taken directly from the magazine
--Dave -
How to print report from JSP Page
Hi Everybody,
I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
Could anyone help me to solve this problem.Hi Everybody,
I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
Could anyone help me to solve this problem. -
Dear members
I am looking for a developer who can help me (rebuild) and
administrative back-end based on an existing MS SQL database in
either PHP or ASP classic.
I am pretty much a novice, more a designer than a programmer
but know my way around DW and some ASP code, I am new to PHP. I do
have experience with building databases, not much however with
building databases for e-commerce purposes.
I purchased WebAssist E-Commerce Suite if someone knows what
it is and work with DW MX 2004 on a Windows XP Professional SP2 m
achine.
I am not asking for free help but help me get the job done.
There is a time frame and the money I can spent on help is not
unlimited.
Pref. someone in Europe who I can keep in contact with via
MSN Messenger and/or Skype.
I can build myself the insert, update and delete pages on
various tables.
However certain things are unclear to me wether they are
absolutely a nescessity or can be done without.
Please if you have the time and not looking for a fast buck..
contact me.
Yours sincerely
AnthonyHi,
I did a project on jsp and EJB called Dataminig implemented in Online shopping. Dataminig is an upcomming technology for Customer Relationship management. You can also do some kinda project like online patient monitering. In this project you can even see how to communicate through COM port. -
I have to do a project in my final year Computer Engineering. Can someone give me any ideas about project(to be done in Java)? If anyone can help me with any idea, please do so. Thank You!!
Hi,
I did a project on jsp and EJB called Dataminig implemented in Online shopping. Dataminig is an upcomming technology for Customer Relationship management. You can also do some kinda project like online patient monitering. In this project you can even see how to communicate through COM port. -
An error in jsp page useBean when i try to include the java bean package?
Hi Sir,
I am using import com.project.ShowData in java beans inorder to connect to the jsp.
The jsp code goes like this:-
<%@ page import="com.project.ShowData" %>
<jsp:useBean id="jspuser1" class="com.viman.ShowData" scope="session"/>
<jsp:setProperty name="jspuser1" property="*"/>
Here the error is showing as cannot resolve symbols in com.project.ShowData.But i have given the same in java beans like this:-
Package com.project;
//import of package goes here
public class ShowData
//code goes here
It seems that all are correct here.I have done few programs using this without any problem.But suddenly it is giving a problem like this.What is the problem here?It is quite Urgent.Thank u.
Regards,
m.ananthuGreetings,
Here the error is showing as cannot resolve symbols in com.project.ShowData.But i have given the
same in java beans like this:-Seeing the actual error would be more helpful. ;)
Regards,
m.ananthu Regards,
Tony "Vee Schade" Cook -
Error in updating and displaying ouput in JSP
Hi im doing project using jsp files.In part of my project there is vote page and vote result page.
my vote_page.jsp
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.sql.Date" %>
<%@ page language = "java" %>
<%! int ctr=0;%>
<%! String[] songs=new String[10];%>
<%
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect;
connect=DriverManager.getConnection("jdbc:odbc:RegisterDataSource");
Statement state;
state = connect.createStatement();
String strQuery1 = "SELECT title FROM ItemEJBTable";
String str;
ResultSet result1 = state.executeQuery(strQuery1);
while(result1.next())
songs[ctr]=result1.getString("title");
ctr++;
connect.close();
catch(Exception e)
%>
<form method="GET" action="http://localhost:8000/Music/Vote_result_page.jsp">
<p align="center">
<font><b><u>Vote for your favorite song</u></b></font></p>
<font><b> Songs</b></font>
<font> </font>
<select size="1" name="Song1">
<%
for(ctr=0;ctr<songs.length;ctr++){
%>
<option>
<% out.println(songs[ctr]);}%>
</option>
</select></td>
</tr>
</table>
<input type="submit" value="Vote" name="submit">and my vote_result_page.jsp
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.text.*" %>
<%@ page language = "java" %>
<%! int voteNum=0; %>
<%! String selSong=new String();
%>
<% selSong=request.getParameter("Song1");
out.println(selSong);
String selSong1 = selSong.trim().toString();
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect;
connect=DriverManager.getConnection("jdbc:odbc:RegisterDataSource");
Statement state,state2;
ResultSet result1;
state = connect.createStatement();
state2 = connect.createStatement();
String strQuery1 = "update Vote_Info set Number_votes=Number_votes+1
where itemCode=(select itemCode from ItemEJBTable where title='"+selSong+"')";
state.executeUpdate(strQuery1);
String strQuery2="select Number_votes from Vote_Info where itemCode =
(select itemCode from ItemEJBTable where title='"+selSong1+"')";
result1=state2.executeQuery(strQuery2);
while(result1.next())
voteNum=result1.getInt("NumberVotes");
out.println(selSong+" got "+voteNum+" votes");
connect.close();
voteNum=voteNum+1;
catch(Exception e)
%>
<td width="82%" valign="top">
<!--Display the number of people who have voted for the song-->
<p align="left"><font face="Arial" size="3" color="#800000">
<b><u>You voted for the song:</u></b></font>
<p align="left"><font face="Arial" size="3" color="#800000">
<b><%=request.getParameter("Song1")%>
</b></font></p>
<p align="left"><%= voteNum %> <font face="Arial" size="3" color="#800000">
people have voted for this song so far.</font></p>
<input type="submit" value="OK" name="submit">When i select song_no_1 and click on vote button on vote_page.jsp it directs to vote result page and displays that
1 person has voted for this song and this vote is not updating on table. When i go again to vote page and vote on song_no_2 it says that "2 person have voted this song" even if it is not voted before.
I dont no where the problem occurs pls help me for this.sorry for double posting because i didnt got reply from first one so i thought that nobody have looked on that topic that's why i done this.
-
How To Save JSP Page As Excel File.
Dear Friends,
I am working on a project which has oracle as backend. I have some reports in my project.(.jsp files)I want to save it in MsExcel format.
How could i do it?
Also is it possible to save jsp files (the output genrated by jsp) in MS Word,PDF format?
Sameer.If you set the content type and are using IE then the HTML will be rendered in Excel in place. Other browsers open Excel, but not in place.
If you need more info search google for 'java setcontenttype excel':
<% response.setContentType("application/vnd.ms-excel"); %>Also a much easier and flexible way to create html from ResultSets is to use my free FormattedDataSet API. The following one line would replace all the lines you posted (and the ones you didn't such as opening the Connection, Statement and ResultSet).
FormattedDataSet fds=FormattedDataSet.createInstance();
String html=fds.getFormattedDataSet("select * from table", "htmlTable");steve - http://www.fdsapi.com - The easiest most flexible way of generating dynamic HTML and XML.
The following would be replaced.
<table>
<tr> <th>Name</th> <th>Employee No</th></tr>
<tr>
<%
while (rs.next())
%>
<td><%=rs.getString(1) %>
</td>
<td><%=rs.getString(2) %>
</td>
<%
%>
</tr>
</table>
** -
How to configure "JSP SMART UPLOAD" in "j2ee 1.2.1"?
hi there,
i am doing a project in JSP.in that the user can upload files in to the server, for doing the upload thing i have downloaded "JSPSMART UPLOAD" bean . but i dont know how to use it in j2ee 1.2.1, can any one tell me how to configure it in j2ee 1.2.1. please can any one help me.Hi,
Given below are the guideline to use jspsmartupload
1) Copy the jspsmartupload folder(extracted) under the folder webapps of ur servlet container
2) Edit the server.xml under the <conf> folder to add the context path for jspsmartupload by adding the following
<Context path=�/jspsmartupload� docBase=�webapps/jspsmartupload� defaultSessionTimeOut=�30� isWARExpanded=�true� isWARValidated=�false�
isInvokerEnabled=�true� isWorkDirPersistent=�false� />
3) Add in the classpath
<.....>/webapps/jspsmartupload/WEB-INF/classes
And to use it in ur jsp code u have examples provided along with the download u have made. chk with them. Hope this helps.
Peekay.
Maybe you are looking for
-
STMS: Transport control program tp ended with error code 0232
Dear ERP Gurus, I just encountered problem with STMS in my PRD system. The import is just stuck up on "tp connecting to database". It won't continue unitl the system gives me this error message: Transport control program tp ended with error code 0232
-
How to populate a table based on a row selection from another table.
Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario . By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to p
-
My CS4 will not launch. I receive error 148:3. Any fixes?
When I try to launch my Photoshop CS4 (old, I know but I like it), I receive an error message that says I need to restart the computer. I do so and the same thing happens again. It says contact Adobe support. Error is 148:3. Thanks George
-
View attachments in mail program through lightroom
I would like to be able to see all the attachment images in my mail program on my mac. Thanks
-
Setting up replication with client written in C++ and DB master in Java
Hi I am trying to write C++ client that will join replicated environment created by a master written in java. For JAVA, I am using Berkley DB Java 4.0.103 API. So far, I have written Master in java which creates a replicated environment. I also have