stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Look at the Java Sun tutorial on ActionEvents and ActionListener. They have all the examples you need as well. I was able to learn all about them by myself, and so will you, if you read. If you have any specific questions, ask those...

I am pretty sure the thread starter has already found a solution, sumit_hotchap is the culprit for resurrecting this thread of more than two years go.
<EDIT>
And just for the record, the first solution is the best solution, the thread starter just doesn't know what the heck she is talking about in the second post

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Futuristic thinking helps me plan to make the best of everything or anything.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

902,

Ok, lets take some piety Team B and halt the rampage for today then :P ....

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

898

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

894

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

890

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

886

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

882

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

878

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

874

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

870

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

866

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

862

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

858

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

854

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

flag, cage, game

freedom

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Does it have any educational value also ???

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

850

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Sorry for being rude, but have you done any programming at all in Java ???

If not then what are you doing with this code ??

Because the above exception is as clear as it gets, show some effort from your side and what have you done to solve this problem or some analysis on why you think this is happening, rather than just blindly copy pasting what is mentioned here and vomiting back what your system throws back at you.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster
public InputStream(InputStream paramInputStream, boolean paramBoolean)

Now I am just guessing here, but I think the paramInputStream parameter is of type Base64.InputStream .

Since you have conflicting names, I suggest you change that definition to :-

public InputStream(java.io.InputStream paramInputStream, boolean paramBoolean)

if you wish that InputStream refer to the InputStream from the java.io package.

BTW drop the SMS speak, you have a full keyboard in front of you so type the complete words.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Have to..


Debugging ??

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

that

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I guess she was a serial killer..


Have Bruce Eckel and Ellitote Rusty Harold really turned on Java :P ??

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

But why would I want to play it ?

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

846


Looks like the other team has forfeited !!!!

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

saw

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

842

... So after some brief resistance we are back on our way to winning this game !!!!

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

This is a JSP issue and there is a forum dedicated for JSP in the Web Development section.

Anyways the problem is quite simple, you are encountering a NullPointerException in your OnWebBeanErrorPage.jsp page.

The line number mentioned in the Exception is the line number from the corresponding servlet generated for your JSP by your web server. In case the point at which is the NullPointerException is thrown is not appared you can locate the "OnWebBeanErrorPage_jsp.java" file inside the "work" folder of your tomcat installation and check what is it that exactly happens at that line and trace that back to your JSP page.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

*zzzzzzzzz*

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Luckily

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

838

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Well what you are looking for is a quick fix, an explanation of a couple of lines which will solve all your problems ... May be the following line will do :-

The couple of lines of code you have pointed, get the value of the HTTP Header "string1" set by the server when you invoke the default page of "http://www.xyz.com".

Now if you do not understand that I suggest you begin to read more about HTTP, cause there are no short cuts when you are gathering knowledge.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

You need to know at least something about the HTTP protocol before understanding that piece of code.

But what comes to my mind is why do you want to know what that piece of code does, are you involved in plagiarism .... trying to use someone else's code and showing it off as you own, because for a person trying out something new the question is always on the lines of "How do I do this ..", where as yours is the opposite "What does this do ..." ?????

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

834

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

828

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

his

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Hate it.

Programming ?

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Ham;Home;game


tried

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Use HTTP POST to get your file to the Web Server and the receiving servlet can then forward it to the next modules for the necessary processing.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

824

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I would suggest compiling the program from your console and check whether you are still getting the same error.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Can you at least tell us what the compiler is spitting out at you ???

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Directly your stored procedure would not work, you will need to generate a dynamic SQL statement like this:-

create proc dbo.uspMySearch (
  @database1 nvarchar(50),
  @database2 nvarchar(50)
)
as

  set nocount on

  execute 'select *
  from ' + @database1 + '.dbo.table1
  UNION
  select *
  from ' + @database2 + '.dbo.table1'

Note I haven't really tried the code out, but this is how I used execute dynamic SQL Queries.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

f is there any possibility to separate column data in different columns using php code..

Would you care to elaborate on that with an example which illustrates what you exactly want ???

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

enlightenment

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I have tried using if (x[0][0] == x[0][1]...etc.), but this throws errors back at me

And what are those errors Java is normally pretty clear while specifying any errors in code.


And your thread title almost sounds like an ad in a matrimonial columns :P .

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Well I have a slightly different opinion about this, according to be its not the language but the methodology you use to program which makes more of an impact.
Adjusting to the syntax of a language and the features provided / not provided by it will of course cause problems, but not as much as the way you design your programs.
I remember the time, when I was working on C in college using the structured programming approach and then suddenly next semester I had to move to using the Object Oriented Programming methodology, I was like "where the hell am I !!!!"

On the other hand when I had to move from C++ to Java and back, Although adjusting to the language syntax was an inconvenience, I did not find it too difficult to actually design my programs as I used to follow the normal Object Oriented Concepts.

So I guess its the method of designing you follow that affects your way of thinking as opposed to language itself.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

816

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

maybe im not making myself clear enough

I understood the problem, it is you who are having trouble arriving at a solution.

i really need help quick

I am not in the same timezone as you, and honestly I need my sleep and if you still refuse to follow the rules dont expect too much help at least from me.

But one last time, you really need to learn Java, It also seems that you are not familiar with any of the languages from the C family. In that case I suggest you buy a good book for beginners mentioned in the Starting Java thread.

And as far as the new problem you have created with your program goes, it is related to scope of a variable.
A variable declared inside a block of code (inbetween { and }) cannot be accessed outside of it.
So you need to declare your flush,flush2, straight and straight2 variables out side and before the corresponding "if" blocks.

You can look for more information on scope of variables here and you can also try this example.

And please do not directly copy paste (without applying your thinking ability) the if template which I gave, it was just for illustrating how you can have multiple statements executing for an if condition. There is no need to initialise two booleans one true and other false for every if block.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

812