Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8313807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:37:08+00:00 2026-06-08T20:37:08+00:00

Below jsp displays the returned HashMap value from the webservice <!DOCTYPE HTML PUBLIC -//W3C//DTD

  • 0

Below jsp displays the returned HashMap value from the webservice

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@page import="com.action.AuraDecisionWorsheetDetailsService"%>
<%@page import="com.action.AuraDecisionWorsheetDetailsServiceLocator"%>

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form name="form1" method="post" action='gawd.jsp'>
<center><h1>DETAILS</h1></center>

<%
    try{
        AuraDecisionWorsheetDetailsService psi = new AuraDecisionWorsheetDetailsServiceLocator();

        com.action.AuraDecisionWorsheetDetails ps = psi.getAuraDecisionWorsheetDetails();

    if(request.getParameter("PolId")!=null){ 

        String pol_id=request.getParameter("PolId");


    %>
        <center><b>RESULT :</b> <%= ps.service(pol_id)%></center>
    <% }else
        {%>

    <TABLE align="center">
    <TR>
        <TD>ENTER POLICY NUMBER</TD>
        <TD><input type="text" name= "PolId"  /></TD>
    </TR>
    <TR>
        <TD colspan="2" align="center">&nbsp;</TD>
    </TR>
    <TR>
        <TD colspan="2" align="center"><input type="submit" value="Submit"></TD>
    </TR>


    </TABLE>    
    <% } 
    }catch(Exception exe)
    {
        exe.printStackTrace();
    }
    %>

</form>

</BODY>
</HTML>

Received below exception

faultString: java.io.IOException: No serializer found for class com.solcorp.pathfinder.uidefs.UIElement in registry org.apache.axis.encoding.TypeMappingDelegate@c87621

Caused by: java.io.IOException: No serializer found for class com.solcorp.pathfinder.uidefs.UIElement in registry org.apache.axis.encoding.TypeMappingDelegate@c87621

Web service takes one parameter i.e. pol_id and returns HashMap.
It is created using Apache Axis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:37:10+00:00Added an answer on June 8, 2026 at 8:37 pm

    You have so many problems in this code:

    1. It is a bad practice to call webservices from the jsp, you should do it in the servlet. The jsp should mainly focus on presentation not on logic. Try using jstl.
    2. You are doing alert(pol_id); without opening any script tag. alert is a javascript function and must be contained inside <script></script>.
    3. You have this line: <TD><input type="text" name= "PolId" %></TD>, it should obviously be: <input type="text" name= "PolId" /></TD> (note that i changed % at the end to /.
    4. in this line: <%= ps.service(pol_id)%> you are missing ; at the end.
    5. You have this condition:

      `if(request.getParameter("PolId")!=null){ 
           String pol_id=request.getParameter("PolId")==null?"":request.getParameter("PolId");}`
      

      you are doing the same check twice, either remove the if or the ternary operator.

    Fix these problems (the first one is really more of a best practice, so you can skip it for now), and then if you have more problems come back and post your question.

    EDIT:
    in your code you are eching the result from the service:

    `<center><b>RESULT :</b> <%= ps.service(pol_id)%></center>`
    

    but as you mentioned it is a Hashmap, so i don’t think you can echo it directly. you need to echo the values you extract from it, so try doing this for testing:

    //in the java snippet
    Map map = ps.service(pol_id);
     ...
    //in the html
    <center><b>RESULT :</b> <%= map.get(0)%></center>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

html <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml> <head> <meta http-equiv=Content-Type
Below am posting my jsp page. home.jsp <%@taglib uri=/WEB-INF/struts-bean.tld prefix=bean%> <%@taglib uri=/WEB-INF/struts-html.tld prefix=html %>
I have below code in jsp myDisplayImage.jsp <!DOCTYPE html> <html> <head> <meta http-equiv=Content-Type content=text/html;
IN JAVA CODE IN JSP as below i m getting null value for fieldnoOfRecords.
I am trying to send an email (using Outlook mail) from a jsp page.
I have below piece of code in one my JSP <%@ page language=java import
My JSP displays a button as shown below: <div id=verify style=position:relative;height:50px;> <a id=key_verify class=generic_link
Below is my jsp file, once I process some value and display the value
I am trying to use an image in the below index.jsp file in a
In my .jsp file I have the code below. How can I compare the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.