Solution for hitcounter in JSP ???

Tell me now! Urgent!!!

Hi javaAplet,
Here I am giving you the simple code example for hitcount. Here you declare a variable count and after that when ever its requesting for particular url , hits ount is increasing.
I hope this will help you out.
Example:
========
<html>
<head><title>Count</title></head>
<body>
<%!
int count = 0;
%>
<h1>This is a counter </h1>
<%
count ++;
%>
<h2> You hit <%= request.getRequestURI() %> page <%= count %> times.</h2>
</body>
</html>
Regards,
Tirumalarao
Developer Technical Support,
Sun Microsystems.

Similar Messages

  • I have a button in JSP page inside an UIWebView by pressing the button i want to run another existing iPhone native application in background only.Do anyone have a solution for this.

    I have a button in JSP page inside an UIWebView by pressing the button i want to run another
    existing iPhone native application in background only.Do anyone have a solution for this.

    Sounds like a virus.... I hope it's not...
    Launching Other Apps within an iPhone

  • What is teh best solution for my Problem??

    hello everyone
    i'am planing to develop a Patient Management System (PMS)
    since i 'm not that guru in the J technologies i would like you to get me some help with this decision:
    what is the best solution for developeing an intranet "PMS" which should handles data (connection to postgresql) and runs some algorithm (for planing puropose) im background ??
    1 developeing a web based solution (servlet and jsp and and ..)
    2 developeing an application wich will be manging everything ??? (a kind of programm with its own GUI)
    3 you may have an other idea solution and ill be gald for any advices
    ps sorry for my english its not that great ;)

    Web applications are all the rage these days and IMO rightly so as they greatly reduce deployment cost and headaches.
    They do have some drawbacks though which for you might be important.
    I can imagine that sooner or later (probably sooner in my experience) a requirement to interface with hardware installed on the client machines will emerge.
    Whether this is a barcode scanner or a chipcard reader to get client information from some form of card issued to the client, or maybe a label printer to print out labels for medication bottles doesn't matter, you need to access the client machine directly.
    Web applications have great difficulty with that (in fact, it's all but impossible).
    You could go for an applet solution but that's contrived at best and still leaves the same problems.
    So in your situation an old-fashioned client/server application (maybe using web services to communicate with the serverside application) is likely the best longterm solution.
    You'd have the database remote so everyone has access to the same data, being accessed through processes run on the server and called by the clients. These can also do most of the business logic, leaving the clients relatively dumb responsible mainly for data validation and entry and presentation of the results.

  • How to search for folders using jsp ( or any other way)?

    Hey All,
    It's my first time writing here and i hope i can get some help ... i have created a payroll system using java and jsp techniques and mysql as the database, i want to create a backup page that will let the use to choose the destination folder for the back up, the backup is basically a mysqldump command that will get the destination folder as an argument and create the sql file there. the problem is i couldn't find anyway to let the user browse his local machine and choose the folder , which in returns return the folder path to be used in mysqldump....
    I know that html have <input type=file> but it's used for selecting file not folder...
    can someone come up with a solution for me coz it's urgent and i have to finish the project by the end of this week.,.
    peace!

    Also you can use an OUTPUT clause ( need to modify your DML operations)
    create table itest ( i int identity not null primary key, j int not null unique )
    create table #new ( i int not null, j int not null)
    insert into itest (j)
    output inserted.i, inserted.j into #new
    select o.object_id from sys.objects as o
    select * from #new
    drop table #new, itest;
    go
    The example below shows code that uses OUTPUT clause in UPDATE and DELETE statements to insert rows into an audit table.
    create table t ( i int not null );
    create table t_audit ( old_i int not null, new_i int null );
    insert into t (i) values( 1 );
    insert into t (i) values( 2 );
    update t
       set i  = i + 1
    output deleted.i, inserted.i into t_audit
     where i = 1;
    delete from t
    output deleted.i, NULL into t_audit
     where i = 2;
    select * from t;
    select * from t_audit;
    drop table t, t_audit;
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Blackberry 9300 solution for mep code (0 left)

    Hi
    Blackberry 9300 solution for mep code (0 left)
    Help me please
    Thanks...

    Hi and Welcome to the Forums!
    With zero tries left, there is only one official solution -- sending your BB to the RIM factory to have it totally reset. Your methods of requesting this service are the same as for all BB service...via your wireless service provider. If they refuse or if you have no warranty (due to a variety of reasons, this can be the case), then you must request this via paid incident support:
    http://us.blackberry.com/support/programs/technical/incident.jsp
    Be advised that, while I have no personal experience with this, it is my opinion that the cost of having this done will exceed the cost of just buying a new BB.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Tamplate solution for MVC

    What is the best template based solution for Java to handle View part of MVC architecture ?

    I think that it is fair to say the Java Server Faces is going to become the standard view component used for most Java Web Applications.
    But I think that the most important thing for Java Server Faces to do first is to align itself with the latest JSP 2.0 specification. This will happen in the soon to be released version.
    I see a great deal of potential for it in the future.
    I am also very interested to hear what other people think about this issue too.
    Damian Sutton

  • Providing DRC solution for ATMs in the enterprise network

    Hi all,
    I am looking for ideas on how to provide a Disaster Recovery solution for thousands of ATMs (Automated Teller Machine) deployed in the bank enterprise network. The solution should consider
    the following facts:-
    1.- Having the ATMs switch the connection to the Server at DRC shouldn't be automatic. This situation might last for the next few years until DRC becomes mirror image of primary data center.
    2.- The ATM servers at the primary and disaster recovery center is single server equipped with high availability (Tandem). I mean to say, there is no SLBs invloved in the connection
    3.- The application running on the ATMs is calling the ATM Server by hardcoded IP address in the application. The bank is willing to visit the ATMs to change once and forever.
    I see source natting as the most appropriate solution, however your opanion and expertise are appreciated.
    Thanks
    Sami

    Sami,
    what kind of solution are you looking for ?
    Is the concern the connection from ATM to central location ?
    Or is it a concern about the server at the central location ?
    For connection issues, I don't see any other solution than providing multiple lines.
    If the concern is the single server, you could have a loadbalancer somewhere in your network.
    The loadbalancer can use probes to check the health of the server.
    If the primary fails, or is unreachable, you can automatically redirect the traffic to the standby.
    ATM machines will point to the virtual ip (you could reuse the current ip and assign a new one to the servers).
    Not sure where to place the loadbalancer without a better idea of the problem to solve and the network.
    Gilles.

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

  • Small Office Network Solution for Final Cut Server - Proxy Storage Etc.

    Hi,
    I haven't been able to find any answers for this question by googling, So I would love if anyone here had some advice. I have the 10 License version of Final Cut Studio with 5 clients at the moment. I would like to set-up our office in the most effective way, however we are a non-profit organization, so we are working with a limited budget.
    My question is, does anyone know of any networking solutions for Proxy Storage and Media storage, that wont bottleneck, but is not as high budget/high tech as using an Xserve/XSan system?
    Right now we would be looking at running Final Cut Server off of our 24inch Intel IMac (Going to beef up the RAM). We have a Gigabit Switch, 4 more intel machines running final Cut pro, and a direct attached Drobo for Media Storage. I know this is not an Ideal set-up, but it's what I have to work with right now. So, I'm looking for any kinds of tips and tricks to make this set-up work for us, and am looking at purchasing either a Network Attached or iscsI storage system for the Proxy Storage.
    I hope this is a decent description of my situation, and would love some advice.
    Thanks Very Much,
    MacNomad

    Hi,
    I haven't been able to find any answers for this question by googling, So I would love if anyone here had some advice. I have the 10 License version of Final Cut Studio with 5 clients at the moment. I would like to set-up our office in the most effective way, however we are a non-profit organization, so we are working with a limited budget.
    My question is, does anyone know of any networking solutions for Proxy Storage and Media storage, that wont bottleneck, but is not as high budget/high tech as using an Xserve/XSan system?
    Right now we would be looking at running Final Cut Server off of our 24inch Intel IMac (Going to beef up the RAM). We have a Gigabit Switch, 4 more intel machines running final Cut pro, and a direct attached Drobo for Media Storage. I know this is not an Ideal set-up, but it's what I have to work with right now. So, I'm looking for any kinds of tips and tricks to make this set-up work for us, and am looking at purchasing either a Network Attached or iscsI storage system for the Proxy Storage.
    I hope this is a decent description of my situation, and would love some advice.
    Thanks Very Much,
    MacNomad

  • HP Solutions for Install Errors for HP Officejet 6500

    I recently purchased a new laptop with Windows 7 operating system. My printer is 2 years old. Windows 7 located and initially installed the printer. It worked fine at first, but after I changed the black ink cartridge, the printer would no longer print in black. Pages come through, sounds like they are printing, but they are blank or with some color (depending on the document). I have downloaded HP's install of this printer's software (took over 3 hours), seemed fine, but now it's back to no black print. I have tried to reinstall (again), but it gets stuck installing the wireless. HP sent Solutions for install, icon. Suggests disconnecting and shutting printer, modem, and computer down, then using printer install CD and reload. I have the CD, but it doesn't work with Windows 7. What to do?

    This article should help resolve your blank pages:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01892627&cc=us&dlc=en&lc=en
    Give the steps listed under your operating system a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Solution for scanning multiple pages from inside the form6i/10g

    Hi All,
    I need to scan multiple pages from Oracle forms (6i/10g) using a scanner which is scanning multiple pages per minute. Can any one post a solution for me.
    Hafeez

    here are the two ways I use to scan images.
    1) if the image is a single TIF image then d2kwutil can upload the image into a BLOB field on the database (but it is limited to only SINGLE-page TIFs).
    2) if the image is a single or multi-page PDF, then your forms client must copy the image to a filesystem location known by the database (where the filesystem location is a directory on the database), and then the database can import the image into a BLOB field within the database.
    either solutions work pretty fast for me (<10 seconds per image)
    Chris

  • Solution for: no audio in time line - conforming issues - unspecified error occurred

    these are all the same issue and i have the solution for it.
    Adobe has once again let down the non professional user but ignoring this bug. They have also deleted alot of my other posts on the adobe forums.. perhaps so you cannot receive help from me?? who freakin knows..
    b Problem:
    you import your footage and there is no audio in the time line. you see the audio clip there but no information in it. some people say its because of MPEG format but MPEG files works fine in Windows Movie Maker, Ulead, Pinnacle, Sony Vegas.. etc...
    let it be known that its an Adobe Premiere issue.
    b Solution:
    b step 1:
    close adobe premiere
    b step 2:
    open My Computer and go to tools at the top. From the drop down menu go to folder options. In folder options click the view tab. In the advanced settings section where it says 'Hidden files and folders' make sure 'show hidden files and folders' is selected.
    b step 3:
    open My computer and go to c:\ drive > Documents and settings. Now click into your user name (NOT 'All users') in my case its 'proGamer'. Now click into 'Application Data' > 'Adobe' > 'common' > 'Media Cache Files'.
    b step 4:
    in this folder find the files you were just trying to import by searching the name. in my case its file: 20081217030338. you will now see 3 different file types with the same file name you were importing: CFA, PEK, MPGINDEX. delete them all!
    b step 5:
    go back and open adobe premiere, open up your project again and it will automatically recreate those files you just deleted. hopefully correctly.
    b NOTE:
    If this hasn't worked then open your adobe premiere project, clear all trace of the files with no audio and start again from step 1. then after step 5 just import the files back into your project.
    This has proved to work with every file i've imported that had the audio not conformed.
    b your second option:
    simply play your clip in WMV or VLC or what ever player you use and record the audio in real time in stereo by using some music editing like cubase or logic audio. you can also use something more friendly like 'recordpad' found here: http://www.nch.com.au/recordpad/screenshots.html now you can buy it from these guys or get it how ever else you like
    lemme know how u go

    dmd,
    I've read plenty of places that they know about the bug and are going to fix it. Will from Adobe said so in a few older posts. It's also listed as an issue in the 4.0.1 readme.
    I agree that this is the most screwed up Adobe release ever but I doubt they're deleting your posts to hide it. Never know though.....
    "Adobe has once again let down the non professional user but ignoring this bug" I actually wish Adobe would forget the consumers and make Premiere Pro more friendly to professionals. Dozens of multimillion dollar movies have been edited with Avid and Final Cut over the past few years. Adobe doesn't put forth any effort make Premiere a pro application. Because they pander to the consumers and prosumers they end up messing up the product for everybody.
    Premiere Elements is for consumers, Premiere Pro should be for the 'Pros'

  • Is there a solution for Higher Ed Computer Labs?

    I am an instructional Technician for the Photography Department at a Community College. We currently purchase and use the Creative Suite 6 Design & Web Premium here in the Photography, Graphics and Journalism departments. We have over 150 Macintosh computers licensed with your product and we are very interested in the Creative Cloud.
    Currently we purchase the licenses for all of our student and faculty computers, we are hoping that you will be developing an education solution for computer labs like ours.
    What we would like to see is an arrangement that would allow our students to subscribe to the Creative Cloud for a three-month period that would be paid for prior to the first day of classes. This would avoid classroom disruptions from students failing to pay if the subscription was on a month-to-month basis.
    While I understand that the current Student and Teacher edition at $19.95 is a limited promotion, a price of $20–$25 per month or $75 for a three-month period would be less than the cost of a textbook and could be easily charged as a class fee.
    A potential problem is that students sometimes do not use the same computer all the time. If students are taking multiple classes in different labs, they need to be able to access the programs on several computers. I am currently subscribed to the free trial month and my impression is that the subscription is dependent on logging in with an Adobe ID. If this is the case, students should be able to use this log in to access the software they need on whatever computer they are at as long as they have an active (paid) login, and are not logged in on another computer.
    As it is everywhere in education, our program budgets are tight. The Creative Cloud would allow us to save a significant amount of funds while still offering the most current technology to our students and faculty. The ability to access any software we need and allowing students the ability to access the programs at school and at home will empower both our faculty and students. Additionally, the availability of cloud storage will allow students to work on files at home and at school seamlessly.
    I am making several assumptions:
    Pricing –
    Student and faculty pricing will be available.
    A price will be established for a three-month period to facilitate a college semester.
    Access –
    Students will be able to access the programs on more than one lab computer.
    Is access controlled by logging in with an Adobe ID?
    Once the software has been installed on a computer, will any student with an Adobe ID be able to access it?
    We are hoping to be able to implement this by next fall, so I am anticipating that these details will be worked out before then.

    Great to know this I will be sharing it with my professors also.  To have the "team" version would be great!  Many problems occur for students with portable storage units.  The worst is forgetting to download a project and take it with you. which really hurts our timing on a project to completion.  Also as the projects grow in size we can end up with storage issues as some files are very large.  This sounds like a grand solution.
    Thank you for answering my question earlier Mr. Rice.  Now I need to get back to my assignments. bye.

  • TS3297 "iTunes was unable to load data class information from Sync Services." What is this solution for the new phone to sync up with my iTunes acct?

    "iTunes was unable to load data class information from Sync Services." What is this solution for this new phone to sync up with my iTunes acct?

    Hi tadhunt,
    Here is an article that directly addresses that error message:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/ts2690
    I hope this helps!
    - Ari

  • Want robust solution for alternating row color, resetting every group

    I would like a solution for displaying an alternating row color for my detail rows that resets every group, so that row 1 is always gray.
    Our Crystal designer provided this code to me:
    @rowcnt formula, suppressed, placed in Detail row:
    Shared numbervar rowcnt;
    rowcnt := rowcnt + 1;
    @resetrowcnt, suppressed, placed in Group row:
    Shared numbervar rowcnt;
    rowcnt := 0;
    Formatting formula, placed in Color in Detail > Section Expert:
    Shared numbervar rowcnt;
    if Remainder(rowcnt, 2) <> 0 then
    color(241,241,241)
    else
    crWhite
    This was working fine for me.
    However, it is suddenly not working in one of my reports.
    The report does happen to have two groups (rowcount.png).
    When the report is run, all rows are colored (rowcount02.png).
    This report was previously working fine!  I'm not sure what changed.
    In any case... surely there must be standard code to do this very standard formatting.
    I would be very grateful if someone could post some robust code to accomplish the following:
    REPORT DATA IN DETAIL ROW, ALTERNATE ROW BANDING:
    - Data in Detail row displays alternating row colors
    - Odd rows are always shaded, even rows not
    - Banding resets every group / does not continue pattern from previous group
    REPORT DATA IN GROUP ROW, ALTERNATE ROW BANDING:
    Some of our reports place row data in a group row (just the way it happened).
    If you could also modify your code in this case.
    Thank you!

    Hi Abhilash/Sastry, since I'm going to switch to Sastry's formulas, could you please confirm correctness of the following. I can't actually run this report, I can only provide it to our London office, bit of a lag for testing.
    @resetrowcnt:
    Whileprintingrecords;
    Numbervar cnt:=0;
    @rowcnt:
    Whileprintingrecords;
    if {HedgeDetails.StrategyID} <> previous({HedgeDetails.StrategyID}) and
    {HedgeDetails.DealID} <> previous({HedgeDetails.DealID}) then
         Numbervar cnt:=cnt+1;
    Details section (Suppress):
    not(OnFirstRecord) and
    {HedgeDetails.StrategyID}=previous({HedgeDetails.StrategyID}) and
    {HedgeDetails.DealID}=previous({HedgeDetails.DealID})
    Please note: Suppress checkbox is selected AND the above formula is entered.
    Details section (Color):
    Whileprintingrecords;
    Numbervar cnt;
    if cnt mod 2 <> 0 Then color(241,241,241) else crwhite

Maybe you are looking for