User Profile

Collapse

Profile Sidebar

Collapse
tiijnar
tiijnar
Last Activity: Aug 17 '09, 05:53 AM
Joined: Nov 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tiijnar
    started a topic How to call a web service from a jsp in weblogic
    in Java

    How to call a web service from a jsp in weblogic

    Hi,
    I have created a web service in weblogic. I want to call that web service from my jsp. Url of the web service is "http://localhost:7001/myFirstWS/services/HelloWorld". It contains an operation called greetHello() which displays "Hello World" on the screen.

    The client classes for the web service are -
    HelloWorld.java
    HelloWorldServi ce.java
    HelloWorldServi ce_Impl.java
    HelloWorld_Stub .java...
    See more | Go to post

  • tiijnar
    started a topic How to call a web service from a jsp
    in Java

    How to call a web service from a jsp

    Hi,
    I want to call a webservice hosted at the URL - "http://localhost:8080/myService/services/Echo" from a jsp. "add" is an operation provided by the web service. It takes two integer parameters as input and gives the sum of them as output.
    Can anyone help me out with the code for calling a web service from jsp.

    Thanks in advance,
    Tiijnar
    See more | Go to post

  • How to download a file from server machine to client machine using jsp

    Hi,

    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?

    Its an emergency for me to do this.

    Can anyone provide me the full code to download a file from server machine as I don't have

    time to browse through...
    See more | Go to post

  • tiijnar
    replied to Problem in getting windows username
    in Java
    How to get windows username

    Hi,

    In my java application I have following code to get windows username-

    <%
    String s1 = System.getPrope rty("user.name" );
    out.println("Th e Username : "s1" ");
    String s2 = System.getenv(" USERNAME");
    out.println("Th e Username : "+s2);
    %>

    If I log in to my PC and execute it...
    See more | Go to post

    Leave a comment:


  • tiijnar
    replied to Problem in getting windows username
    in Java
    In need of new solution

    Hi JosAH,

    I have installed Tomcat 5.5 on my server and run the same jsp. Even then Im getting same old output. i.e
    If I use System.getPrope rty("user.name" ) ---> SYSTEM
    If I use System.getenv(" username") ---> null

    My problem is not solved yet.

    Can you provide me a new solution.

    Regards,
    Tii...
    See more | Go to post

    Leave a comment:


  • tiijnar
    replied to Problem in getting windows username
    in Java
    Still facing problem

    Hi JosAH,

    Thank you for the solution but I still face the problem.

    I have used System.getenv(" USERNAME") on my server which uses Tomcat 5.0 to run jsp, but I got the username as NULL.

    Does my problem depends on the usage of Tomcat 5.0, because when I use same code in a jsp which is run using Tomcat 5.5 I get correct result.

    Can I have another...
    See more | Go to post

    Leave a comment:


  • tiijnar
    started a topic Problem in getting windows username
    in Java

    Problem in getting windows username

    Hi,

    To get windows username Im using the following code.
    Code:
    public class GetWindowUsername {
    public String getUser() {
    String userName = System.getProperty("user.name");
    System.out.println("Window's Username: "+userName);
    return userName;
    }
    }
    
    public class TestUserName {
    public static void main(String args[]) {
    GetWindowUsername g = new GetWindowUsername();
    ...
    See more | Go to post
    Last edited by Nepomuk; Dec 19 '08, 05:14 PM. Reason: Please use [CODE] tags

  • tiijnar
    replied to How to use alert box inside a JSP
    in Java
    Thanks a lot.
    Now Im able to know my problem.
    Im thinking of setting a session variable instead of alert() and after all the contents are displayed, I'll use alert() according to my requirement.
    See more | Go to post

    Leave a comment:


  • tiijnar
    started a topic How to use alert box inside a JSP
    in Java

    How to use alert box inside a JSP

    Hi,

    I am using JSPs in my application. The code goes like this-
    Code:
    <% 
    i=0;
    while(i<4) {
    %>
    <form name="Form" action="test.jsp">
    <table align="left" width="100%">
    <tr>
    <td>
    <% out.println("SNo");
    if([B]condition[/B]==true) {
    %>
    TRUE
    <% } else {
    %><input type="submit"
    ...
    See more | Go to post
    Last edited by Nepomuk; Dec 16 '08, 12:26 PM. Reason: Please use [CODE] tags!

  • tiijnar
    started a topic How to know which button is clicked in JSP
    in Java

    How to know which button is clicked in JSP

    Hi,

    I am using a JSP in my application. In JSP page I created tables and buttons inside a loop.
    Code:
    <%  
           i=0;
           while(i<4) {
    %>
      <table align="left" width="100%">
       <tr>
            <td>
             <%
    	out.print("SNo. " + (i + 1));			
            %>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    ...
    See more | Go to post
    Last edited by Nepomuk; Dec 11 '08, 06:11 PM. Reason: Please use [CODE] tags!

  • tiijnar
    started a topic Problem with JSP
    in Java

    Problem with JSP

    Hi,

    I have downloaded a HTML template from internet, for my jsp application. That HTML page consists of so many tables inside tables. I edited the code to have my information on that page. I made it into a JSP file by introducing <% %> tags and changed the extension to ".jsp".

    After executing this JSP file, if I want to select a line of information with mouse then all the information that is above the...
    See more | Go to post

  • Mails sent from Java code going to Junk Folder in MS Outlook

    Hi Friends,

    I Have written a java code to send mails to some receipients.It sends to internal mail ID's in the office. An SMTP server has been provided to me. But the problem is that the mails are being sent to Junk folder of the recepients.

    1) The mail contains only plain text, it doen't have things like images or something which is treated as a SPAM or junk.

    2) Since the mails are being sent to the internal...
    See more | Go to post
    Last edited by Nepomuk; Dec 5 '08, 01:22 PM. Reason: Please use [CODE] tags and don't use bold tags so much

  • tiijnar
    started a topic How to hide the parameters passed through URL

    How to hide the parameters passed through URL

    Hi,
    Im using the method of passing parameters through URL in JSPs
    eg.<a href="Test.jsp? parameter=abc"> Link</a>

    Ater executing it Im able to see the parameter in the url.
    http://localhost:8080/Project/Test.jsp?parameter=abc

    If I place cursor on the Link Im able to see the parameter in prompt area i.e toolbar which is at the bottom of the window.

    I want the parameter...
    See more | Go to post

  • tiijnar
    started a topic sequence in MS SQL

    sequence in MS SQL

    Im using MS SQL Server as my database in a java application. I want to have something like sequence(of Oracle) in MS SQL. But I left with nothing.

    Is there any way to have a variable in MS SQL which is incremented automatically like a sequence(of Oracle)
    OR
    should I go for a procedure for this purpose?
    See more | Go to post
No activity results to display
Show More
Working...