Can Java be used to link client/server?
Hello,
I do not know a great deal about either subject but I was wondering whether there was any information online (or indeed a product...) which is Java based to provide a link between a client/server environment. Specifically in this case online, i.e. an online catalogue where clients can interrogate (i.e. search for products etc.) a server.
Thank you for any help!
Tom.
an online catalogue where clients can interrogate
(i.e. search for products etc.) a server.The short answer to your question is: "Yes, Java can be used to develop the product you mentioned."
The longer question comes in how do you want the users to access the on-line catalogue?
It can be made as simple as a generic browser accessing your catalog which can be complete with pictures, descriptions, searches, and purchase information...
or any combination of complexity up to having to use a user developed applicatoin to hit your site. Java can be used to implement the entire range.
Similar Messages
-
WLC CT2504: Interface IP can not be used as internal DHCP server IP
Hello all,
I've got a new CT2504 controller with software version 7.0.220.0
Regarding to
http://www.cisco.com/en/US/products/ps6366/products_tech_note09186a0080af5d13.shtml
I've tried to configure the internal DHCP on a dynamic-interface, but this is not possible:
(Cisco Controller) >config interface dhcp dynamic-interface vlan401 primary 172.16.x.3
vlan401 Interface IP can not be used as internal DHCP server IP
It works, if I use another IP (aka DHCP server) in the same subnet or in another subnet. It works also for the management interface.
(Cisco Controller) >show interface detailed management
Interface Name................................... management
MAC Address...................................... d0:c2:82:xx:xx:xx
IP Address....................................... 10.2.x.135
IP Netmask....................................... 255.255.255.240
IP Gateway....................................... 10.2.x.129
External NAT IP State............................ Disabled
External NAT IP Address.......................... 0.0.0.0
VLAN............................................. 400
Quarantine-vlan.................................. 0
Active Physical Port............................. 1
Primary Physical Port............................ 1
Backup Physical Port............................. Unconfigured
Primary DHCP Server.............................. 10.2.x.135
Secondary DHCP Server............................ Unconfigured
DHCP Option 82................................... Disabled
ACL.............................................. Unconfigured
AP Manager....................................... Yes
Guest Interface.................................. No
L2 Multicast..................................... Disabled
Scopes are defined and Proxy is enabled.
(Cisco Controller) >show dhcp summary
Scope Name Enabled Address Range
ap Yes 10.2.x.137 -> 10.2.x.140
intern Yes 172.16.x.20 -> 172.16.x.30
(Cisco Controller) >show dhcp proxy
DHCP Proxy Behaviour: enabled
Has somebody an explanation for this issue?
Thanks in advance,
Regard,
RobertYou can use the internal dhcp, but you need to set the primary dhcp as the management ip. So in your dynamic interface, your primary dhcp is configure with the wlc management ip address. Dhcp proxy also needs to be enabled and is enabled by default.
Thanks,
Scott Fella
Sent from my iPhone -
Can Java be used to manipulate the Windows registry?
Can Java be used to manipulate the Windows registry? If so, can someone point me to some examples?
Thanks!There is no supplied capability to do this, because the registry is Windows platform specific.
It might be possible by making the call through a native Windoze app. -
Why can I not use mobile link in reader on window Vista?
Why can I not use mobile link in reader on window Vista?
Hi sze wing,
Please tell us a bit more--what do you mean by "cannot use"? Do you get an error message? Or are files not syncing as you expect?
Have you double-checked to make sure that Mobile Link is on? Please see Acrobat Help | Mobile Link: open once, read anywhere for instructions on enabling Mobile Link, if it isn't already enabled.
If it is enabled, and things still aren't working as expected, please let us know what issue you're facing, including any error messages.
Best,
Sara
[discussion moved to Adobe Reader forum] -
XDK APIs (C/C++/Java) and tools can also be used with MS SQL Server
I want to know if XDK APIs (Java or C/C++ APIs especially) and tools can be used with MS SQL Server or not?
I want to write a simple application that updates XML ( acordXML used for insurance) document into SQL Server tables. Of course I am assuming to transform into appropriate XSU APIs format.No. Use SQLXML instead on a SQL Server.
-
Can Java be used for this?
Hi. As a hobby, I have built a game with a development tool called Macromedia Director.The game is a 'virtual tabletop' that allows people to play a variety of role playing games over the internet that are traditionally played in a face to face setting at a real table.
Due to some shortcomings with Director I am looking for another language to program the game.I currently use an old version of Director and upgrading is expensive. Director also has limited cross platform support (no Linux). Finally, the future of Director is in question as Macromedia was acquired by Adobe and they have already end-of-lifed some of the acquired products.
My game consists of some basic features. One user runs a server application that accepts connections from the client application. Once connected the cleints can do basis text chat. There is die rolling function. Finally there is a feature for the referee to send pregenerated images to the players, typically some sort of map. The image can be hidden from the players and revealed in pieces by the referee. I also plan on adding a shared whiteboard feature for creating on the fly images.
I have done some preliminary investigation and it seems that Java is one of the obvious choices. The socket programming seems to be straight forward and allow you to create a similar client/server application. Swing covers building the GUI. What I am not clear on is the graphics capability of Java. Director has a fairly powerful graphics engine allowing you to work with 32 bit graphics (alpha channels) and pixel manipulation.
It seems like Java can do all this, but I want to make sure before I invest to much time. You can see screen shots of my game at http://www.v-fort.org. It's definetly not a polished product. There are many of these types of programs already.I just do it because I enjoy programming (and gaming too). I appreciate any suggestions. Thanks
-- DaveJava is it!
-
How to set up new MBP to use D-Link print server
New to Mac. MBP found 2 of my 3 printers right away. Tried manually configuring the 3rd which is an older HP Laserjet 1320 connected via USB to a D-Link print server. In Win you config using the IP address and port name. Configuration appeared to work but nothing gets sent to printer. If this is an easy fix I would like to go that route but if the print server hardware is too old please suggest good alternative that will work for both Windows and Mac systems as I have both in the house.
ThanksI was able to resolve this by rebooting the print server.
-
Can Java be used to save content of HTML form to a file?
We have an application that saves a pdf file to a location on our webserver. The file displays on the users machine in a browser window. I have created a link in the links bar of the browser window which launches a simple HTML page. This page allows the user to enter a number of fields and click 'SAVE'. This is where I am having the problem. I need the save button to firstly create a csv file on the webserver containing the details input by the user. I then need the pdf file saved to the web server with a new name and in the same location as the csv file. is there anyway to achieve this using Java or can anyone please point me in the right direction?
Thanks<<Click on the SAVE button in an HTML <form> and the browser will perform an HTTP POST of the data to a URL. Make that URL point to a Java servlet and it can take that form data
<<and write it to the webserver file system in any format you wish, including csv and pdf.
agree with duffy. You can also use JSP and call a class method to handle whatever data you specify.
orozcom -
How to compile and run a Java servlet using the BEA weblogic server
Hi,
Could you help me out as to how to compile a servlet using Web Logic server.I have written a Servlet program and have also set up the environment in the "c:\bea\wlserver6.0\config\examples" folder by giving the command setExamplesEnv.cmd.
I have stored my GreetingServlet.java file in "c:\bea\wlserver6.0\samples\examples\servlets" folder.
How do I compile my servlet now?
Vid
Hello,
1. The .form file was used by Netbean's GUI builder to create the .java and is not needed for compilation.
2..../src # javac -classpath "..." mytool/*.java
I guess the package mytool was not coped with.
Alternatively it is worth to use the ant build tool also used by Netbeans.
Then you can make a jar from the class files, indicate in the manifest.mf file:
1. the main class
2. the library jars -
Can Java be used to write service/daemon at solaris?
I new to solaris server side developement, thinking not go back to c/c++ on solaris, to write the system service or daemon. Can I use java to achieve this instead of c/c++ ? Or where I can find the samples / resources about this?
Thanks,
BenThere is no reason you cannot write a daemon in Java. The cloudscape database daemon that was shipped with the original Forte for Java is written in Java. You need to decide if Java can give the the performance you require for your service/daemon, however.
You can find some examples and an API for writing Java Daemons at:
http://www.jcp.org/en/jsr/detail?id=96
http://jakarta.apache.org/commons/sandbox/daemon/
http://sourceforge.net/projects/telnetd/ -
Can Java be used to parse Microsoft Word(.doc) files?
Hi guys ,
I want to know whether Java can be used to parse Microsoft Word(.doc) files for searching a string or for checking for grammatical errors, etc
Thanks in advance.
AvichalHey man, anything and every thing can be done these days.
About ur question doc is like all other normal text files with some extra features and extra character supports and other stuffs.
If u neglect those parts and if u consider it to be a normal text file then its a much simpler job.
Here is a code that searches for the key word in all the doc files, txt files, pdf files and html files
in the mentioned folder and sub folders. Any way its a servlet u can change it to a normal program.
It first check the file to know whether they are doc, pdf, html or txt files if yes then it will read the file and
store the contents in the vector and parse the vector for the search string and display the result.
Along with the result the below code will also display the time taken and the number of search string found in the document
import java.io.*;
import java.util.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class search_local extends HttpServlet
public void service( HttpServletRequest _req, HttpServletResponse _res ) throws ServletException, IOException
long startTime = System.currentTimeMillis();
File RootDir = new File( _req.getRealPath( "/docs/" ) );
if ( RootDir.isDirectory() == false )
System.out.println( "Invalid directory" );
_res.setStatus( HttpServletResponse.SC_NO_CONTENT );
return;
Vector kList = new Vector( 3 );
StringTokenizer st = new StringTokenizer( _req.getParameter( "search_text" ), "+" );
while ( st.hasMoreTokens() )
kList.addElement( st.nextToken().trim() );
//- Run through list
Vector toBeDone = new Vector( 10 );
Vector found = new Vector( 10 );
String dir[] = RootDir.list( new htmlFilter() );
cDirInfo tX = new cDirInfo( RootDir, dir );
toBeDone.addElement( tX );
while ( toBeDone.isEmpty() == false )
tX = (cDirInfo)toBeDone.firstElement();
try
int x = 0;
for ( ;; )
File newFile = new File( tX.rootDir, tX.dirList[x] );
if ( newFile.isDirectory() )
File t = new File( tX.rootDir, tX.dirList[x] );
String a[] = newFile.list( new htmlFilter() );
toBeDone.addElement( new cDirInfo( t, a ) );
else
int freq = searchFile( kList, newFile );
if ( freq != 0 )
found.addElement( new cPage( freq, newFile ) );
x++;
catch( ArrayIndexOutOfBoundsException E ){}
toBeDone.removeElementAt(0);
dir = null;
long totalTime = System.currentTimeMillis() - startTime;
formatResults( found, kList, totalTime, _req.getRealPath( "/docs" ), _res );
private void formatResults( Vector _fList, Vector _kList, long time, String _root, HttpServletResponse _res ) throws IOException
_res.setContentType("text/html");
PrintWriter Out = new PrintWriter( _res.getOutputStream() );
Out.println( "<HTML><HEAD><TITLE>Search results</TITLE></HEAD>" );
Out.println( "<BODY><H3>Search Results</H3><BR>" );
Out.println( "Keywords:<B> " );
Enumeration E = _kList.elements();
while ( E.hasMoreElements() )
Out.println( (String)E.nextElement() + " : " );
Out.println( "</B><BR><BR><CENTER><HR WIDTH=100%></CENTER><BR>" );
E = _fList.elements();
cPage sPage;
String link;
while ( E.hasMoreElements() )
sPage = (cPage)E.nextElement();
link = sPage.cFile.toString();
link = "http://localhost/BugFix/docs/" + link.substring( link.indexOf( _root )+_root.length(), link.length() );
Out.println( "<FONT SIZE=+1><A HREF=" + link + ">" + sPage.cFile.getName() + "</A></FONT>" );
Out.println( "<FONT SIZE=-2>(" + sPage.freq + ")</FONT><BR>" );
if ( _fList.size() == 0 )
Out.println( "<I><B>No sites found!</I></B><BR>");
Out.println( "<BR><CENTER><HR WIDTH=100%></CENTER>" );
Out.println( "<BR><FONT SIZE=-1>Time to complete: " + ((double)time/1000) + " seconds</FONT>" );
Out.println( "</BODY></HTML>" );
Out.flush();
private int searchFile( Vector _klist, File _filename )
//- Links the file
int frequency=0;
try
DataInputStream In = new DataInputStream( new FileInputStream( _filename ) );
String LineIn, token;
boolean bValid = true;
Enumeration E;
cLineParse lp;
while ( (LineIn = In.readLine()) != null )
lp = new cLineParse( LineIn.toUpperCase() );
while ( (token=lp.nextToken()) != "" )
if ( token.indexOf( "<" ) != -1 && (
token.indexOf( "<A" ) != -1 ||
token.indexOf( "<HE" ) != -1 ||
token.indexOf( "<APP" ) != -1 ||
token.indexOf( "<SER" ) != -1 ||
token.indexOf( "<TEX" ) != -1 ))
bValid = false;
else if ( token.indexOf( "<" ) != -1 && (
token.indexOf( "</A" ) != -1 ||
token.indexOf( "</HE" ) != -1 ||
token.indexOf( "</APP" ) != -1 ||
token.indexOf( "</SER" ) != -1 ||
token.indexOf( "</TEX" ) != -1 ))
bValid = true;
else if ( bValid )
E = _klist.elements();
String key;
while ( E.hasMoreElements() )
key = ((String)E.nextElement()).toUpperCase();
if ( token.indexOf( key ) != -1 )
frequency++;
In.close();
catch( IOException E ){}
return frequency;
class cPage extends Object
public int freq;
public File cFile;
public cPage( int _freq, File _cFile )
freq = _freq;
cFile = _cFile;
//- End of file
//----- Supporting classes
class htmlFilter implements FilenameFilter
public boolean accept(File dir, String name)
File tF = new File( dir, name );
if ( tF.isDirectory() )
return true;
int indx = name.lastIndexOf( "." );
if ( indx == -1 )
return false;
String Ext = name.substring( indx+1, name.length() ).toLowerCase();
if ( Ext.equals( "html" ) ||
Ext.equals( "pdf" ) ||
Ext.equals( "txt" ) ||
Ext.equals( "doc" ) )
return true;
return false;
class cDirInfo
public File rootDir;
public String[] dirList;
public cDirInfo( File _r, String[] _d )
rootDir = _r;
dirList = _d;
class cLineParse
String L;
public cLineParse( String _s )
L = _s;
public String nextToken()
String ns="";
boolean bStart = false;
for ( int x=0; x < L.length(); x++ )
if ( L.charAt(x) == '<' && ns.length() != 0 )
L = L.substring( x, L.length() );
return ns;
else if ( L.charAt(x) == '<' )
ns = ns + L.charAt( x );
bStart = true;
else if ( L.charAt(x) == '>' ||
L.charAt(x) == '\r' ||
( L.charAt(x) == ' ' && bStart == false ) )
ns = ns + L.charAt( x );
L = L.substring( x+1, L.length() );
return ns;
else
ns = ns + L.charAt( x );
L = "";
return ns;
} -
Why can't I use default email client?
PSE 12, Windows 8.1. It would be awesome to be able to just have a SEND TO Email client from within the program, but forcing us to use Microsoft's horrible email program is not satisfactory. I'm sure I'll just have to end up doing it the hard way, saving the file, open a new email client message, attach the photo and SEND, but it shouldn't be necessary. I always use Thunderbird for all my email and don't wish to change. I never could get Microsofts Email to work with all my email programs.
Why wouldn't Adobe configure such an important and often used option for the user to use?
Thanks
TimJust discovered that Photoshop Elements 12 will not work with my Facebook either... says there is no internet connection, which there is. Disabled Anti-Virus, no firewall, everything else working fine. I guess I'll stick to what I know PSE can do.
-
Can java be used for game dev?
(Side note)-when I first posted here a couple months ago I decided to stop because of final exams.
I want to get back into programming again and Im thinking about starting into java (again). My future hope is to eventually make a basic game. Can you do that with java because a lot of people tell me java 3d is a horrible and useless system.
thanksIf you're working on this project by yourself, I wouldn't recommend using Java 3D. It takes a lot of effort to get even simple 3D graphics working the way you want them to in Java 3D, and the learning curve is pretty steep. I don't have any experience with jogl, though, so I can't say whether or not its any better.
- Adam -
I can no longer use hot links in e-mail (Yahoo Mail). What is going on?
I noticed recently that all hot links in my Yahoo E-mail messages are dead. I don't know if this is occurring on the recipient's end. I hope not as this would be rather embarrassing.
I've tried several tests where I embed links in text to both websites and downloads from my Dropbox. All dead.Hi, I know, I've heard from other PPC users. The latest Flash Player would be version 10.1.102.64. So Google Maps won't support that version either? That version didn't come out until November 2010, less than 4 months ago!!
So Google Maps won't support Flash Player version 10.1.102.64? a 4 mo old version? Wow, that's a short "shelf" life!!
What about Safari? I don't use a Mac, so don't really know.
This is a discussion, whether it is helpful or not for what you want, you can decide:
http://discussions.apple.com/thread.jspa?messageID=13159236
Thanks,
eidnolb -
Can Java be used to communicate with hardware?
I work with electronics as a hobby, but wish to interface with my electronics so I'm trying to find a programming language that has good API's for hardware communication(most likely through a serial or parallel port).
Can this be done with Java? I really like java and the fact that it's platform independant.I work with electronics as a hobby, but wish to
interface with my electronics so I'm trying to find a
programming language that has good API's for hardware
communication(most likely through a serial or parallel
port).
Can this be done with Java? I really like java and the
fact that it's platform independant.I used the serial communications API, and it's not hard to use. The thing is you loose the platform independence when you use (it has some platform specific things)
Maybe you are looking for
-
Downloading High Def Mini DV through Macbook pro to external hard drive
Hi, I am making a 90min High def documentary with the hopes of selling it comercialy. I purchased a Sony hdr-hc7 and we shot 28 hours of footage with another 30 hrs to come. My plan is to rent a tape deck to download the DVM-63HD Mini DV Video Casset
-
Problem with my substitution variable.
My substitution variables don't prompt properly now. It worked fine before, but I don't know what I did to it. Here is the test code: set define on; connect sys/&sysPassword @&instanceName as sysdba; execute dbms_output.put_line('this is a test'); Wh
-
Unable to backup tables in Oracle 10g
hi, I am faced with the following error when trying to take backup: Validation Error Examine and correct the following errors, then retry the operation: Error - ERROR: Wrong password for user Export: Export Type Even i tried with SYS user.
-
LV 8.0 App Builder - Installer including NI-VISA
Hallo, how can I include Ni VISA into the installer files with the LV 8.0 App Builder for using Visa functions? Kind regards Niko
-
Service PO to GR (service entry)
I created service PO. When I do GR (ML81N) for that PO number, it picks automatically only one line item. I need not pick all line items. Any possibilities are there to pick all line items of PO?. Please give correct answer