peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

One of the thinks I hate about NetBeans is all this stuff that is added to build-impl.xml without user knowledge. You need to open that file and see what is on the line 470 where the error is reported. If you have problem solve it then post fraction of that xml so we can see what is going on

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Does it allow you to use any version of jdk and tomcat and full root level control?
>> It is up to you what you install starting from selection of your operating system from different flavours of Unix (Ubuntu, Fedora, Debian Centos)

And I have one more doubt, suppose if I start with a vps with decent configuration but later,say after 2 years my site is receiving a massive amount of traffic and also I am building my website more and more complex and large. Then if the hosting company cannot handle that much? or if they start demanding unnecessary amount of money to do that for me or for that much requirement I guess I need a dedicated hosting and my current hosting company do not support dedicated hosting then what are the choices a person left with at that time?
As far I know this service provider does support large organizations across world so I wouldn't be worried now. Nevertheless you should check your plans and see what will be your business grow in time and if this solution is reasonable/adequate.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The file is SQL and you will need to import it in your database. The reason you do not see extension is down to your settings of Windows, you should enable extensions on all files not just known files. (In Windows XP this could be accessed through Windows Explorer in Options menu).

PS: Time to change IE for Chrome or at least Firefox :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have no problem to download them and extract. What operating system you using, browser used to download and what application you used to open downloaded files?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Spam

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

I wouldn't do that. You need to have it connected with some database so you do give appropriate/linked suggestions, example shopping for car not to suggest pc components. J2ME is not suitable platform for this and I'm not sure if I would attempt such thing on Android or iPhone yet due to still slow internet conection

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Eclipse official documentation Creating a New JAR File

DavidKroukamp commented: beat me to it ;) +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Secondly, you are more likely to know only mods in your forums of interest, but there more people then these. At the moment there is 20 of mods, 1 supermod and 4 admins. Do you know them all?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

At the moment not. You may try to continue discussion in thread where you received bad reputation to explain why did you chose the answer as you did.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look on "linode" hosting (that is what I have)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry for delay.
My MVC tutorial was written long time ago before I become friend with IntelliJ so I did direct development in Tomcat webapps where I created project folder there.

Trying to solve your issue through IDE and folder structure you have, I had to change web.xml servlet-class definition to

<servlet-class>Servlet.LoginServlet</servlet-class>

and removed anotation from LoginServlet

@WebServlet("/Controller/Login")

after that I was able to read data from config. Let me know if you still have some problems. (If I get more time I may try to create this tutorial with Hibernate)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ok, you win

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

why of course? Depending on your needs you may need to pay tens of thousands a month :)

We discussed personal websites, not business solutions :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

since I doubt you need to print "zerothousand zerohundred fourteen" when 14 is the input, I deliberately did NOT put the 0 in that array :)
and as I already said before, answering JamesCherrill, indeed, you don't need the first array, I'm aware of that, but IMHO it might be easier for the OP to see the link, and if not, all that happened is that I wrote some silly code :)

Even though there is no need for zero due to assignment requirement "1-10,001" it is much easier to have it included as to play games with increment of 1 in my opinion...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@stultuske you better off if you include zero ;) , also there is no need for first integer array

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Ms New to Java I do recommend that you stop sending personal messages(PM) to forum members. It is unwelcome practice.
All the help you got so far is good, but it is up to you to use it. This is NOT 24/7 coding forum for lazy people.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i am using net beans 6.8 and in that there is no file named web.xml rather it has sun-web.xml, also its content are not same as like in net beans' earlier versions. iit don't have init parameter like and i want to use filter and i have to make changes web.xml but it not work when i make changes own my own in it. why this difference will overcome?

That will be down to the fact that you are using NetBeans that is coming with GlassFish as default Java container(server) instead of Tomcat. Take my advise, relay more on knowledge then your IDE.

@anand01 do you think you could create ZIP file of your project and attach it here? If you have git/bitbucket or similar account just post link to source. Also you may want to check your project folder structure and names. (Looks like you reused MVC tutorial in JSP section and made mistake somewhere, otherwise you would be getting these values)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The question was "all i want is the java api"
WTH has an API to do with a pricelist???

Well as "I'm sure" you read our forum rules we do not like people to "share" copyright material. It is my understanding that this library is paid stuff so it is unlikely to have public/free API documentation available. If you know where to find it LEGALY you are more then welcome to post it.

PS: Get some manners.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I had look on Java Plot that I think will use with one of my pet projects

mKorbel commented: happy new year, thanks for link +10
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

200$ montly or yearly?

Sorry of course it is yearly.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@warlord902 cheap is wrong word in this case. I pay $200 for my hosting and is cheap for me, because I live in UK and service provided by company(VPS, set it as you wish) is fair for me. What would be cheap for you in India?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Its paid library(as from what I seen on multiple links I had to go through to find some meaningful info), so you need to contact company for price list

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Haha 9 views (almost all from me) in 9 hours. These forums are officially DEAD!

Christmas period, everyone slows down. Secondly may happen that people are interested in what you are asking, but may not necessary know answer to this...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is something unclear from their examples?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not sure if you made a mistake with that URL (now snipped as it went to some dodgy advertising site) or tried to spam, but Installing the SDK and Hello, World articles on developer android explains all basic in very nice and simple way

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, looking at POI code XWPFTableCell consists of number of XWPFParagraphs of which you need to take care. So you need to remove all paragraphs in order to have text replace. You can do something like this

if ((cellNum + 1) == 2) {

      if (tableCellVal != null) {
        if (tableCellVal.length() > 0) {
          removeParagraphs(tableCell);
          tableCell.setText("CHANGE");
        } else {
          //tableCell.setText("NULL");
        }
      }
    }

where removeParagraphs can look like this

private static void removeParagraphs(XWPFTableCell tableCell) {
    int count = tableCell.getParagraphs().size();
    for(int i = 0; i < count; i++){
      tableCell.removeParagraph(i);
    }
  }
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just split "Broadcast" and "test" into 2 files

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, as I indicated in many other posts, it is best to keep it running instead of open/close on each recompile

BTW, post moved to mobile development

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you know any online resource that can help me to set up a web development server in my place, which our team can access.
>>It is unlikely you will find such document as everyone goes with tools he is more comfortable/efficient with. I have my server running on Ubuntu and use either Ubuntu desktop or Mac OS (I have MacBook Pro) to maintain it. Installation of Java is MUST (I expect you know that :) ), then you may add Ant and/or Maven, choice of Java container/server Tomcat/Jetty/JBoss App Server/GlassFish (I use Tomcat) and of course some continuous integration(CI) with Jenkins/TeamCity or such (no preference here, I used both), code quality tools either plugins in project pom that can be run on CI or something like Sonatype Sonar

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As stultuske mentioned decision you need to make is front or back end. If you have choice you should learn little of Hibernate and Spring (core no additions) for back-end, just to have idea how you can apply them. Then maybe try something like Tapestry or Wicket for front end

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at Java Web Development - Starting [tutorials / resources / faq] there are some books I used in past

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you attach sample word document you trying to work on?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have another query.

When i started learning Servlets and JSP, i come to know that whenever we make any changes in our website project files, then we need to restart our server to implement those changes.

Now suppose when my website is accessed by thousands of people each second/minute, at that time if I try to restart server then my website will become inaccessible for some minutes, isn't it a drawback and unhappy users??

Secondly to jwenting comment, it is usual practice that you will have development server and production. Dev is for continuous development bug fixing and production gets major or regular updates where you can notify users about any downtime.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You not only one, check this bug

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

javaAddict commented: Thanks for the reply +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Unlikely some one can help with amount of code you shared. I can only suggest debugging and follow logic to find out why you getting null point exception

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There are many plot/chart libraries you can use, example JavaPlot

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I never asked about Java.

I also want it to make it onclick on the textbox, not a button.

When they click the textbox, if the value is "username" it will empty it for another value, else no changes happens.

You posted in JSP, that stands for Java Server Pages, which is miles away from JavaScript. Make sure you know where you posting next time. Post moved!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It seems to be some sort of GUI with two text areas and some menu options. What can it do I have no idea and expect nobody else here. You seems to be given assignment and one of your classmates shared solution with you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you post some screenshots what you actually seing, as from above description none would be any wise.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If it is project(you have source code) created with IDE (NetBeans) you just hit Run and that will take care of clean+compile+execute if there are no errors. However I'm not aware of possibility to run directly JAR from IDE

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not enough info. Is the project you try to execute available online or is it private stuff?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The general notion is to have following project structure

  • src
    • main
      • java
        • top-package name
      • resources
        • daniweb.png
    • test

Then you can call images from resource directory directly like new ImageIcon(ClassLoader.getSystemResource("daniweb.png")); no need for directory changes (../../../daniweb.png)etc

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry, I can't help you there as it is fault of someone who took the requirements that he/she allowed for such nonsense.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is database stuff, when you create in new table a column you would indicate that it is auto-increment and you should be also able to set from which number you wish to start(see this video for example http://www.youtube.com/watch?v=hiWqqlT0G2E)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Clzeigler what operating system are you using? What did you do and use to open these zip files?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you working on Windows then absolute path would be drive letter with directions to file, example C:\Images\img01.jpeg

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As error says, file cannot be found as you are providing relative path. You should have provided absolute path

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you associated your project with an instance of Tomcat?