alsoumahi alBatal

Ranch Hand
+ Follow
since Nov 22, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by alsoumahi alBatal

I am trying to make java application that counts number of prints for a document by user. let say user login to the program , he selects and prints one document, the program will register this print for this document by this user .Next time if the same user prints the same document , it will count second time , third time and so on. The problem here is that you cannot depend on  job.print(myDoc, aset) because not every job of printing will print the document, because simply the printer is either off , door open, no papers , or even the job itself on queue.  I have searched a lot I could not find how to make the printer responds back if the document is printed in java.  I have tried with PrinterStateReasons and I have tried with PrintJobWatcher class but no ways at all. how I will make sure the document is printed by the user.

*all my documents are in one copy only.

please help me how to do this.
here is my code
5 years ago
I have seen the code and explanation of printing PDF in java using DocPrintJob and PrintService here in this link. I am just wondering if the code can print a PDF document of different sizes. How about if the selected printer  according to below code is not able to print the PDF format of different sizes say A3 ,A5, because the printer is only printing paper size A4 what will happen in this case


is there a way to print pdf pages automatically according to the page size ?. How to determine page size of type A3,A4,A5,...etc of pdf page . Is there a way if I got the page size of pdf page I can print that page in the appropriate format ?
please help me I am really confused.
thank you in advance
5 years ago
I have one jsp form that it has upload file input. The file is being uploaded to the servlet and servlet is reading the file successfully. The servlet is processing the data of file doing some stuff after reading the file. for me I can't assume how much time the servlet is going to take because as I told servlet is processing data of the file so it might be big data with other files and will take longer time. what I need is I want to show to user such progress bar that indicates to him the server is busy processing the uploaded file.  how is that ? anyone can help me please.
6 years ago
JSP

And what security problems would exist if the purchaser had the source code to your servlets? What assets of yours would be damaged or lost in that case?

. simply he can change the code or adjust it to what he needs and sell it to others as he is the owner of the program.
6 years ago
JSP
I undertsand of what you are saying about viewing the source code , but I have seen some web applications done in ASP that you cannot inspect the html element to view the source code . why I am trying to do that because I don't want anyone who is having an idea about JSP can find my servlets and do sql injection or whatever. how these people disable this functionality from web browser.

since the end user will never get to see the class files then there's nothing you need to concern yourself about with that



actually I am trying to sell my web application and distribute it so for that how can I secure my java classes from being retrieved to original source code. I have tried to use ProGuard and then check the classes after obfuscation process , it returns back with little bit change so someone if he set on it he can analyze and understand the code again. specially I cannot change the name of servlet classes because I need to link it to web.xml as below

here I don't want to obfuscate the "loginServlet" name to be xxx because "loginServlet" in my login form will not be exist any more.
please help me on this , how to secure my java servlet classes.
6 years ago
JSP
Hi experts , assume you create a web jsp application and now you want to make it online. how to secure or protect your web application like disable viewing source code or make it only running in Microsoft explorer with no toolbar options ( F2 is disabled and inspect element is also disabled). how also encrypt the servlet classes so no decompile java classes can be occurred. I want to know how much security I can achieve fro my application.
6 years ago
JSP
Dear Experts ,
    I am using table view to view my data in JavaFx , my question is how to make filtering in each column like excel ( filter will appear in headers columns ) . if the column is date type then date filtering options will appear ( on date , before date , between dates , ... )  , if the column is numeric type then filter options for numeric values  will appear ( greater than , less than , equal , ...)  and so on
please tell me I need this very urgent.
6 years ago
Hi all , I just want to know if i have my data on database and I want to create Interactive DashBoard page in jsp , how to create that page ?. what tools I should use ? , is there any simple way like for example
ready dashboard page then I modified to suite my needs. Is it difficult or impossible in jsp ?. please help me with tutorial or links for such a way to create my own dasboard
7 years ago
JSP
hi experts , I have gone through kendo telerik library which is a group of tools to use to make your website more interactive. however the kendo tool is not free and not forum supporting not there unless you purchase their products . my question is is there free JQuery library where we can make grid table with filter , drop down list with filter , excel in web and alot of options but free and I can ask questions if I don't understand . I mean there is supporting team or forum which they can give you solution at any time.
you can see all Kendo UI Components here http://demos.telerik.com/kendo-ui/ . it is really easy and nice but no help on that.  :cry:
please help
Hi all , if I want to develop GUI application with fantastic interactive interface . I am good in java swing but when I see my friends creating their GUI applications using VB.net which is better than what I can do in java, even though both programs are functionally perfect and do the same job.   My question is do I have to learn VB.net for designing and creating good GUI application or I have to read a lot in how to design in java swing.
7 years ago
Hi experts, I have a JSP system I create for my company. It is like a library system . I need now to include the web mail system so users can exchange information among them easily inside the library system. it can do same as outlook , user  send , receive , & forward mails. why I need it in my application although I can use outlook mail as my alternative ? because I need users only exchange information about the library system no other subjects and I can track all users mail.
please guys if any one knows or any tutorial please share with me
7 years ago
JSP
Hi all , I am just asking if you could access other website data and show it on your website as a shortcut way instead of going and search on that particular websites. is it possible ?
what are the problems I will face ? , what will be the solutions if possible. I will give one example , the airways websites , they are showing their airline flights and seat availability , so is it possible to show these information to my website so I can find all information of all airways on my website ( my website in JSP ) and it is online. just to let you know the remote data is always changing , will I get that update reflected to my website or not ?. please help me how can I share the two websites' information
7 years ago
JSP