|
In my jsp page,two drop down box are there.
If i select from one drop down box any project id,then i want all module id
of that project id in second drop dwon box.and I want that from database.
Now i m able access the selected item from first drop down box using javascript,
but i want that item in scriptlet.
how can i access it?
Plz help me.
Thank u.
aarti
|
|
|
|
|
There are two ways to do so:
1. Use AJAX library
2. Post or submit data using javascript method.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
i'm trying to develop a webservice in netbeans, and i created a folder called config and in it appconfig.xml to get the server ip,but the problem is when i try to read the xml file it says that file is not found, i have to put it in the glassfish\domain1\domains\.... folder, hoa can i say to get the file in the project folder.
|
|
|
|
|
Questions for you:
0. Where is your program running?
1. How are you referencing the file?
2. Do you include the path?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi...
I am going to convert my codings Visual c++ to java...
I just want to know ..
Do we have any function in java which equivalent to [ GetPixe() in Visual C++ ] ...
thanks in advane
|
|
|
|
|
If you've got a question post it and post it once. Using multiple forums will not help. Changing your displayed name will not help.
Everytime you double post, a sweet little puppy dies! Looking at your postings here and in the c/c++ forum, you don't like puppies!
Now, go to the corner and sing the very sorry song.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Sakthi.Gs wrote: Do we have anyIs there a function in java which is equivalent to [ GetPixel() in Visual C++? ]
Yes. getRGB()
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
You may find this method in Robot class.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
Hi ..
ImageProcessing..
How to segment the each and every characters from the bitmap image
Consider for an example bitmap1.bmp:
Visuallc++ text is on bitmap1.bmp..How to extract those from image
WORD - Segmented Characters
Visualc++ ------ > V|i|s|u|a|l|c|+|+|
After Segmentation
Could any one tell me t.how to segment eace character
|
|
|
|
|
Hi..Sakthi here..
First i would like to thank all Expert's for your good response..
Here i have given the question with one Ex:
My question is the check whether the entered input text is meaningful or not...For this we need to compare the given input with english dictionary,if we have found exact word then we can accept it .other wise reject rhe word..We are checking in terms of spelling ..
Class -------- > Text ( Selected )
Klass -------- > Spelling mistake ( Rejected )
------------------------------------------------------------
Like that we need to implement the english dictionary in java
Does we have any separate built in class for this process..
Waiting for good response
Thanks in advane ..
|
|
|
|
|
Hi, I am trying to write a Java Applet to manipulate other applications. For example,execute the application, then make the mouse to click any where on the application and record the Mouse clicks/verify to replay it at later time. Anyone knows how to do this in Java. I know how to record the mouse clicks in Applet, but how would you do this in another application?
Thanks in advance. Any help is greatly appreciated.
Benjamming
|
|
|
|
|
Hi i am new to this forum...
I heard about our forum very well.
I have doubt on :
How to include english dictioinary in java ..Is it Possible?
My task is to check whether the given text is meaningful or not?
Could some one hepl me out from this..
Do we have library files for this.
Advance thanks
|
|
|
|
|
There are some resources out there. Try a google of 'Java source code spell checker'
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi William,
Thanks for ur good response..
|
|
|
|
|
I need to know if there is anyone that can help with this ejb's. I'm just trying to set up a simple timer. I want to set it up in intervals plus I need to know what all does the ejb needs. And its ejb3.0 and ejb is Enterprise Java Beans. The code is below:
Client: -> did have something but wasn't working correctly.
<pre>package ejb30.STClient;
import ejb30.STBean.*;
import javax.ejb.EJB;
import javax.ejb.TimerService;
import javax.naming.*;
public class Client
{
}</pre>
Remote:
<pre>package ejb30.STBean;
import javax.ejb.Remote;
import javax.naming.NamingException;
@Remote
public interface STBeanRemote
{
public void Timer();
}
</pre>
Bean:
<pre>package ejb30.STBean;
import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.TimedObject;
import javax.ejb.TimerService;
import sun.misc.Timer;
/**
* Session Bean implementation class STBean
*/
@Stateless
public class STBean implements STBeanRemote, TimedObject {
@Resource
private TimerService gog;
/**
* Default constructor.
*/
public void setSessionContext()
{
}
public void Timer()
{
Timer ts = (Timer) gog.createTimer(0, 15000, null);
}
@Override
public void ejbTimeout(javax.ejb.Timer timer)
{
// TODO Auto-generated method stub
System.out.println("I'm working");
}
}
</pre>
XML:
<pre><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
<ejb-jar xmlns ="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://ww.w3.org/2001/XMLSchema-instance"
metadata-complete="true" version="3.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/nx/javaee/ejb-jar_3_0.xsd">
<enterprise-beans>
<session>
<display-name>STBean</display-name>
<ejb-name>STBean</ejb-name>
<business-remote>ejb30.STBean.STBeanRemote</business-remote>
<ejb-class>ejb30.STBean.STBean</ejb-class>
<session-type>Stateless</session-type>
<transaction>Container</transaction>
<security-identity>
<use-caller-identity />
</security-identity>
</session>
</enterprise-beans>
</ejb-jar>
</pre>
I edited it with the proper tags... please help.
|
|
|
|
|
|
On an average whats the defects per KLOC in java?? Any idea anyone?? May be a stupid question but someone asked me and i got curious.
|
|
|
|
|
In mine <5
In yours >500
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I can no other answer make, but, thanks, and thanks.
|
|
|
|
|
Hy guys ! i'm running into a bit of trouble with a JScrollPane, the pane itself has to stay the same size but the viewport inside the pane has to get longer as i add stuff to it( right now i'm just drawing circles downwards)
the problem is that when the viewport gets big enough to require scrolling my drawing dissapears
my globals :
public int positionY=10;
public int positionX=20;
public int width=30;
public int height=30;
private Dimension dim=new Dimension();
private MyJViewport drawHere=new MyJViewport();
private JScrollPane displayResult;
private JButton jButton1;
the MyJViewport class :
class MyJViewport extends JViewport {
@Override
public void paint(Graphics g) {
g.setColor(Color.BLUE);
g.fillOval(positionX, positionY, width, height);
}
}
in the constructor i instance the scrollpane :
displayResult = new javax.swing.JScrollPane(drawHere);
displayResult.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
displayResult.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
the event handler for the button press:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
positionY+=height;
if (positionY > drawHere.getHeight()) {
dim.height = drawHere.getHeight() + height;
dim.width = drawHere.getWidth();
drawHere.setPreferredSize(dim);
drawHere.revalidate();
}
drawHere.repaint();
}
can anyone help with this ?
|
|
|
|
|
It looks like you are only painting the last item.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I don't understand , do you mean the last item in the scrollpane ? there is only the viewport in there, can you please explain ?
|
|
|
|
|
All your code is doing is painting a circle at the LAST position. The repaint needs to paint EVERY circle.
The simplest approach is to have a collection of objects each representing on of the thing you wish to display.
Each class knows how and where to piant itself on a given graphic:
[this code is not tested]
class MyCircle
{
private int top;
private int left;
private int radius;
MyCircle (int top, int left, int radius)
{
this.top = top;
this.left = left;
this.radius = radius;
}
void Repaint (Graphic g)
{
g.setColor(Color.BLUE);
g.fillOval(this.top,
this.left,
this.radius,
this.radius);
}
}
As you add your curcles create a new object with the X,Y,R. Hold these in a list object.
On the scrollpane repant iterate through the list and paint each object.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I see now thank you for explaining !
|
|
|
|
|
this is related to hacking a website via mobile. A user is able to hack a website using mobile phones. different mobiles are configured with different browsers. but the website when developed is error free and cannot be hacked if used with different versions of IE and mozila. Since the mobile applications are enabled with java script so by changing the different mode the hackers are accesing the website. So how to check it and what are the different features of testing it.
|
|
|
|