peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is interesting list of tutorials

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is plug-in for IntelliJ IDEA, but I never try it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The fastest answer would be get rid of frames. Frames are outdated technology which not gone by supported too much in new release of HTML 5.0 (there are however small bits left) and developers been strongly discouraged to use it since HTML 4.0.1 because of growing numbers of browser issues and complicated situation of web content discovery. However if you want to keep format similar to frames try to use <div> containers, here is quick how-to.
Other then that I can only suggest to have look into frames tutorial or provide essential code parts so we can have look into what you trying to do, how you doing it and where you going wrong...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Either custom tags in JSP or I'm lost

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

First thing first. Have you been told to generated the password this way or you come up with this solution of converting integer to character? Secondly you use while loop without opening and closing bracklets that cause lot of weird behaviour.

The current solution is to complex and it can be simplified with use of 3 (or 2 if you clever) arrays such as

char[] lowerCase = {'a','b','c',.....};
char[] upperCase = {'A','B','C',....};
int[] numbers = {0, 1, 2, ...};

In doing so you need to only generate number between

  • 0 - 25 for lower case
  • 0 - 51 for mix of lower & upper case
  • 0 - 61 for mix of lower & upper case & numbers

Next, random number generating you know you will generated 14 characters so why not do it easier

int[] randomArray = new int[14];
Random rand = new Random();
for(int i = 0; i < randomArray.length; i++){
    randomArray[i] = rand.nextInt(range+1);
}

In doing so you will populate array of 14 elements with values between zero and range (25, 61 or 61 as mention above). Also consider using random generator with seed value as above Random may return same value for few consequently followed requests. something like Random rand = new Random(12345678);

Depending on user input you will display final result

//user want 4 characters password value stored in passwordLength
for(int i = 0; i < passwordLength; i++){
    if(randomArray[i] >= 0 && randomArray[i] < 26){
        System.out.print(lowerCase[randomArray[i]]);}
    else …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Java Web Development is not only about JSP. You will use servlets Expression Language (EL), JavaServer Pages Standard Tag Library (JSTL), Java Server Faces (JSF) variety of frameworks.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you have jar file with JDBC driver for MySQL?
NO? Download here

Is the driver in correct location ?
TOMCAT_DIRECTORY/webapps/YOUR_PROJECT/WEB-INF/lib
More on Tomcat Standard Directory Layout

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dani would be possible to rename JSP section to Java Web Development?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If I'm not mistaken you should be able to work with SVG in Illustrator ad Freehand as these are one of vector packages.
Also if you google for how-to svg or draw svg you get some additional resources that often included programming or scripting solutions

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here list of threads where this been mentioned. You may find some answers there, but be aware most of them just hold request to get code and not solution...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is that pre-requirement of your assignment or you just do not know how to read text file?
Have look at BufferedReader.readLine()

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It would be good idea if you share solution, if you got one, and finally close this thread...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

2 years back I was doing a project that was dealing with gray scale images, but these are not well supported. That time I used Java Advanced Imaging (JAI) library, however if I had to do it again I would go this time with Java Advanced Imaging Image I/O Tools

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have code, but it is in C#.
Why don't you convert it to Java and then ask specific question of any issues you may face?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hacking of your AOL profile has nothing to do with Windows Vista.
You should explain what technologies you using on AOL PHP/ASP/ASP.NET/JSP, are there any databases, do you have any scripts there (JavaScript, VBScript)

PS: I would recommend reading forum rules as forum flooding is not welcomed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You said you want to set text. However you did not said where do you get the text from, is it retrieved correctly and where you want to set it (obviously to text area, but did you try it?)
For these we need some code samples.

PS: To avoid any unnecessary haste have look at JTextArea.append(String) method and let us know if you got it working. In case it does not, please provide your latest code

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Code, code, code is what we need. Reading from magic ball is out of date....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Geek's Lounge >> Posting Games

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You reading from file. Can you provide copy of it for testing?
(Use advanced posting option when replying "Go Advanced". Bellow post window are other post options one of them is "Manage Attachments", use it to upload and attach file)

PS: When posting code next time please use code tags [code] CODE HERE [/code] or [code=Java]CODE HERE [/code]

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I did not look into iText for last 2 years. Did they extend the scope of documents that can be converted? As far I can remember it was only images gif, png, bmp, tiff, wmf and jpeg (there was problem with JPEG2000 - type of grey colour), html, txt, rtf, xml. Are you sure you can convert office formats like doc, ppt or xls to pdf?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Read this...

PS: PMs are not welcomed, also one of forum rules - Keep It On the Site

Do not post asking for an answer to be sent to you via email or PM. Problems and their responses assist others who read them. Please do not email or PM forum staff with your support questions.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ehmmm where do I find this in Java Microedition? :?:

Neither me. For now I work in JME, Swing or Web Development so no.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You two do not really know where to stop teasing. Why do you constantly mock all new comers? Don't you think that one person saying "No, we will not do it for.." is clear message that if other side does not show some effort will get nothing out here?
verruckt24 you been already asked to stop this is polite way.
Consider this as last warning message for all of you. One post with adequate reply is enough!

If you feel there are not enough quality post here you are more then welcome to start your own thread and discuss what is you current project, how do you go about etc.

javaAddict commented: quite right +5
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Simple google search php login page mysql tutorial

Also is moved to PHP section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And which technology you using PHP/ASP or ASP.NET/ JSP?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would be nice if you provided your code and explain where you having difficulties.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Problem is we do not have full image. You are just feeding us with bits of information and we try to help you to our best knowledge. If you give us whole image that will make difference...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You want JavaScript game or you want Java game?
If you want JavaScript game then you in wrong section of forum. Hit the Flag Bad Post link and request to move this thread to correct board.
If you looking for Java game you will have to get started with your own code and ask specific questions as that is a large project and nobody will do it just for you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Rather then having tabbedPane.addTab("tab",new ScrollPane(new JTextArea()),null); you should go as

JTextArea jta = new JTextArea();
JScrollPane jsp = new JScrollPane(jta);
tabbedPane.addTab("TAB_NAME", jsp);

in doing so you can either call jta directly if from same class or provide appropriate setter and getter methods for access from outside class.

I'm not sure if there is way to get names of all visible tabs, but to get name of currently selected is very simple tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Nothing to bless. You dealing with database connection from view, JSP document, that is bad thing to do. Ever heard of MVC Model2?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Little older, but it may still work http://www.flashdesignerzone.com/tutorials/t1047.php

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Don't you think that since 1976 when Charles Simonyi wrote his PhD Thesis there was development/changes specially after the author become employee of Microsoft?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This line is not complete getIdnumber() + ec1.getMyDepartmentname() + ec1.setmyPositionname()); Can you post whole statement and include error you getting from it?

PS: I think you two should google Hungarian notation to settle your case

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well if you found alternative why don't you share with others?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You did not configure your web.xml file something like

<servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>LoginServlet</servlet-class>  
</servlet>

<servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/login</url-pattern>
</servlet-mapping>

Here is info in regards of web.xml configuration and servlet mapping with additional info

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you set some variables as private and need to access them from some other class you need to provide getter and setter methods

public void setEmployeeName(String name){
    employeeName = name;}

public String getEmployeeName(){
    return employeeName;}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is not how it works, that you just say I have programs, have problems with them as they do not work properly and just drop code. Not to mention that you did not use code tags [code=Java]CODE HERE [/code]

State what sort of errors you getting, or what the program should do, or what is expected output and what you getting. Maybe then we will considerate look at it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm not sure what Firefox you using, but my one is up-to-date and I have no problem to see this effect. It is not exactly the programmable drop down as you tried to do but it does the job

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have mistake this forum for something else, do google search like this to got some results

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you take some pains to read about the forum where you post or you just start shooting ? If you would have cared to look around the forum you would have found that there was a forum for JSP too. Also there is an announcement encouraging the use of code tags for putting in code at the start of this forum, but I think following your habit you haven't looked for that either. Also you haven't seem to be attending too many English classes either, I would suggest you to use proper English with proper grammer and avoid the spelling mistakes, it's irritating to read.
BTW If you happen to find the JSP forum here, there is thread there that is useful for all JSP beginners, since you seem to be one.
Also there in that thread they have mentioned how bad a habit it is to make your database connections in the JSP page itself, read that too, since you have violated that convention too. I think the only last one that had remained to be violated.

If you actually hit the button for "Flag Bad Post" there would be no need for all this!
Post already marked for move to JSP section...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have write the code that display just a hyperlink and these hyperlinks displayed in a table when i click on a link its displayed on another detailed page. but i have no idea how to implement the above task.

Please provide code...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi stephen,
This a very unusual problem for me. When we pass the data to save it into database through session, then the some data are lossing. So that, data from another session is coming to save to database. I dnt know how is it possible??????

Please provide code, we are not able to work without it!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
public class Collection 
{
  private Movie[] movieList;
  
  public Collection(){
  
    loadData("../TMJamesBond.java/movies.txt");
  }
  
  private void loadData(String fileName)
  {
        // REST OF THE CODE

You seriously misunderstand the way how to defining method and passing parameters from "caller" method to "worker" method.
Have look at Classes and Objects tutorial and take special care to read Defining Methods chapter

PS: Program still has lot of errors....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Neither we can detect any problem as you failed to provide your code...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Knowing which technology you use collect data from form and query database would be nice...
PHP/JSP/ASP????

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

"Mark as Solved" bellow last post...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yeah NullPointerException is one of many small things I need to battle through as many of the things I pick up either from IDE suggestions (which is not always best to do) or following other people code and often miss the reason of the use. Hopefully with all this technical reading I'm doing I will loose some bad habits ;)

Right now I'm "cracking" through Service-Oriented Architecture with Java Web Services by Mark Hansen and found nice quote

Unfortunately, if you are like me, you may have found the Java Web Services learning curve a little steep. It seems that lots of powerful and complex machinery is required just to deploy a Java class as a Web service or create a simple client to consume such services. Sure, you can get the simple "Hello World" application from the Java EE 5 tutorial to work. However, when you need to deploy your purchase ordering system, things suddenly seem to get much more complicated. Either the WSDL you start with gets compiled into myriad bizarre classes that have to be manually wrapped and mapped into your real purchasing system, or, if you start from your Java classes, the WSDL that gets produced doesn't turn out the way you need it to. If you have been frustrated by problems like these, I sympathize with you.

This assignment is already submitted, it is only my stubbornness that push now to find out why it did not worked in first place and in doing …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can actually open and edit sql file in any text editor. However you should preferably use either phpMyAdmin(it does require installation of PHP on the machine plus MYSQL) or MySQL GUI Tools (only MySQL need it)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Question: Who is not looking for good job in these times of depression?