File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes hi there, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "hi there," Watch "hi there," New topic
Author

hi there,

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hello ,

I want to use JSP instead of Applets on Tomcat. The only question for using JSP is that when client enters a record that should not be processed at server instead that should be handled at client side itself. For this purpose If I use java scripts which will hold all the records either in any utility or array. And after that if user wishes to edit the record then instead of going to server java script will display all the records to the client and after updation all the records can be sent to server. Is this thing possible ?. If yes, then kindly tell me in brief .


Secondly, 3DES encription, decription is to be done at client side with client program written in JSP. Without going back to server for decription / encription. This must be done at client side. How this thing is possible?. I think using plug-ins at client side might help. But we are not exactly aware hoe to implement.


regards

gurpreet
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could hold a collection of values in JavaScript client-side till a user is ready to submit. I'd suggest something like building up a csv/xml string in a hidden form element, or dynamically adding hidden elements to the form as you create the records. However, JavaScript is always a brittle way of doing this - suppose the client doesn't have it enabled?


Secondly, 3DES encription, decription is to be done at client side with client program written in JSP

I think you may be misunderstanding JSP here. JSPs are serverside. You could include something your HTML which would do this (more JavaScript, ActiveX, an Applet etc.), but I'd have to ask you why you need encryption/decription just in the client? Surely its one client-one user, and its only when you go to the server you need encryption?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hi there,

I thank you for your prompt response. But I do not want use Applets at any cost. As far as encritpion / decription is concerned that must be done at both the ends. Appart from JSP what else I can use for client side coding.
Secondly, what do you mean by csv/xml. Please do post a sample for this file.

regards,

gurpreet
[ May 18, 2004: Message edited by: Gurpreet Saini ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Appart from JSP what else I can use for client side coding

You can't use JSP for client side coding. JSP runs on the server. Perhaps there a little language misunderstanding here?

What I meant by csv/xml some sort of delimited string to describe four records (e.g. record 1; record 2; record 3; etc.)
[ May 18, 2004: Message edited by: Paul Sturrock ]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
JSP |||||||||||||INTERNET|||||||||||||||||| browser

The big ||||||||||||||||||||||||| means the JSP cannot do anything on the computer where you run your browser.

Why do people always try to abuse technologies for something they're not meant for?

For clientside applications don't use serverside technologies, for serverside applications don't use clientside technologies.

If you don't want applets (understandable) make a fullblown Swing application.
Or go for a client/server application using JSP as the client component and do all work on the server.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi there,
 
Similar Threads
B&S: find/search
Should lock methods be callable by the client
Yes! Passed! 388/400
performance issue !! Http Vs Https
Simple encription & decription to string