Win a copy of Rust Web Development this week in the Other Languages forum!

thopex Arcilla

Greenhorn
+ Follow
since Jan 03, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by thopex Arcilla

try something like this in your second servlet:

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String name = (String)session.getAttribute("name");
System.out.println("welcome" +name);
}
8 years ago

Yogesh Lonkar wrote:If Issue is because of path that is used in code. please refer
The system-dependent default name-separator character. This field is initialized to contain the first character of the value of the system property file.separator. On UNIX systems the value of this field is '/'; on Microsoft Windows systems it is '\\'.



Heres the scenario. In Windows all of the values are displayed or retrieved in the Report.

While in Solaris not all data's are displayed but there is a displayed values.

Is my explanation confusing?

Thanks for the reply.
8 years ago

Maneesh Godbole wrote:Sounds like a path hardcoded for windows environment. What do you see on the logs?



Is it OK if i paste the logs here?
8 years ago
Is it possible that the WAR file works fine in Windows OS but in Soloris OS some data's are not retrieve or displayed. Can anyone help me about this issue?

heres the specs on the development that we used.

Framework: Struts 2
Server: Glassfish 3+
Reporting: Jasper Report

And also, is the issue is in the script or in the server ?

Thanks in advance.
8 years ago
Hi,

Im having problems on deploying my sample Spring Roo Application on Glassfish Server 3.1.2.2 and it gives me an error message like this:


An error has occurred
Error occurred during deployment: Exception while preparing the app : The persistence-context-ref-name [com.springsource.roo.domain.Pizza/entityManager] in module [pizzashop-0.1.0.BUILD-SNAPSHOT] resolves to a persistence unit called [persistenceUnit] which is of type RESOURCE_LOCAL. Only persistence units with transaction type JTA can be used as a container managed entity manager. Please verify your application.. Please see server.log for more details.

Anyone can help me on this?

Thanks
9 years ago
Hi guys....

I had a problem in editing HTML file in my netbeans project..... I made some changes in the HTML file using notepad and i see it changing when i preview the file. But the problem is when i run the main project
in Netbeans, the changes that i made is not saving..

To be more detailed the HTML files are saved in my "temp" folder.. from there i tried to make some changes on one of the file and save it. The page is change based on the codes that i added.

Then I will run the java main project then boom the changes that i made is gone!

Can anybody help me on this matter?? It would be a lot of help for me.

P.S. I did not create the project from scratch im just modifying the whole project.

Thanks,
Im newbie in Javasacript...

Im trying to run my project and im encountering this error:

Deployment error: GlassFish Server 3.1.1 Start Failed
See the server log for details.

can anybody help me on how to resolve this issue??
9 years ago
I will provide screenshots and post my codes to be more specific.

Thanks for all the response.

I want to be more proficient in java language just like you guys.


10 years ago

Matthew Brown wrote:Well, if that's exactly the code, then Double.parseDouble(str) is going to be a problem because str is an empty string, and so can't be converted to a double.

If that isn't exactly the code, what exactly is the problem? Are you getting an error message, it is doing nothing, or is it displaying the wrong value? There are lots of things that could possibly be going wrong, and you haven't given us enough information to guess.



there is no output on the label.
10 years ago
Im having problems with these code.



String str="";
Double amount = Double.parseDouble(str);

//im having errors when i press the balance inquiry button. I cant display the balance on my savings class.
label.setText("Balance: "+savings.getBalance());


Can someone help me on this matter or suggest what is the best thing to do to avoid errors on my code? im using java netbeans 7.0 software

thanks.
10 years ago