3,454 Topics
I need help on this, im not getting how to go about this... ok, let me explain where im stuck, i have a class, and its structure goes like this(i will show a some kind of replica of original class, so that you guys can easily follow my question), [code=Java] …
i want to show a image using servlet,which is being called by a java file (beans). in that java how will i get the parameter eg: poll-id=1,2 or 3...n from that jsp page?....here what i've done(.java file) but the its not showing the image(error: data not available): [CODE] package myapp.webwork.beans; …
I use the following code to display the user name on the website.. like "Welcome Kaushik" [CODE] <jsp:useBean id="adminUser" class="bss.BSSUserDetailsDo" scope="session"/> <font size="4" color="brown" face="verdana"> <bean:message key="Bss.user.welcome"/> //comes from some property file abcd.property <jsp:getProperty name="adminUser" property="firstName"/> </font> [/CODE] i want to access the user first name from my JS function. …
Please copy this code and run on your editor and see preview, as you can see this when you type user name and press enter, it will [B][U]show text type animate[/U] [/B], these code is under javascripts. Now I would like to change to session variable in php code or …
Hi, hoping someone might be able to help us with this one as we're well & truly stumped... we have a site that uses PHP to authenticate users against a database and allow access if the login details are correct. We then have a script on each page to make …
Hi All, We have a product which is web based and uses sessions for everyone logged in and when they timeout the Session_OnEnd is supposed to fire and delete records from a table which stores some data for the user. The problem is that the Session_OnEnd is not firing and …
[code] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>webmaster</param-name> <param-value>webmaster@myeducationonline.com</param-value> </context-param> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </context-param> <context-param> <param-name>dbURL</param-name> <param-value>jdbc.odbc.clientDB</param-value> </context-param> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> [/code] so this file as to be put in my "workspace" where my projects are ?
I need a simple login script that has the ability to redirect a user. For example: - I want to be able to protect certain pages so that a user has to login to access them (in this case they wouldn't get redirected) - Then in another case I would …
I want to maintain single session for every module I am working on one project ,in that i am using differnt module for(disply item,download item ,and billing) i want to maintain single session when request goes from 1st module to last module Please help me
[B]I've installed Apache2.2.4 & php5.2.3 in my windows xp, evry thing is going perfect but when I want to transfer a session variable to another form its not tranfering.......plz any body help me on this regard. will I have to configer any file....its urgent for me..[/B]
Hi, in my asp.net application i need to redirect the user to a new page when the session is timedout. I am using windows authentication for the web pages. i can not handle that in session_end event. Any help in this regard will be very much helpful. Thanks a lot. …
Hi I have a web Application which uses servlets. As soon as any user Logs i create a folder for the user and the files uploaded by the user are stored in that folder. Now when the users Logs out of the Application I am supposed to delete the folder …
Hey guys. Got a quick question. I am having a problem with a message board that I am creating. I have created the log in and registration page and the sessions needed to use the site nad it all works fine, but when the user posts a message I can't …
How do i create a session time out? i have tried with <session-config> <session-timeout>1</session-timeout> </session-config> in web.xml file but nothing seems to happen after 5 min.. if i do refresh it still works
I was wondering, I might not have this question in the right forum, But how do you disable a program from taking a screen-shot of your website? I'm just asking because I've tried to take screen-shots of some websites and some of them just shut down the program while others …
Can anyone help me fix X11 Xauth authentication? I get the error message "X11 connection rejected because of wrong authentication". It occurs when I switch from root user to any other non-root account. # ssh -X {hostname} {hostname}# xclock (works) {hostname}# su - user {hostname}$ xclock X11 connection rejected because …
I have a list of users(signed for a newsletter).I'm retrieving the list from a database when the admin clicks on a button. [B]There are maximum 10 users diplayed per page[/B].For example,if I had 30 users in the database,I would have 3 pages of users(Page 1,2,3); [B]For each listed user ,I …
I'm developing a small, web-based poetry sharing website. I'm a beginner in PHP and MySQL. I want users to have a personalized page where they can work on their work in progress, once they feel they can publish it for the other users to view. I've already created a login …
Hello... I have a quiz application based on PHP. I use paging, which is showing only one question per page. I want to set a time limitation on the application. The problem is that when i do refresh the page then javascript countdown timer start from starting. What i want …
what is the difference between session and application scope at jsp. where we use session, application, page. can anybody give examples codes for this.
when i press f10 on my pc when it is booting up it displays the following: [I]Stop c000021a {Fatal System Error} The session Manager Initialization process terminated unexpectedly with status of 0xc000003a (0x00000000 0x00000000) The system has been shutdown[/I] does anyone know how i can resolve this problem thanks to …
//This example shows that how to store and retrieve data from cookies. // http://www.hanusoftware.com private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if(!IsPostBack) { if(Request.Cookies["UserCook"] != null) { chkRemember.Checked = true; HttpCookie cook = Request.Cookies["UserCook"]; txtUserName.Text = cook["UserName"].ToString(); } } } private …
Can anyone help me with this problem. I am converting a VB program to Delphi. The program accesses a DLL to get a session handle. It is necessary to pass a password, which I have, made up of Hex Bytes. The problem is with Delphi Char($C) returns '#$C'. In VB …
can we have more than 2 arguments in send query statement . for eg: Cli::send(@session, "reload,yes", "")
Hi I have a problem with a site I am doing. I am writing an email address as a session variable and on my dev machine (windows XP running EasyPHP) I am having no problems calling up user information based on this. BUT when I put it on the live …
I have IIS setup on a Windows 2003 server configured with PHP. There's a section of the website that requires a login, and I have it setup to integrate the login with a Windows account on the server. What I would like is to create a home directory for each …
Hi , IF Client disabled the cookies..my question is .. Will session works in PHP..and if yes how it will work ? and if no what other method to maintain the state of the user. Thnaks in advance, mangesh.
[B]index.php[/B] [CODE] <?php /*header*/ header("Content-Type: image/png"); /*We'll set this variable later.*/ $new_string; /*register the session variable. */ session_register('new_string'); /*You will need these two lines below.*/ echo "<html><head><title>Verification</title></head>"; echo "<body>"; /* set up image, the first number is the width and the second is the height*/ $im = imageCreate(200, 40); /*creates …
SignIn.html -------------- <HTML><HEAD> <TITLE>Log In To Your Account</TITLE> </HEAD> <BODY> <H2><Bold>Log In To You Account</Bold></H2> <p>To log in, type in your USERNAME and PASSWORD. <br>Then click on the Submit button.</p> <FORM ACTION="Sign.jsp" METHOD="POST"> <br>USERNAME: <INPUT TYPE=TEXT NAME ="UserName"> <br>PASSWORD: <INPUT TYPE=TEXT NAME ="Passwrd"> <br> <INPUT TYPE=Submit VALUE ="Submit"> </FORM> </BODY></HTML> …
I am new on PHP proramming. I want to use mail() function to send mail. In my Pc there is no mail server. I have confiure my php.ini file that is - SMTP = localhost, smtp_port = 25, sendmail_from = null, sendmail_path = null. But I can not send mail. …
Hello I want to pass the database retrieved username after user logs on & hence to check login correctness I am using php & jsp [code=php] <?php $conn= mysql_connect("localhost", "root", ""); if(!$conn){ exit("Error in SQL"); } mysql_select_db("college", $conn); $val1=$_REQUEST['login1']; $val2=$_REQUEST['password1']; $sql = "SELECT * FROM tlogin WHERE tid='$val1' AND tpasswd='$val2'"; …
i used visual studio 2003 ,i am newbie i Created a simple database access and link it below ,i want to use dataset and oledbapdater compare the input from textbox with username and password colums in file .mdb . [url]http://mkptrans-nt.com/BaiTapTn.mdb[/url] [B]interface drag drop [/B] [B][U]Login page :[/U][/B] [url]http://mkptrans-nt.com/pic1.JPG[/url] [B][U]Viewmark page …
I am writing a web based application using JSP and JDBC. In side a servlet I execute some code like this [code] DAO.addComments( commentsBean ); commentsList = DAO.getComments(); session.setAttribute( "comments", commentsList ); response.sendRedirect( "comments.jsp" ); [/code] when I move to comments.jsp I find all the comments except those that have …
hey guys my question is ....... can the session be used to send data from an asp page to a php and vice-versa ??????????? anyone have an idea about that. thnx anyway
Hi, I want to tehe auto completion of the text box from previous entered value by the user. Will this be possible by storing the values in the client browser. Thanks Ram
Hi what purpose of HttpSessionContext? all the session information are stored this place. Thanks inadvance arun
Hi In any project we can set values to the session.and get value from the session. which place or path the session information to be stored. Thanks in advance
Hi All: I needed to passed an integer value from the following code: <%=ic.getTotalNumOfRecords()%> to an attribute of a custom tag <inquiry:tableClaimHistory numberOfRecords="5" dataAction="claimHistoryViewData.do" emptyKey="error.noData"/> The function getTotalNumOfRecords returns an int. The attribute numberOfRecords expects an string. Here are the different ways I tried in a jsp page but I …
Hii EveryOne, I am using crystal enterprise 10 for reporting in my project which is a web application in j2ee. I have many queries regarding Crystal Reports. 1.when i request for a report and if that report is suppose to show huge data say about 50,000 thousand records it starts …
Hiya.. I have a jsp page to upload some files.. The session is used to store a Map ( session.setAttribute("filemap", filemap ) ). This map contains all the files to be uploaded. I have a file-input type, onChange the file here is added to the map. The map is stored …
Hello everyone! I have a problem having loops in Php. The process is, it will take all the records in the database table through looping based on the date specified. For example the billing period is from February 01, 2007 to February 28, 2007. It will take all the records …
Hello there, I've got some information which is stored in a class object, these objcts are transfered to an action in the format of a set. I'm trying to put the set into a bean into my JSP, however im not having much luck. The error is as follows: [quote]org.apache.jasper.JasperException: …
Hello everybody, I need a code shows who is online...Explain??,OK: I wrote a chat program & I need to know who is logged on... Example: In this web-site you can see If I am logged on because If I'm logged on the picture beside me will be green... how to …
I am trying to store the value in a variable and after referesh the page the old variable remain same is it possible like :I have stored 1,2,3,4,5 in a option box.and max % is selected by default I want if i select 3 and then referesh the page then …
Can someone please advise me. I have a program which is who interface is JSP. It is running Java in the background. I have a timeout session which works. The problem starts when you log back in. Some of the files are set up with authorized access when created, howver …
hi there, i have posted my code...please am seeking help, syntax wise Here's my code , please i do need help myda = [COLOR=green]New[/COLOR] SqlDataAdapter("Select Distinct COUNTRY from FO_TestingLines_TBL order by COUNTRY", ConfigurationSettings.AppSettings("myconnection")) ds = [COLOR=green]New[/COLOR] DataSet() myda.Fill(ds, "AllTables") OPERATOR.Visible = [COLOR=green]True [/COLOR]COUNTRY.DataSource = ds.Tables(0) COUNTRY.DataTextField = ds.Tables(0).Columns("COUNTRY").ColumnName.ToString() COUNTRY.DataValueField = …
Hi there, I have a class that returns a value based on a calculation with in the class 2 of the variables are called from a database, which is working however when I try to output the result on a jsp page ie. calling the property 'rating' I am told …
Good morning, I have created a registration page with a few little things built in to eliminate duplicate users. I am getting the follow error after clicking the register button: cannot find 'file://C:/CTGR/_access/%3C%=MM_editAction%%3E'. Make sure the path or Internet address is correct. Ideas on how to get this error to …
:cool: [B][COLOR=blue]I have this c000021a {Fatal system error}The Session Manager Execute Initial command system process terminated unexpectedly with a status of 0xc0000034(0x00000000 0x00000000). The system has been shutdown.[/COLOR][/B] [B][COLOR=#0000ff]They are not kidding they did a good job. All week I am trying to get in. I am tired now and …
Hi all, I'm currently building a login page for a JSP application, I've realised that im going to need to use sessions to recall the username on the login screen for other functionality. Unfortunately i'm very new to the whole web development approach and i've tried searching for guides on …
The End.